v0.2.3: corrected thieves dropping more than one armband.
This commit is contained in:
parent
1104f6473b
commit
6a1a90022e
|
@ -146,7 +146,9 @@ public class Dungeon {
|
|||
scorpioHP,
|
||||
cookingHP,
|
||||
|
||||
blandfruitSeed;
|
||||
blandfruitSeed,
|
||||
|
||||
armband;
|
||||
|
||||
public int count = 0;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user