v0.6.0: zero and negative damage values now appear
This commit is contained in:
parent
aa1d45c658
commit
21251c66c1
|
@ -271,12 +271,10 @@ public abstract class Char extends Actor {
|
||||||
SHLD = 0;
|
SHLD = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dmg > 0 || src instanceof Char) {
|
sprite.showStatus( HP > HT / 2 ?
|
||||||
sprite.showStatus( HP > HT / 2 ?
|
CharSprite.WARNING :
|
||||||
CharSprite.WARNING :
|
CharSprite.NEGATIVE,
|
||||||
CharSprite.NEGATIVE,
|
Integer.toString( dmg ) );
|
||||||
Integer.toString( dmg ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
if (HP < 0) HP = 0;
|
if (HP < 0) HP = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user