mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
Changes how forensic machine reports works (#12868)
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
density = 1
|
||||
|
||||
var/obj/item/sample = null
|
||||
var/report_num = 0
|
||||
var/report_fiber_num = 0
|
||||
var/report_print_num = 0
|
||||
var/report_gsr_num = 0
|
||||
|
||||
/obj/machinery/microscope/attackby(obj/item/W as obj, mob/user as mob)
|
||||
|
||||
@@ -43,47 +45,56 @@
|
||||
var/info
|
||||
report.stamped = list(/obj/item/stamp)
|
||||
report.overlays = list("paper_stamped")
|
||||
report_num++
|
||||
|
||||
if(istype(sample, /obj/item/forensics/slide))
|
||||
var/obj/item/forensics/slide/slide = sample
|
||||
if(slide.has_swab)
|
||||
var/obj/item/forensics/swab/swab = slide.has_swab
|
||||
|
||||
pname = "GSR report #[report_num]"
|
||||
info = "<b>Scanned item:</b><br>[swab.name]<br><br>"
|
||||
|
||||
if(swab.gsr)
|
||||
info += "Residue from a [swab.gsr] bullet detected."
|
||||
report_gsr_num++
|
||||
pname = "GSR report #[report_gsr_num]"
|
||||
info = "<b><font size=\"4\">GSR anaylsis report #[report_gsr_num]</font></b><HR>"
|
||||
if(length(swab.gsr))
|
||||
info += "Residue analysis of the [swab.name] has determined the presence of the following residues.<ul>"
|
||||
for(var/gsr in swab.gsr)
|
||||
info += "<li>Residue from a [gsr] bullet detected.</li>"
|
||||
info += "</ul>"
|
||||
else
|
||||
info += "No gunpowder residue found."
|
||||
|
||||
else if(slide.has_sample)
|
||||
var/obj/item/sample/fibers/fibers = slide.has_sample
|
||||
pname = "Fiber report #[report_num]"
|
||||
info = "<b>Scanned item:</b><br>[initial(fibers.name)]<br><br>"
|
||||
report_fiber_num++
|
||||
pname = "Fiber report #[report_fiber_num]"
|
||||
if(fibers.evidence)
|
||||
info = "Molecular analysis on [fibers.name] has determined the presence of unique fiber strings.<br><br>"
|
||||
info = "<b><font size=\"4\">Fiber anaylsis report #[report_fiber_num]</font></b><HR>"
|
||||
info += "<b>Source locations:</b> "
|
||||
info += "[english_list(fibers.source, "no sources were found", ", ", ", ", "")].<br><br>"
|
||||
info += "Molecular analysis on [fibers.name] has determined the presence of unique fiber strings.<ul>"
|
||||
for(var/fiber in fibers.evidence)
|
||||
info += SPAN_NOTICE("Most likely match for fibers: [fiber]<br><br>")
|
||||
info += "<li><b>Most likely match for fibers:</b> [fiber]</li>"
|
||||
info += "</ul>"
|
||||
else
|
||||
info += "No fibers found."
|
||||
else
|
||||
pname = "Empty slide report #[report_num]"
|
||||
pname = "Empty slide report #[report_fiber_num]"
|
||||
info = "Evidence suggests that there's nothing in this slide."
|
||||
else if(istype(sample, /obj/item/sample/print))
|
||||
pname = "Fingerprint report #[report_num]"
|
||||
info = "<b>Fingerprint analysis report #[report_num]</b>: [sample.name]<br>"
|
||||
report_print_num++
|
||||
pname = "Fingerprint report #[report_print_num]"
|
||||
var/obj/item/sample/print/card = sample
|
||||
info = "<b><font size=\"4\">Fingerprint analysis report #[report_print_num]</font></b><HR>"
|
||||
info += "<b>Source locations:</b> "
|
||||
info += "[english_list(card.source, "no sources were found", ", ", ", ", "")].<br><br>"
|
||||
if(card.evidence && card.evidence.len)
|
||||
info += "Surface analysis has determined unique fingerprint strings:<br><br>"
|
||||
info += "Surface analysis has determined unique fingerprint strings:<ul>"
|
||||
for(var/prints in card.evidence)
|
||||
info += SPAN_NOTICE("Fingerprint string: ")
|
||||
info += "<li><b>Fingerprint string: </b>"
|
||||
if(!is_complete_print(prints))
|
||||
info += "INCOMPLETE PRINT"
|
||||
else
|
||||
info += "[prints]"
|
||||
info += "<br>"
|
||||
info += "</li>"
|
||||
info += "</ul>"
|
||||
else
|
||||
info += "No information available."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user