EquipmentSlot
enum class EquipmentSlot(val id: Int)on_login { player -> val equipment = player.findComponent<Equipment>() ?: return@on_login val hat = equipment[EquipmentSlot.Head] player.message(if (hat == null) "You wear no hat." else "You wear ${hat.name}.")}val id: IntHeadBackNeckMainHand
Section titled “MainHand”MainHandBodyOffHand
Section titled “OffHand”OffHandArmsLegsHairHandsFeetBeardFinger
Section titled “Finger”FingerQuiver
Section titled “Quiver”QuiverHairAndBeard
Section titled “HairAndBeard”HairAndBeardfromId
Section titled “fromId”fun fromId(id: Int): EquipmentSlot?