Skip to content

Commit

Permalink
加个保护,经验不能变少
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Jun 14, 2024
1 parent b27870a commit 758acf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maplebot/find_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func findRole(name string) MessageChain {
}
totalExp -= expPercent0 * levelExpData.GetFloat64(fmt.Sprintf("data.%d", level0))
totalExp += expPercent1 * levelExpData.GetFloat64(fmt.Sprintf("data.%d", level1))
expValues = append(expValues, math.Round(totalExp))
expValues = append(expValues, max(math.Round(totalExp), 0))
}
labels = labels[1:]
for i := range labels {
Expand Down

0 comments on commit 758acf3

Please sign in to comment.