v0.3.4: reworked rankings to store their cause instead of a result string
This commit is contained in:
committed by
Evan Debenham
parent
0e2fbc05fb
commit
ac967fad27
@@ -59,7 +59,7 @@ public class FrostTrap extends Trap {
|
||||
ch.damage(Random.NormalIntRange(1 , Dungeon.depth), this);
|
||||
Chill.prolong(ch, Frost.class, 10f + Random.Int(Dungeon.depth));
|
||||
if (!ch.isAlive() && ch == Dungeon.hero){
|
||||
Dungeon.fail( Utils.format(ResultDescriptions.TRAP, name) );
|
||||
Dungeon.fail( getClass() );
|
||||
GLog.n( Messages.get(this, "ondeath") );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user