vorg HA fix

This commit is contained in:
2024-03-06 19:47:31 -06:00
parent d3bf19426c
commit b9ec8fd540
3 changed files with 15 additions and 12 deletions
+6 -1
View File
@@ -375,13 +375,18 @@ public enum LootManager {
}
MobLoot ml = new MobLoot(mob, genericIB, false);
if (ml != null && dropCount < 1) {
if (ml != null && dropCount < 1 && genericIB.isVorg() == false) {
ml.setIsID(true);
ml.setDurabilityCurrent((short) (ml.getDurabilityCurrent() - ThreadLocalRandom.current().nextInt(5) + 1));
mob.getCharItemManager().addItemToInventory(ml);
dropCount = 1;
//break; // Exit on first successful roll.
}
if(ml != null && genericIB.isVorg()){
ml.setIsID(true);
ml.setDurabilityCurrent(ml.getDurabilityMax());
mob.getCharItemManager().addItemToInventory(ml);
}
}
}