v0.2.3: improvements to the rankings page
This commit is contained in:
@@ -127,7 +127,7 @@ public class Viscosity extends Glyph {
|
||||
if (target == Dungeon.hero && !target.isAlive()) {
|
||||
// FIXME
|
||||
Glyph glyph = new Viscosity();
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.GLYPH, glyph.name(), Dungeon.depth ) );
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.GLYPH, glyph.name() ) );
|
||||
GLog.n( "%s killed you...", glyph.name() );
|
||||
|
||||
Badges.validateDeathFromGlyph();
|
||||
|
||||
@@ -107,7 +107,7 @@ public class ChaliceOfBlood extends Artifact {
|
||||
hero.damage(damage, this);
|
||||
|
||||
if (!hero.isAlive()) {
|
||||
Dungeon.fail(Utils.format(ResultDescriptions.ITEM, name, Dungeon.depth));
|
||||
Dungeon.fail(Utils.format( ResultDescriptions.ITEM, name ));
|
||||
GLog.n("The Chalice sucks your life essence dry...");
|
||||
} else {
|
||||
upgrade();
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ public class ScrollOfPsionicBlast extends Scroll {
|
||||
curUser.spendAndNext( TIME_TO_READ );
|
||||
|
||||
if (!curUser.isAlive()) {
|
||||
Dungeon.fail(Utils.format(ResultDescriptions.ITEM, name, Dungeon.depth));
|
||||
Dungeon.fail( Utils.format(ResultDescriptions.ITEM, name ));
|
||||
GLog.n("The Psionic Blast tears your mind apart...");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public class WandOfAvalanche extends Wand {
|
||||
}
|
||||
|
||||
if (!curUser.isAlive()) {
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name, Dungeon.depth ) );
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name ) );
|
||||
GLog.n( "You killed yourself with your own Wand of Avalanche..." );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ public class WandOfFirebolt extends Wand {
|
||||
ch.sprite.emitter().burst( FlameParticle.FACTORY, 5 );
|
||||
|
||||
if (ch == curUser && !ch.isAlive()) {
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name, Dungeon.depth ) );
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name ) );
|
||||
GLog.n( "You killed yourself with your own Wand of Firebolt..." );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class WandOfLightning extends Wand {
|
||||
protected void onZap( int cell ) {
|
||||
|
||||
if (!curUser.isAlive()) {
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name, Dungeon.depth ) );
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name ) );
|
||||
GLog.n( "You killed yourself with your own Wand of Lightning..." );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ public class WandOfMagicMissile extends Wand {
|
||||
ch.sprite.burst( 0xFF99CCFF, level / 2 + 2 );
|
||||
|
||||
if (ch == curUser && !ch.isAlive()) {
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name, Dungeon.depth ) );
|
||||
Dungeon.fail( Utils.format( ResultDescriptions.ITEM, name ) );
|
||||
GLog.n( "You killed yourself with your own Wand of Magic Missile..." );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user