Ashwalker custom avatar fix

This commit is contained in:
Dmitry
2025-05-10 23:30:04 +03:00
parent 0b43509ed8
commit d1a0a612b0
+6 -2
View File
@@ -1,8 +1,11 @@
mob/proc/checkloadappearance()
/mob/proc/checkloadappearance()
var/mob/living/carbon/human/H = src
if(!istype(H))
return FALSE
//GS13 EDIT start
var/datum/species/A = /datum/species/lizard/ashwalker //GS13 EDIT let ashwalkers have custom avatars
var/ashie = (H.dna.species.id == SPECIES_ASHWALKER)
//GS13 EDIT end
//This will be where the person gets to select their appearance instead of the random character
if (H.mirrorcanloadappearance == TRUE)
SEND_SOUND(H, 'sound/misc/server-ready.ogg')
@@ -21,6 +24,7 @@ mob/proc/checkloadappearance()
idCard.update_label(H.real_name, idCard.assignment)
idCard.registered_name = H.real_name
H.mirrorcanloadappearance = FALSE //Prevents them from using the mirror again.
if(ashie) H.set_species(A) //GS13 EDIT
ADD_TRAIT(H,TRAIT_EXEMPT_HEALTH_EVENTS,GHOSTROLE_TRAIT) //Makes sure they are exempt from health events.
SEND_SOUND(H, 'sound/magic/charge.ogg') //Fluff
to_chat(H, "<span class='boldannounce'>Your head aches for a second. You feel like this is how things should have been.</span>")