Show accurate XP gain in notification on level up (#10590)

This commit is contained in:
Rene Cordier
2018-08-12 16:55:10 +07:00
committed by Matteo Pagliazzi
parent 45ca090105
commit 1f7dd421d4
2 changed files with 8 additions and 2 deletions

View File

@@ -47,6 +47,6 @@ export function round (number, nDigits) {
}
export function getXPMessage (val) {
if (val < -50) return; // don't show when they level up (resetting their exp)
if (val < -50) return; // don't show when they multi-level up (resetting their exp)
return `${getSign(val)} ${round(val)}`;
}