From 6a1a90022e14bc612c1598e5e1aaade6b77e8042 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 10 Dec 2014 17:08:33 -0500 Subject: [PATCH] v0.2.3: corrected thieves dropping more than one armband. --- .../shatteredpixel/shatteredpixeldungeon/Dungeon.java | 4 +++- .../shatteredpixeldungeon/actors/mobs/Thief.java | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java b/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java index 17d6f3eb2..6e693b95f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java @@ -146,7 +146,9 @@ public class Dungeon { scorpioHP, cookingHP, - blandfruitSeed; + blandfruitSeed, + + armband; public int count = 0; } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Thief.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Thief.java index e9ec7a3e9..0aaed870c 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Thief.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Thief.java @@ -88,6 +88,15 @@ public class Thief extends Mob { } } + @Override + protected Item createLoot(){ + if (Dungeon.limitedDrops.armband.count == 0) { + Dungeon.limitedDrops.armband.count++; + return super.createLoot(); + } else + return new Gold(Random.NormalIntRange(100, 250)); + } + @Override public int attackSkill( Char target ) { return 12;