Merge branch 'hat-meme' into 'master'
Added the hat meme See merge request 2009scape/2009scape!82
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
package rs09.game.interaction.item.withobject
|
||||||
|
|
||||||
|
import api.ContentAPI
|
||||||
|
import api.EquipmentSlot
|
||||||
|
import core.cache.def.impl.ItemDefinition
|
||||||
|
import rs09.game.interaction.InteractionListener
|
||||||
|
import rs09.game.system.SystemLogger
|
||||||
|
|
||||||
|
class HatStand : InteractionListener() {
|
||||||
|
|
||||||
|
val hats = ItemDefinition.getDefinitions().values.filter { it.getConfiguration("equipment_slot",0) == EquipmentSlot.HAT.ordinal }.map { it.id }.toIntArray()
|
||||||
|
val hat_stand = 374
|
||||||
|
|
||||||
|
override fun defineListeners() {
|
||||||
|
onUseWith(SCENERY, hats, hat_stand){player, used, with ->
|
||||||
|
ContentAPI.sendDialogue(player, "It'd probably fall off if I tried to do that.")
|
||||||
|
return@onUseWith true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user