v1.2.1: fixed the armband steal effect working on lower levelled enemies

This commit is contained in:
Evan Debenham 2022-03-31 01:34:59 -04:00
parent 061a28dd4b
commit da6263cdd6

View File

@ -137,7 +137,14 @@ public class MasterThievesArmband extends Artifact {
}
float lootChance = ((Mob) ch).lootChance() * lootMultiplier;
if (ch.buff(StolenTracker.class) != null || lootChance == 0){
if (Dungeon.hero.lvl > ((Mob) ch).maxLvl + 2) {
lootChance = 0;
} else if (ch.buff(StolenTracker.class) != null){
lootChance = 0;
}
if (lootChance == 0){
GLog.w(Messages.get(MasterThievesArmband.class, "no_steal"));
} else if (Random.Float() <= lootChance){
Item loot = ((Mob) ch).createLoot();