v0.3.5: various logic fixes to accommodate chars that are 0 hp, but not dead.

This commit is contained in:
Evan Debenham
2016-03-25 17:25:10 -04:00
parent 4bc69be53e
commit dd08be8d97
3 changed files with 6 additions and 3 deletions
@@ -176,7 +176,7 @@ public class StatusPane extends Component {
float shield = Dungeon.hero.SHLD;
float max = Math.max(health+shield, Dungeon.hero.HT);
if (health == 0) {
if (!Dungeon.hero.isAlive()) {
avatar.tint( 0x000000, 0.6f );
blood.on = false;
} else if ((health/Dungeon.hero.HT) < 0.25f) {