v1.2.1: fixed the armband steal effect working on lower levelled enemies
This commit is contained in:
parent
061a28dd4b
commit
da6263cdd6
|
@ -137,7 +137,14 @@ public class MasterThievesArmband extends Artifact {
|
||||||
}
|
}
|
||||||
|
|
||||||
float lootChance = ((Mob) ch).lootChance() * lootMultiplier;
|
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"));
|
GLog.w(Messages.get(MasterThievesArmband.class, "no_steal"));
|
||||||
} else if (Random.Float() <= lootChance){
|
} else if (Random.Float() <= lootChance){
|
||||||
Item loot = ((Mob) ch).createLoot();
|
Item loot = ((Mob) ch).createLoot();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user