ghost roles fix

This commit is contained in:
Metis
2024-10-14 23:57:52 -04:00
parent 007b5565ec
commit f348b44bef
7 changed files with 32 additions and 3 deletions
@@ -56,6 +56,12 @@
if(send_to_spawnpoint)
move_to_spawnpoint()
//GS13 EDIT START
var/mob/living/carbon/human/H = owner.current
H.checkloadappearance()
//GS13 EDIT END
/datum/antagonist/nukeop/get_team()
return nuke_team
@@ -30,6 +30,11 @@
create_objectives()
if(move_to_lair)
send_to_lair()
//GS13 EDIT START
var/mob/living/carbon/human/H = owner.current
H.mirrorcanloadappearance = TRUE
H.checkloadappearance()
//GS13 EDIT END
. = ..()
if(allow_rename)
rename_wizard()
+6
View File
@@ -32,6 +32,7 @@
var/banType = "lavaland"
var/ghost_usable = TRUE
var/skip_reentry_check = FALSE //Skips the ghost role blacklist time for people who ghost/suicide/cryo
var/mirrorcanloadappearance = TRUE //GS13 EDIT
///override this to add special spawn conditions to a ghost role
/obj/effect/mob_spawn/proc/allow_spawn(mob/user, silent = FALSE)
@@ -139,6 +140,7 @@
M.mind.assigned_role = assignedrole
special(M, name)
MM.name = M.real_name
M.checkloadappearance() // GS13 EDIT
if(uses > 0)
uses--
if(!permanent && !uses)
@@ -251,6 +253,10 @@
W.assignment = id_job
W.registered_name = H.real_name
W.update_label()
//GS13 EDIT START
if (mirrorcanloadappearance)
H.mirrorcanloadappearance = TRUE
//GS13 EDIT END
//Instant version - use when spawning corpses during runtime
/obj/effect/mob_spawn/human/corpse