From 1d44a72efc7d45aa20b1ab2bf1e3557f4e1b1974 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 25 Nov 2014 14:09:00 -0500 Subject: [PATCH] v0.2.3: Master thieves armband now loses some charge when unequipped. --- .../items/artifacts/MasterThievesArmband.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java index 68ac015ae..e21faed61 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java @@ -1,10 +1,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.artifacts; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; -import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Shopkeeper; -import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; -import com.shatteredpixel.shatteredpixeldungeon.utils.GLog; import com.shatteredpixel.shatteredpixeldungeon.utils.Utils; import com.watabou.utils.Random; @@ -55,6 +52,12 @@ public class MasterThievesArmband extends Artifact { charge += gold/2; } + @Override + public void detach() { + charge /= 0.80; + super.detach(); + } + public boolean steal(int value){ if (value <= charge){ charge -= value;