v0.3.4: reworked rankings to store their cause instead of a result string

This commit is contained in:
Evan Debenham
2016-01-23 02:12:18 -05:00
committed by Evan Debenham
parent 0e2fbc05fb
commit ac967fad27
36 changed files with 79 additions and 65 deletions
@@ -66,7 +66,7 @@ public class SpearTrap extends Trap {
damage -= Random.IntRange( 0, ch.dr());
ch.damage( Math.max(damage, 0) , this);
if (!ch.isAlive() && ch == Dungeon.hero){
Dungeon.fail(Utils.format(ResultDescriptions.TRAP, name));
Dungeon.fail( getClass() );
GLog.n( Messages.get(this, "ondeath") );
}
}