Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fangliuyu committed Oct 2, 2024
1 parent b10b8f3 commit ac4ce76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/mcfish/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type fishdb struct {
const FishLimit = 50

// version 规则版本号
const version = "5.5.7"
const version = "5.5.8"

// 各物品信息
type jsonInfo struct {
Expand Down
4 changes: 3 additions & 1 deletion plugin/mcfish/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ func init() {
maintenance, _ := strconv.Atoi(poleInfo[1])
induceLevel, _ := strconv.Atoi(poleInfo[2])
favorLevel, _ := strconv.Atoi(poleInfo[3])
pice = (priceList[thingName] - (durationList[thingName] - durable) - maintenance*2 + induceLevel*600 + favorLevel*1800) * discountList[thingName] / 100
pice = (priceList[thingName] - (durationList[thingName] - durable) - maintenance*2 +
induceLevel*600*discountList["诱钓"]/100 +
favorLevel*1800*discountList["海之眷顾"]/100) * discountList[thingName] / 100
} else {
pice = priceList[thingName] * discountList[thingName] / 100
}
Expand Down

0 comments on commit ac4ce76

Please sign in to comment.