mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-12 00:20:55 +01:00
Excludes certain ghost roles from being affected by health events
This commit is contained in:
@@ -47,6 +47,9 @@
|
||||
new/obj/structure/fluff/empty_cryostasis_sleeper(get_turf(src))
|
||||
return ..()
|
||||
|
||||
/obj/effect/mob_spawn/human/duohermit/special(mob/living/carbon/human/new_spawn)
|
||||
ADD_TRAIT(new_spawn,TRAIT_EXEMPT_HEALTH_EVENTS,GHOSTROLE_TRAIT)
|
||||
|
||||
//Exiles: Stranded exiles that have been left in Snowdin. Can be easily adapted for other roles as well.
|
||||
/obj/effect/mob_spawn/human/exiled
|
||||
name = "used bed"
|
||||
@@ -105,3 +108,6 @@
|
||||
/obj/effect/mob_spawn/human/exiled/Destroy()
|
||||
new/obj/structure/bed(get_turf(src))
|
||||
return ..()
|
||||
|
||||
/obj/effect/mob_spawn/human/exiled/special(mob/living/carbon/human/new_spawn)
|
||||
ADD_TRAIT(new_spawn,TRAIT_EXEMPT_HEALTH_EVENTS,GHOSTROLE_TRAIT)
|
||||
|
||||
@@ -18,6 +18,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.
|
||||
ADD_TRAIT(H,TRAIT_EXEMPT_HEALTH_EVENTS,GHOSTROLE_TRAIT) //Makes them exempt from health events and adds gives them the ghostrole trait. This is a special tool we'll use later.
|
||||
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>")
|
||||
log_game("[key_name(H)] has loaded their default appearance for a ghost role.")
|
||||
|
||||
Reference in New Issue
Block a user