From c39762c9ed1baceae439cf793585ed86a3c3bfbd Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 7 Oct 2014 10:47:35 -0400 Subject: [PATCH] V0.2.1: Using a blessed ankh now properly adds to the ankhs used statistic. --- .../shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 26107bdc4..883c77593 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -20,6 +20,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.hero; import java.util.ArrayList; import java.util.HashSet; +import com.shatteredpixel.shatteredpixeldungeon.Statistics; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Drowsy; import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter; import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.CapeOfThorns; @@ -1120,6 +1121,7 @@ public class Hero extends Char { curAction = null; + //todo: investigate this, what would happen if the player has a blessed & unblessed ankh? Ankh ankh = (Ankh)belongings.getItem( Ankh.class ); if (ankh != null && ankh.isBlessed()) { this.HP = HT; @@ -1131,6 +1133,7 @@ public class Hero extends Char { Sample.INSTANCE.play( Assets.SND_TELEPORT ); GLog.w( ankh.TXT_REVIVE ); + Statistics.ankhsUsed++; return; }