// Atom investigate stuff
// All of this is stored in a global list because its faster than file IO and we arent ram constrained like TG -aa07
GLOBAL_LIST_EMPTY(investigate_log_wrapper)
GLOBAL_PROTECT(investigate_log_wrapper)
/atom/proc/investigate_log(message, subject)
if(!message || !subject)
return
if(!(subject in GLOB.investigate_log_wrapper))
GLOB.investigate_log_wrapper[subject] = list()
GLOB.investigate_log_wrapper[subject] += "[time_stamp()] [UID()] [ADMIN_COORDJMP(src)] || [src] [message]"
USER_VERB(investigate_show, R_ADMIN, "Investigate Round Objects", "View Investigation panel.", VERB_CATEGORY_ADMIN, subject in GLOB.investigate_log_wrapper)
// Should never happen
if(!(subject in GLOB.investigate_log_wrapper))
return
var/list/entries = GLOB.investigate_log_wrapper[subject]
var/datum/browser/B = new(client, "investigatelog", "Investigate ([subject])", 800, 400)
B.set_content(entries.Join("
"))
B.open()