v0.3.5: Corrections to game win behaviour

- Fixed a rare bug where the player could die as they win the game.
- Winning the game now always takes you to the rankings page.
This commit is contained in:
Evan Debenham
2016-03-24 18:53:57 -04:00
parent a5fc42c80d
commit b465f05070
3 changed files with 7 additions and 7 deletions
@@ -20,16 +20,16 @@
*/
package com.shatteredpixel.shatteredpixeldungeon.items;
import java.io.IOException;
import java.util.ArrayList;
import com.watabou.noosa.Game;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.scenes.AmuletScene;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.watabou.noosa.Game;
import java.io.IOException;
import java.util.ArrayList;
public class Amulet extends Item {
@@ -68,7 +68,7 @@ public class Amulet extends Item {
if (!Statistics.amuletObtained) {
Statistics.amuletObtained = true;
Badges.validateVictory();
hero.spend(-TIME_TO_PICK_UP);
showAmuletScene( true );
}