mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
chore(lint): 改进代码样式 (#1124)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
085e95cd48
commit
b494390373
@ -102,7 +102,7 @@ type buffInfo struct {
|
||||
Coupon int `db:"Buff1"` // 优惠卷
|
||||
SalesPole int `db:"Buff2"` // 卖鱼竿上限
|
||||
BuyTing int `db:"Buff3"` // 购买上限
|
||||
Buff4 int `db:"Buff4"` // 暂定
|
||||
Buff4 int `db:"Buff4"` // 暂定
|
||||
Buff5 int `db:"Buff5"` // 暂定
|
||||
Buff6 int `db:"Buff6"` // 暂定
|
||||
Buff7 int `db:"Buff7"` // 暂定
|
||||
@ -630,12 +630,12 @@ func (sql *fishdb) refreshStroeInfo() (ok bool, err error) {
|
||||
Duration: time.Now().Unix(),
|
||||
Name: "初始木竿",
|
||||
Type: "pole",
|
||||
Price: priceList["木竿"]+priceList["木竿"] * discountList["木竿"]/100,
|
||||
Other: "30/0/0/0",
|
||||
Price: priceList["木竿"] + priceList["木竿"]*discountList["木竿"]/100,
|
||||
Other: "30/0/0/0",
|
||||
}
|
||||
_ = sql.db.Find("store", &thingInfo, "WHERE Name = '初始木竿'")
|
||||
thingInfo.Number ++
|
||||
if thingInfo.Number > 5{
|
||||
thingInfo.Number++
|
||||
if thingInfo.Number > 5 {
|
||||
thingInfo.Number = 1
|
||||
}
|
||||
_ = sql.db.Insert("store", &thingInfo)
|
||||
|
||||
@ -472,8 +472,8 @@ func init() {
|
||||
thingPice := (priceList[info.Name] - (durationList[info.Name] - durable) - maintenance*2 +
|
||||
induceLevel*600*discountList["诱钓"]/100 +
|
||||
favorLevel*1800*discountList["海之眷顾"]/100) * discountList[info.Name] / 100
|
||||
if strings.Contains(thingName, "初始木竿"){
|
||||
thingPice = priceList["木竿"]+priceList["木竿"] * discountList["木竿"]/100
|
||||
if strings.Contains(thingName, "初始木竿") {
|
||||
thingPice = priceList["木竿"] + priceList["木竿"]*discountList["木竿"]/100
|
||||
}
|
||||
pice = append(pice, thingPice)
|
||||
} else {
|
||||
@ -621,7 +621,7 @@ func init() {
|
||||
Number: 1,
|
||||
Other: thing.Other,
|
||||
}
|
||||
if thingName == "初始木竿"{
|
||||
if thingName == "初始木竿" {
|
||||
newCommodity.Name = "木竿"
|
||||
}
|
||||
} else {
|
||||
@ -800,8 +800,8 @@ func drawStroeInfoImage(stroeInfo []store) (picImage image.Image, err error) {
|
||||
induceLevel, _ := strconv.Atoi(poleInfo[2])
|
||||
favorLevel, _ := strconv.Atoi(poleInfo[3])
|
||||
pice = (priceList[info.Name] - (durationList[info.Name] - durable) - maintenance*2 + induceLevel*600 + favorLevel*1800) * discountList[info.Name] / 100
|
||||
if strings.Contains(name, "初始木竿"){
|
||||
pice = priceList["木竿"]+priceList["木竿"] * discountList["木竿"]/100
|
||||
if strings.Contains(name, "初始木竿") {
|
||||
pice = priceList["木竿"] + priceList["木竿"]*discountList["木竿"]/100
|
||||
}
|
||||
} else {
|
||||
pice = priceList[info.Name] * discountList[info.Name] / 100
|
||||
|
||||
Loading…
Reference in New Issue
Block a user