Tool Leprechaun Interface complete
This commit is contained in:
+3
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user