mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Porcelain cup tea now checks for level requirements properly.
This commit is contained in:
parent
69d0700065
commit
dfc9604673
1 changed files with 5 additions and 0 deletions
|
|
@ -105,6 +105,11 @@ class TeaInteraction : InteractionListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
onUseWith(ITEM, teaCupPorcelainMap.keys.toIntArray(), Items.PORCELAIN_CUP_4244){player, used, with ->
|
onUseWith(ITEM, teaCupPorcelainMap.keys.toIntArray(), Items.PORCELAIN_CUP_4244){player, used, with ->
|
||||||
|
if (getDynLevel(player, Skills.COOKING) < 20){
|
||||||
|
sendDialogue(player, "You need a cooking level of 20 to make tea.")
|
||||||
|
return@onUseWith false
|
||||||
|
}
|
||||||
|
|
||||||
if(removeItem(player, used) && removeItem(player, with)){
|
if(removeItem(player, used) && removeItem(player, with)){
|
||||||
addItem(player, teaCupPorcelainMap[used.id]!!)
|
addItem(player, teaCupPorcelainMap[used.id]!!)
|
||||||
addItem(player, Items.BOWL_1923)
|
addItem(player, Items.BOWL_1923)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue