From ddef09510bf82ae441cf5575bbaa337964a247e0 Mon Sep 17 00:00:00 2001 From: Alphas00 <154434082+Alphas00@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:48:40 +0100 Subject: [PATCH] Hair Porting Define Tweaked the file for GS13 ported hair to utilize a single, streamlined line of code to quickly integrate hair --- .../new_player/sprite_accessories/hair_head.dm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/GainStation13/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm b/GainStation13/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm index 29ffcf5391..dda2bde3c1 100644 --- a/GainStation13/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm +++ b/GainStation13/code/modules/mob/dead/new_player/sprite_accessories/hair_head.dm @@ -1,11 +1,10 @@ //GS13 - markings, ported or our own (preferably mark where you took them from) -/datum/sprite_accessory/hair/elize - name = "Elize" - icon = 'GainStation13/icons/mob/human_face.dmi' - icon_state = "hair_elize" +#define NEWHAIR(_name, new_state) /datum/sprite_accessory/hair/##new_state/icon_state=#new_state;/datum/sprite_accessory/hair/##new_state/name = #_name;/datum/sprite_accessory/hair/##new_state/icon = 'GainStation13/icons/mob/human_face.dmi' + +NEWHAIR(Elize, hair_elize) +NEWHAIR(Lem, hair_lem) +NEWHAIR(Straight (Floorlength), hair_straightfloorlength) + +#undef NEWHAIR -/datum/sprite_accessory/hair/lem - name = "Lem" - icon = 'GainStation13/icons/mob/human_face.dmi' - icon_state = "hair_lem"