From b4835d88e60d27fdfab67c6d8d86effa30348315 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 12 Jul 2017 16:51:27 -0400 Subject: [PATCH] v0.6.1: compass now points at stairs going up if amulet is obtained --- .../shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java index a1a12a37f..5cec478f6 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java @@ -23,6 +23,8 @@ package com.shatteredpixel.shatteredpixeldungeon.ui; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; +import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; +import com.shatteredpixel.shatteredpixeldungeon.Statistics; import com.shatteredpixel.shatteredpixeldungeon.effects.Speck; import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.items.keys.IronKey; @@ -101,7 +103,7 @@ public class StatusPane extends Component { avatar = HeroSprite.avatar( Dungeon.hero.heroClass, lastTier ); add( avatar ); - compass = new Compass( Dungeon.level.exit ); + compass = new Compass( Statistics.amuletObtained ? Dungeon.level.entrance : Dungeon.level.exit ); add( compass ); rawShielding = new Image( Assets.SHLD_BAR );