mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Increase max mana with the player's level
This commit is contained in:
parent
37148fad51
commit
1f767f0be3
1 changed files with 6 additions and 1 deletions
|
@ -71,7 +71,7 @@ public class ManaContainer implements MagicReserves, Tickable {
|
|||
|
||||
if (!pony.getSpecies().canFly() || !pony.getPhysics().isFlying()) {
|
||||
if (mana.getShadowFill() <= mana.getPercentFill()) {
|
||||
mana.add(18);
|
||||
mana.add(18 * pony.getLevel().get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,6 +82,11 @@ public class ManaContainer implements MagicReserves, Tickable {
|
|||
super(marker, max, initial);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMax() {
|
||||
return super.getMax() + 50 * pony.getLevel().get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(float value) {
|
||||
float diff = value - get();
|
||||
|
|
Loading…
Reference in a new issue