Tool Leprechaun Interface complete

This commit is contained in:
Ceikry 2021-03-08 00:29:57 -06:00
parent d18c0c59c4
commit 038ded5753

View file

@ -172,6 +172,7 @@ class ToolLeprechaunInterface : ComponentPlugin() {
} }
player.inventory.remove(Item(item,amt)) player.inventory.remove(Item(item,amt))
updateQuantityMethod.invoke(player,amt) updateQuantityMethod.invoke(player,amt)
player.varpManager.get(varp).send(player)
return true return true
} }
}) })
@ -210,7 +211,8 @@ class ToolLeprechaunInterface : ComponentPlugin() {
player.dialogueInterpreter.sendDialogue("You don't have enough inventory space for that.") player.dialogueInterpreter.sendDialogue("You don't have enough inventory space for that.")
} else { } else {
player.inventory.add(Item(item, amt)) player.inventory.add(Item(item, amt))
updateQuantityMethod.invoke(player, amt) updateQuantityMethod.invoke(player, -amt)
player.varpManager.get(varp).send(player)
} }
return true return true
} }