mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Implemented turning kebabs into super kebabs with red hot sauce
This commit is contained in:
parent
a5a0e9c9b4
commit
13088762d1
1 changed files with 30 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
package rs09.game.node.entity.skill.cooking
|
||||
|
||||
|
||||
import api.*
|
||||
|
||||
import org.rs09.consts.Items
|
||||
import rs09.game.interaction.InteractionListener
|
||||
|
||||
|
||||
/**
|
||||
* @author bushtail
|
||||
* That's-a spicy kebab!
|
||||
*/
|
||||
class SaucyKebabListener : InteractionListener {
|
||||
val sauce = Items.RED_HOT_SAUCE_4610
|
||||
val kebabArr = intArrayOf(
|
||||
Items.KEBAB_1971,
|
||||
Items.UGTHANKI_KEBAB_1883,
|
||||
Items.UGTHANKI_KEBAB_1885
|
||||
)
|
||||
|
||||
override fun defineListeners() {
|
||||
onUseWith(ITEM, kebabArr, sauce) { player, used, with ->
|
||||
if(removeItem(player, used.asItem()) && removeItem(player, with.asItem())) {
|
||||
return@onUseWith addItem(player, Items.SUPER_KEBAB_4608)
|
||||
}
|
||||
return@onUseWith false
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue