From 21251c66c198df63948b5aea326ceb4c29550604 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 3 May 2017 16:13:45 -0400 Subject: [PATCH] v0.6.0: zero and negative damage values now appear --- .../shatteredpixeldungeon/actors/Char.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java index 14b59f219..d5c2f9998 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java @@ -270,13 +270,11 @@ public abstract class Char extends Actor { HP -= (dmg - SHLD); SHLD = 0; } - - if (dmg > 0 || src instanceof Char) { - sprite.showStatus( HP > HT / 2 ? - CharSprite.WARNING : - CharSprite.NEGATIVE, - Integer.toString( dmg ) ); - } + + sprite.showStatus( HP > HT / 2 ? + CharSprite.WARNING : + CharSprite.NEGATIVE, + Integer.toString( dmg ) ); if (HP < 0) HP = 0;