Porcelain cup tea now checks for level requirements properly.

This commit is contained in:
Syndromeramo 2025-08-12 11:42:40 -05:00
parent 69d0700065
commit dfc9604673

View file

@ -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)