v0.2.3: Master thieves armband now loses some charge when unequipped.
This commit is contained in:
+6
-3
@@ -1,10 +1,7 @@
|
|||||||
package com.shatteredpixel.shatteredpixeldungeon.items.artifacts;
|
package com.shatteredpixel.shatteredpixeldungeon.items.artifacts;
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
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.sprites.ItemSpriteSheet;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
||||||
import com.watabou.utils.Random;
|
import com.watabou.utils.Random;
|
||||||
|
|
||||||
@@ -55,6 +52,12 @@ public class MasterThievesArmband extends Artifact {
|
|||||||
charge += gold/2;
|
charge += gold/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void detach() {
|
||||||
|
charge /= 0.80;
|
||||||
|
super.detach();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean steal(int value){
|
public boolean steal(int value){
|
||||||
if (value <= charge){
|
if (value <= charge){
|
||||||
charge -= value;
|
charge -= value;
|
||||||
|
|||||||
Reference in New Issue
Block a user