v2.3.0: fixed rotting fist healing much more than intended in water

This commit is contained in:
Evan Debenham
2024-01-11 11:01:23 -05:00
parent b6fbc3e45d
commit efde9c998b

View File

@@ -386,7 +386,7 @@ public abstract class YogFist extends Mob {
if (Dungeon.level.water[pos] && HP < HT) {
sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(HT/50), FloatingText.HEALING);
HP = Math.max(HT, HP + HT/50);
HP = Math.min(HT, HP + HT/50);
}
return super.act();