From ffecdbb06bc18b81d477f52a19910920d5313657 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 20 Feb 2025 21:58:30 -0600 Subject: [PATCH] new Fate Peddler --- src/engine/gameManager/LootManager.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 0ba857e4..0397cd2d 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -678,17 +678,25 @@ public enum LootManager { case 971012: //wrapped glass int chance = ThreadLocalRandom.current().nextInt(100); if(chance == 50){ - ItemBase glassBase =ItemBase.getItemBase(rollRandomItem(126)); - if(glassBase != null) - winnings = new MobLoot(playerCharacter, ib, 1, false); + int ID = 7000000; + int additional = ThreadLocalRandom.current().nextInt(0,28); + ID += (additional * 10); + ItemBase glassBase = ItemBase.getItemBase(ID); + if(glassBase != null) { + winnings = new MobLoot(playerCharacter, glassBase, 1, false); + ChatManager.chatSystemInfo(playerCharacter, "You've Won A " + glassBase.getName()); + } }else{ ChatManager.chatSystemInfo(playerCharacter, "Please Try Again!"); } break; } - if (winnings == null) + if (winnings == null) { + itemMan.consume(gift); + itemMan.updateInventory(); return; + } //early exit if the inventory of the player will not hold the item