diff --git a/plugin/mcfish/main.go b/plugin/mcfish/main.go index 74f40775..3b4d3db4 100644 --- a/plugin/mcfish/main.go +++ b/plugin/mcfish/main.go @@ -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) diff --git a/plugin/mcfish/store.go b/plugin/mcfish/store.go index e1a91860..102d9477 100644 --- a/plugin/mcfish/store.go +++ b/plugin/mcfish/store.go @@ -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