From 3c757d543144d42f7ae35279f0a47173cc9e248f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 21 May 2021 13:36:33 -0400 Subject: [PATCH] v0.9.3: fixed the wandmaker quest not being completable --- .../shatteredpixeldungeon/windows/WndWandmaker.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java index e78da359f..7e0e644d5 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java @@ -50,14 +50,14 @@ public class WndWandmaker extends Window { private static final int GAP = 2; Wandmaker wandmaker; - Item item; + Item questItem; public WndWandmaker( final Wandmaker wandmaker, final Item item ) { super(); this.wandmaker = wandmaker; - this.item = item; + this.questItem = item; IconTitle titlebar = new IconTitle(); titlebar.icon(new ItemSprite(item.image(), null)); @@ -98,7 +98,7 @@ public class WndWandmaker extends Window { hide(); - item.detach( Dungeon.hero.belongings.backpack ); + questItem.detach( Dungeon.hero.belongings.backpack ); reward.identify(); if (reward.doPickUp( Dungeon.hero )) { @@ -136,7 +136,7 @@ public class WndWandmaker extends Window { } @Override protected void onClick() { - if (Dungeon.hero.belongings.contains(item)) { + if (Dungeon.hero.belongings.contains(questItem)) { ShatteredPixelDungeon.scene().addToFront(new RewardWindow(item)); } else { hide();