Skip to content

Commit

Permalink
Ghost roles now have their job title set properly on spawn (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAlpharex authored and StealsThePRs committed Feb 17, 2024
1 parent e3578ab commit 2b94936
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modular_nova/master_files/code/modules/mob_spawn/mob_spawn.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/obj/effect/mob_spawn/ghost_role/
/obj/effect/mob_spawn/ghost_role
/// set this to make the spawner use the outfit.name instead of its name var for things like cryo announcements and ghost records
/// modifying the actual name during the game will cause issues with the GLOB.mob_spawners associative list
var/use_outfit_name
Expand Down Expand Up @@ -59,3 +59,12 @@
// TODO: refactor create() and special() so that this is no longer necessary
/obj/effect/mob_spawn/ghost_role/proc/post_transfer_prefs(mob/living/new_spawn)
return


/obj/effect/mob_spawn/ghost_role/human/special(mob/living/spawned_mob, mob/mob_possessor)
. = ..()
var/mob/living/carbon/human/spawned_human = spawned_mob
var/datum/job/spawned_job = SSjob.GetJobType(spawner_job_path)

spawned_human.job = spawned_job.title

0 comments on commit 2b94936

Please sign in to comment.