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
@@ -152,7 +152,7 @@ public class Armor extends EquipableItem {
if (inscribe) {
inscribe( Glyph.random() );
}
};
}
STR--;
@@ -339,7 +339,7 @@ public class Armor extends EquipableItem {
public boolean checkOwner( Char owner ) {
if (!owner.isAlive() && owner instanceof Hero) {
Dungeon.fail( Utils.format( ResultDescriptions.GLYPH, name() ) );
Dungeon.fail( getClass() );
GLog.n( Messages.get(this, "killed", name()) );
Badges.validateDeathFromGlyph();
@@ -104,7 +104,7 @@ public class Viscosity extends Glyph {
public void prolong( int damage ) {
this.damage += damage;
};
}
@Override
public int icon() {
@@ -124,7 +124,7 @@ public class Viscosity extends Glyph {
if (target == Dungeon.hero && !target.isAlive()) {
Glyph glyph = new Viscosity();
Dungeon.fail( Utils.format( ResultDescriptions.GLYPH, glyph.name() ) );
Dungeon.fail( glyph.getClass() );
GLog.n( Messages.get(Glyph.class, "killed", glyph.name()) );
Badges.validateDeathFromGlyph();