feat(xp): add +1 in lose function xp part
This commit is contained in:
parent
0a6ecf6af7
commit
84bf4caed2
2 changed files with 2 additions and 2 deletions
|
@ -28,6 +28,6 @@ func XPForLevel(level uint) uint {
|
|||
|
||||
func Lose(time uint, xp uint) uint {
|
||||
return uint(math.Floor(
|
||||
math.Pow(float64(time), 2) * math.Pow(10, -2+math.Log(float64(time/85))) * math.Floor(float64(xp/500)),
|
||||
math.Pow(float64(time), 2) * math.Pow(10, -2+math.Log(float64(time/85))) * math.Floor(float64(xp/500)+1),
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue