From 1f767f0be3c945b709f9ec10ecda8111879f49b3 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Sep 2022 12:53:37 +0200 Subject: [PATCH] Increase max mana with the player's level --- .../unicopia/entity/player/ManaContainer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java b/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java index af9725c7..7e7044c3 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java @@ -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();