v0.2.3: corrected thieves dropping more than one armband.

This commit is contained in:
Evan Debenham 2014-12-10 17:08:33 -05:00
parent 1104f6473b
commit 6a1a90022e
2 changed files with 12 additions and 1 deletions

View File

@ -146,7 +146,9 @@ public class Dungeon {
scorpioHP, scorpioHP,
cookingHP, cookingHP,
blandfruitSeed; blandfruitSeed,
armband;
public int count = 0; public int count = 0;
} }

View File

@ -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 @Override
public int attackSkill( Char target ) { public int attackSkill( Char target ) {
return 12; return 12;