From 7c931e87a4a115a132615f3e199cde43b99b1bd5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 9 Aug 2023 14:53:05 -0500 Subject: [PATCH] fate peddler work --- src/engine/gameManager/LootManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index a5f4886e..a7899cb2 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -428,10 +428,12 @@ public enum LootManager { } //remove gift from inventory - itemMan.delete(gift); + itemMan.junk(gift); //add winnings to player inventory - itemMan.updateInventory(winnings.promoteToItem((PlayerCharacter)character),true); + Item playerWinnings = winnings.promoteToItem((PlayerCharacter)character); + itemMan.addItemToInventory(playerWinnings); + itemMan.updateInventory(playerWinnings,true); } }