Browse Source

mob equipment takes damage upon death

master
FatBoy-DOTC 1 year ago
parent
commit
64aef11c56
  1. 1
      src/engine/gameManager/LootManager.java

1
src/engine/gameManager/LootManager.java

@ -368,6 +368,7 @@ public enum LootManager {
if (ml != null) { if (ml != null) {
ml.setIsID(true); ml.setIsID(true);
ml.setDurabilityCurrent((short)(ml.getDurabilityCurrent() - ThreadLocalRandom.current().nextInt(5) + 1));
mob.getCharItemManager().addItemToInventory(ml); mob.getCharItemManager().addItemToInventory(ml);
} }
} }

Loading…
Cancel
Save