mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 15:21:29 +00:00
* Refactors Investigate Log * Speedup character loading * Optimise SSinstancing * Removes both path images * Optimises SSdebugview * CRLF --> LF * Update config/example/config.toml
32 lines
993 B
Plaintext
32 lines
993 B
Plaintext
// 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] += "<small>[time_stamp()] [UID()] [ADMIN_COORDJMP(src)] </small> || [src] [message]"
|
|
|
|
//ADMINVERBS
|
|
/client/proc/investigate_show(subject in GLOB.investigate_log_wrapper)
|
|
set name = "Investigate Round Objects"
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_ADMIN))
|
|
return
|
|
|
|
// Should never happen
|
|
if(!(subject in GLOB.investigate_log_wrapper))
|
|
return
|
|
|
|
var/list/entries = GLOB.investigate_log_wrapper[subject]
|
|
|
|
var/datum/browser/B = new(usr, "investigatelog", "Investigate ([subject])", 800, 400)
|
|
B.set_content(entries.Join("<br>"))
|
|
B.open()
|