From e5041147f458f76e9ee75be58caeda2a8821bd31 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 7 Jul 2024 21:26:37 -0500 Subject: [PATCH] added disc and rune to commander drops --- src/engine/gameManager/LootManager.java | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index a6a9e2c9..397fc2cd 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -688,7 +688,7 @@ public enum LootManager { int baseLoot = rollRandomItem(random); ItemBase contract = ItemBase.getItemBase(baseLoot); if (contract != null) { - MobLoot toAdd = new MobLoot(mob, contract, false); + MobLoot toAdd = new MobLoot(mob, contract, true); if (toAdd != null) mob.getCharItemManager().addItemToInventory(toAdd); @@ -697,11 +697,29 @@ public enum LootManager { int glassID = rollRandomItem(126); ItemBase glassItem = ItemBase.getItemBase(glassID); if (glassItem != null) { - MobLoot toAdd2 = new MobLoot(mob, glassItem, false); + MobLoot toAdd2 = new MobLoot(mob, glassItem, true); - if (toAdd != null) + if (toAdd2 != null) mob.getCharItemManager().addItemToInventory(toAdd2); } + + int discID = rollRandomItem(3202); + ItemBase discItem = ItemBase.getItemBase(discID); + if (glassItem != null) { + MobLoot toAdd3 = new MobLoot(mob, discItem, true); + + if (toAdd3 != null) + mob.getCharItemManager().addItemToInventory(toAdd3); + } + + int runeID = rollRandomItem(3201); + ItemBase runeItem = ItemBase.getItemBase(runeID); + if (runeItem != null) { + MobLoot toAdd4 = new MobLoot(mob, runeItem, true); + + if (toAdd4 != null) + mob.getCharItemManager().addItemToInventory(toAdd4); + } } }