mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Tool Leprechaun Interface complete
This commit is contained in:
parent
d18c0c59c4
commit
038ded5753
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue