mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
Replaced datacore mob reference with a mind reference
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user