perf(xp): simplify function LevelXP
This commit is contained in:
parent
8f10267e2d
commit
0f5f1ade0b
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ func Level(xp uint) uint {
|
|||
// See Level to get the level with the given XP.
|
||||
func LevelXP(level uint) uint {
|
||||
return uint(math.Floor(
|
||||
math.Pow(float64(5*level), 2),
|
||||
25 * math.Pow(float64(level), 2),
|
||||
))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue