v0.6.0: zero and negative damage values now appear
This commit is contained in:
parent
aa1d45c658
commit
21251c66c1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user