From b494390373d7db07b7919bbea1e7258a3f9e6e94 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 02:01:45 +0900 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F=20(#1124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- plugin/mcfish/main.go | 10 +++++----- plugin/mcfish/store.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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