From 64aef11c56480b14c134b0bab51d9db7b808d5ce Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 4 Aug 2023 19:47:21 -0500 Subject: [PATCH] mob equipment takes damage upon death --- src/engine/gameManager/LootManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 081aa78e..b28eb23f 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -368,6 +368,7 @@ public enum LootManager { if (ml != null) { ml.setIsID(true); + ml.setDurabilityCurrent((short)(ml.getDurabilityCurrent() - ThreadLocalRandom.current().nextInt(5) + 1)); mob.getCharItemManager().addItemToInventory(ml); } }