mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 13:37:58 +01:00
Bump max levels to 1000 (from 901)
This commit is contained in:
parent
112dd25d71
commit
cb256f10cd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue