Quick Harddel Fixeees (#78253)

This commit is contained in:
LemonInTheDark
2023-09-27 21:05:55 -04:00
committed by GitHub
parent cf635800bb
commit 99950517aa
23 changed files with 193 additions and 106 deletions
+3 -3
View File
@@ -193,9 +193,9 @@ GLOBAL_LIST_EMPTY(employmentCabinets)
/obj/structure/filingcabinet/employment/proc/fillCurrent()
//This proc fills the cabinet with the current crew.
for(var/datum/record/locked/target in GLOB.manifest.locked)
var/datum/mind/mind_ref = target.mind_ref
if(mind_ref && ishuman(mind_ref.current))
addFile(mind_ref.current)
var/datum/mind/filed_mind = target.mind_ref.resolve()
if(filed_mind && ishuman(filed_mind.current))
addFile(filed_mind.current)
/obj/structure/filingcabinet/employment/proc/addFile(mob/living/carbon/human/employee)
new /obj/item/paper/employment_contract(src, employee.mind.name)