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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user