Dedicated wire logging file (#11125)

This commit is contained in:
9600bauds
2016-07-26 17:22:58 -03:00
committed by clusterfack
parent 4417ec0d64
commit eaf6c1b36e
16 changed files with 140 additions and 27 deletions

View File

@@ -12,7 +12,7 @@
#define INVESTIGATE_DIR "data/investigate/"
// Just in case
#define AVAILABLE_INVESTIGATIONS list(I_HREFS,I_NOTES,I_NTSL,I_SINGULO,I_ATMOS,I_CHEMS)
#define AVAILABLE_INVESTIGATIONS list(I_HREFS,I_NOTES,I_NTSL,I_SINGULO,I_ATMOS,I_CHEMS,I_WIRES)
// Actual list of global controllers.
var/global/list/investigations=list(
@@ -21,7 +21,8 @@ var/global/list/investigations=list(
I_NTSL = new /datum/log_controller(I_NTSL),
I_SINGULO = new /datum/log_controller(I_SINGULO),
I_ATMOS = null, //new /datum/log_controller("atmos",filename="data/logs/[date_string] atmos.htm", persist=TRUE),
I_CHEMS = null // Set on world.New() with hrefs and atmos
I_CHEMS = null, // Set on world.New()
I_WIRES = null // Set on world.New()
)
// Handles appending shit to log.
@@ -67,7 +68,8 @@ var/global/list/investigations=list(
// Permits special snowflake formatting.
/atom/proc/format_investigation_text(var/message)
return "<small>[time2text(world.timeofday,"hh:mm:ss")] \ref[src] ([x],[y],[z])</small> || [src] [message]<br />"
var/turf/T = get_turf(src)
return "<small>[time2text(world.timeofday,"hh:mm:ss")] \ref[src] ([T.x],[T.y],[T.z])</small> || [src] [message]<br />"
// For non-atoms or very specific messages.
/proc/minimal_investigation_log(var/subject, var/message, var/prefix)