mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Added update_prints helper
It updates forensic data datum with fingerprints and returns 1 if there was a match.
This commit is contained in:
@@ -70,4 +70,12 @@ atom/proc/add_fibers(mob/living/carbon/human/M)
|
|||||||
fields["blood"] = blood
|
fields["blood"] = blood
|
||||||
|
|
||||||
fields["area"] = other.fields["area"]
|
fields["area"] = other.fields["area"]
|
||||||
fields["time"] = other.fields["time"]
|
fields["time"] = other.fields["time"]
|
||||||
|
|
||||||
|
/datum/data/record/forensic/proc/update_prints(var/list/o_prints)
|
||||||
|
var/list/prints = fields["fprints"]
|
||||||
|
for(var/print in o_prints)
|
||||||
|
if(prints[print])
|
||||||
|
prints[print] = stringmerge(prints[print], o_prints[print])
|
||||||
|
.=1
|
||||||
|
fields["fprints"] = prints
|
||||||
|
|||||||
Reference in New Issue
Block a user