v0.6.0: zero and negative damage values now appear

This commit is contained in:
Evan Debenham 2017-05-03 16:13:45 -04:00
parent aa1d45c658
commit 21251c66c1

View File

@ -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;