mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
Fixed partial fingerprints data
Now scanning console properly updates the partial fingerprints with new data and fingerprint cards. Also fixed lack of newline in details screen.
This commit is contained in:
@@ -59,17 +59,23 @@
|
|||||||
fresh.fields["label"] = old.fields["label"]
|
fresh.fields["label"] = old.fields["label"]
|
||||||
files[fresh.uid] = fresh
|
files[fresh.uid] = fresh
|
||||||
|
|
||||||
|
//updating partial prints on other things
|
||||||
|
var/list/fprints = fresh.fields["fprints"]
|
||||||
|
if(fprints.len)
|
||||||
|
for(var/id in files)
|
||||||
|
var/datum/data/record/forensic/rec = files[id]
|
||||||
|
if(rec.update_prints(fprints))
|
||||||
|
files[id] = rec
|
||||||
|
|
||||||
/obj/machinery/computer/forensic_scanning/proc/process_card(var/obj/item/weapon/f_card/card)
|
/obj/machinery/computer/forensic_scanning/proc/process_card(var/obj/item/weapon/f_card/card)
|
||||||
if(card.fingerprints)
|
if(card.fingerprints)
|
||||||
usr << "<span class='notice'>\The [src] sucks in \the [card] and whirrs, scanning it.</span>"
|
usr << "<span class='notice'>\The [src] sucks in \the [card] and whirrs, scanning it.</span>"
|
||||||
var/found = 0
|
var/found = 0
|
||||||
for(var/id in files)
|
for(var/id in files)
|
||||||
var/datum/data/record/forensic/rec = files[id]
|
var/datum/data/record/forensic/rec = files[id]
|
||||||
var/list/prints = rec.fields["fprints"]
|
found = rec.update_prints(card.fingerprints)
|
||||||
for(var/master_print in card.fingerprints)
|
if (found)
|
||||||
if(prints[master_print])
|
files[id] = rec
|
||||||
prints[master_print] = master_print
|
|
||||||
found = 1
|
|
||||||
if(found)
|
if(found)
|
||||||
usr << "<span class='notice'>Complete match found.</span>"
|
usr << "<span class='notice'>Complete match found.</span>"
|
||||||
else
|
else
|
||||||
@@ -189,7 +195,7 @@
|
|||||||
dat += "<br>NO RECORD SELECTED"
|
dat += "<br>NO RECORD SELECTED"
|
||||||
else
|
else
|
||||||
dat += get_printable_data(current)
|
dat += get_printable_data(current)
|
||||||
dat += "<b>Labels:</b> "
|
dat += "<br><b>Labels:</b> "
|
||||||
dat += "<a href='?src=\ref[src];operation=label'>[current.fields["label"] ? current.fields["label"] : "None"]</a><br>"
|
dat += "<a href='?src=\ref[src];operation=label'>[current.fields["label"] ? current.fields["label"] : "None"]</a><br>"
|
||||||
dat += "<a href='?src=\ref[src];operation=print'>Print record</a><br>"
|
dat += "<a href='?src=\ref[src];operation=print'>Print record</a><br>"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user