Browse Source

fate peddler work

master
FatBoy-DOTC 1 year ago
parent
commit
7c931e87a4
  1. 6
      src/engine/gameManager/LootManager.java

6
src/engine/gameManager/LootManager.java

@ -428,10 +428,12 @@ public enum LootManager {
} }
//remove gift from inventory //remove gift from inventory
itemMan.delete(gift); itemMan.junk(gift);
//add winnings to player inventory //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);
} }
} }

Loading…
Cancel
Save