mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +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
|
@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
|
||||||
|
|
Loading…
Reference in a new issue