Replaced datacore mob reference with a mind reference

This commit is contained in:
Ian Turk
2017-08-30 17:05:31 -06:00
parent 2580b81465
commit 246b50bd4e
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -273,7 +273,7 @@
L.fields["species"] = H.dna.species.type
L.fields["features"] = H.dna.features
L.fields["image"] = image
L.fields["reference"] = H
L.fields["mindref"] = H.mind
locked += L
return
+3 -3
View File
@@ -27,9 +27,9 @@
. = list()
for(var/V in GLOB.data_core.locked)
var/datum/data/record/R = V
var/mob/M = R.fields["reference"]
if(M && M.mind)
. += M.mind
var/datum/mind/M = R.fields["mindref"]
if(M)
. += M
/datum/objective/proc/find_target()
var/list/possible_targets = list()
+3 -2
View File
@@ -200,8 +200,9 @@ GLOBAL_LIST_EMPTY(employmentCabinets)
var/datum/data/record/G = record
if(!G)
continue
if(G.fields["reference"])
addFile(G.fields["reference"])
var/datum/mind/M = G.fields["mindref"]
if(M && ishuman(M.current))
addFile(M.current)
/obj/structure/filingcabinet/employment/proc/addFile(mob/living/carbon/human/employee)