Added the hat meme

This commit is contained in:
ceikry
2021-07-01 18:41:52 -05:00
parent f27e5ed176
commit c9f854458f
@@ -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
}
}
}