v0.2.3: Master thieves armband now loses some charge when unequipped.

This commit is contained in:
Evan Debenham 2014-11-25 14:09:00 -05:00
parent a12f41f612
commit 1d44a72efc

View File

@ -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;