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 @Override
public void add(int levels) { public void add(int levels) {
Levelled.LevelStore.super.add(levels);
if (levels > 0) { if (levels > 0) {
if (upgradeMana) { if (upgradeMana) {
pony.getMagicalReserves().getMana().add(pony.getMagicalReserves().getMana().getMax() / 2); pony.getMagicalReserves().getMana().add(pony.getMagicalReserves().getMana().getMax() / 2);
} }
pony.asWorld().playSound(null, pony.getOrigin(), levelUpSound, SoundCategory.PLAYERS, 1, 2); pony.asWorld().playSound(null, pony.getOrigin(), levelUpSound, SoundCategory.PLAYERS, 1, 2);
} }
Levelled.LevelStore.super.add(levels);
} }
@Override @Override
public int getMax() { public int getMax() {
return 900; return 999; // -1 because displayed levels start at 1
} }
@Override @Override