Artur
2020-05-27 12:48:25 +03:00
parent cc427f18ec
commit 3c973816d1
31 changed files with 853 additions and 351 deletions
+11 -7
View File
@@ -18,6 +18,7 @@
var/list/log = list()
var/range = 8
var/view_check = TRUE
var/forensicPrintCount = 0
actions_types = list(/datum/action/item_action/displayDetectiveScanResults)
/datum/action/item_action/displayDetectiveScanResults
@@ -42,13 +43,16 @@
/obj/item/detective_scanner/proc/PrintReport()
// Create our paper
var/obj/item/paper/P = new(get_turf(src))
P.name = "paper- 'Scanner Report'"
P.info = "<center><font size='6'><B>Scanner Report</B></font></center><HR><BR>"
P.info += jointext(log, "<BR>")
P.info += "<HR><B>Notes:</B><BR>"
P.info_links = P.info
P.updateinfolinks()
//This could be a global count like sec and med record printouts. See GLOB.data_core.medicalPrintCount AKA datacore.dm
var frNum = ++forensicPrintCount
P.name = text(" FR-[] 'Forensic Record'", frNum)
var/list/text = new
text+= text("* _Forensic Record - (FR-[])_", frNum)
text += log.Join("\n")
text += "* _Notes:_"
P.setText(text.Join("\n"))
if(ismob(loc))
var/mob/M = loc
M.put_in_hands(P)
@@ -216,4 +220,4 @@
return
to_chat(user, "<span class='notice'><B>Scanner Report</B></span>")
for(var/iterLog in log)
to_chat(user, iterLog)
to_chat(user, iterLog)