Bump max levels to 1000 (from 901)

This commit is contained in:
Sollace 2023-03-18 00:34:07 +00:00
parent 112dd25d71
commit cb256f10cd

View file

@ -26,18 +26,18 @@ class PlayerLevelStore implements Levelled.LevelStore {
@Override
public void add(int levels) {
Levelled.LevelStore.super.add(levels);
if (levels > 0) {
if (upgradeMana) {
pony.getMagicalReserves().getMana().add(pony.getMagicalReserves().getMana().getMax() / 2);
}
pony.asWorld().playSound(null, pony.getOrigin(), levelUpSound, SoundCategory.PLAYERS, 1, 2);
}
Levelled.LevelStore.super.add(levels);
}
@Override
public int getMax() {
return 900;
return 999; // -1 because displayed levels start at 1
}
@Override