Appearance
data class Appearance( val bodyParts: DirtyIntArray = noParts(), val colours: DirtyIntArray = zeroColours(), val gender: Dirty<Gender?> = dirty(null)) : Component()on_npc_option(Assets.Npc.hans.id, "Haircut") { player -> val look = player.findComponent<Appearance>() ?: return@on_npc_option look.hairColour = (look.hairColour + 1) % 12 player.message("Hans trims your hair.")}bodyParts
Section titled “bodyParts”val bodyParts: DirtyIntArraycolours
Section titled “colours”val colours: DirtyIntArraygender
Section titled “gender”val gender: Dirty<Gender?>var hair: IntfacialHair
Section titled “facialHair”var facialHair: Intvar torso: Intvar arms: Intvar hands: Intvar legs: Intvar feet: InthairColour
Section titled “hairColour”var hairColour: InttorsoColour
Section titled “torsoColour”var torsoColour: IntlegsColour
Section titled “legsColour”var legsColour: IntfeetColour
Section titled “feetColour”var feetColour: IntskinColour
Section titled “skinColour”var skinColour: IntcombatLevel
Section titled “combatLevel”var combatLevel: Inthidden
Section titled “hidden”var hidden: Booleanvar dirty: Boolean