mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
Tool Leprechaun Interface complete
This commit is contained in:
parent
b9ce65262e
commit
82f22a244e
1 changed files with 3 additions and 1 deletions
|
|
@ -172,6 +172,7 @@ class ToolLeprechaunInterface : ComponentPlugin() {
|
|||
}
|
||||
player.inventory.remove(Item(item,amt))
|
||||
updateQuantityMethod.invoke(player,amt)
|
||||
player.varpManager.get(varp).send(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
|
|
@ -210,7 +211,8 @@ class ToolLeprechaunInterface : ComponentPlugin() {
|
|||
player.dialogueInterpreter.sendDialogue("You don't have enough inventory space for that.")
|
||||
} else {
|
||||
player.inventory.add(Item(item, amt))
|
||||
updateQuantityMethod.invoke(player, amt)
|
||||
updateQuantityMethod.invoke(player, -amt)
|
||||
player.varpManager.get(varp).send(player)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue