mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
* JSON Logging Take Two * Fixes the conflicts and makes our logs all comply with the new logging framework, hopefully. --------- Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
16 lines
413 B
Plaintext
16 lines
413 B
Plaintext
GLOBAL_LIST_EMPTY(mentorlog)
|
|
GLOBAL_PROTECT(mentorlog)
|
|
|
|
/proc/log_mentor(text, list/data)
|
|
GLOB.mentorlog.Add(text)
|
|
logger.Log(LOG_CATEGORY_GAME_MENTOR, text, data)
|
|
|
|
/datum/admins/proc/MentorLogSecret()
|
|
var/dat = "<B>Mentor Log<HR></B>"
|
|
for(var/l in GLOB.mentorlog)
|
|
dat += "<li>[l]</li>"
|
|
|
|
if(!GLOB.mentorlog.len)
|
|
dat += "No mentors have done anything this round!"
|
|
usr << browse(dat, "window=mentor_log")
|