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
@@ -55,7 +55,7 @@ public class Bleeding extends Buff {
|
||||
|
||||
public void set( int level ) {
|
||||
this.level = level;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int icon() {
|
||||
@@ -80,7 +80,7 @@ public class Bleeding extends Buff {
|
||||
}
|
||||
|
||||
if (target == Dungeon.hero && !target.isAlive()) {
|
||||
Dungeon.fail( ResultDescriptions.BLEEDING );
|
||||
Dungeon.fail( getClass() );
|
||||
GLog.n( Messages.get(this, "ondeath") );
|
||||
}
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ public class Burning extends Buff implements Hero.Doom {
|
||||
|
||||
Badges.validateDeathFromFire();
|
||||
|
||||
Dungeon.fail( ResultDescriptions.BURNING );
|
||||
Dungeon.fail( getClass() );
|
||||
GLog.n( Messages.get(this, "ondeath") );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ public class Hunger extends Buff implements Hero.Doom {
|
||||
|
||||
Badges.validateDeathFromHunger();
|
||||
|
||||
Dungeon.fail( ResultDescriptions.HUNGER );
|
||||
Dungeon.fail( getClass() );
|
||||
GLog.n( Messages.get(this, "ondeath") );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class Ooze extends Buff {
|
||||
else if (Random.Int(2) == 0)
|
||||
target.damage( 1, this );
|
||||
if (!target.isAlive() && target == Dungeon.hero) {
|
||||
Dungeon.fail( ResultDescriptions.OOZE );
|
||||
Dungeon.fail( getClass() );
|
||||
GLog.n( Messages.get(this, "ondeath") );
|
||||
}
|
||||
spend( TICK );
|
||||
|
||||
@@ -58,7 +58,7 @@ public class Poison extends Buff implements Hero.Doom {
|
||||
|
||||
public void set( float duration ) {
|
||||
this.left = duration;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int icon() {
|
||||
@@ -118,7 +118,7 @@ public class Poison extends Buff implements Hero.Doom {
|
||||
public void onDeath() {
|
||||
Badges.validateDeathFromPoison();
|
||||
|
||||
Dungeon.fail( ResultDescriptions.POISON );
|
||||
Dungeon.fail( getClass() );
|
||||
GLog.n( "You died from poison..." );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user