From fdb6413d2339cfc8736d3dbe386d6b452a5996bd Mon Sep 17 00:00:00 2001 From: SandPoot Date: Wed, 16 Mar 2022 15:22:04 -0300 Subject: [PATCH] You guys want some logs? --- code/__HELPERS/_logging.dm | 4 ++++ code/controllers/configuration/entries/logging.dm | 4 ++++ code/game/atoms.dm | 2 ++ config/entries/logging.txt | 3 +++ 4 files changed, 13 insertions(+) diff --git a/code/__HELPERS/_logging.dm b/code/__HELPERS/_logging.dm index 4bc9ccaacd..6f12d09265 100644 --- a/code/__HELPERS/_logging.dm +++ b/code/__HELPERS/_logging.dm @@ -77,6 +77,10 @@ if (CONFIG_GET(flag/log_game)) WRITE_LOG(GLOB.world_game_log, "GAME: [text]") +/proc/log_mecha(text) + if (CONFIG_GET(flag/log_mecha)) + WRITE_LOG(GLOB.world_mecha_log, "MECHA: [text]") + /proc/log_virus(text) if (CONFIG_GET(flag/log_virus)) WRITE_LOG(GLOB.world_virus_log, "VIRUS: [text]") diff --git a/code/controllers/configuration/entries/logging.dm b/code/controllers/configuration/entries/logging.dm index 54bd5cb713..0a7e714a33 100644 --- a/code/controllers/configuration/entries/logging.dm +++ b/code/controllers/configuration/entries/logging.dm @@ -24,6 +24,10 @@ /datum/config_entry/flag/log_game // log game events config_entry_value = TRUE +/// log mech data +/datum/config_entry/flag/log_mecha + config_entry_value = TRUE + /datum/config_entry/flag/log_virus // log virology data config_entry_value = TRUE diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 1f57c1ced8..6e153028e4 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -1159,6 +1159,8 @@ log_game(log_text) if(LOG_GAME) log_game(log_text) + if(LOG_MECHA) + log_mecha(log_text) if(LOG_SHUTTLE) log_shuttle(log_text) else diff --git a/config/entries/logging.txt b/config/entries/logging.txt index 31692afccb..5b66898ff6 100644 --- a/config/entries/logging.txt +++ b/config/entries/logging.txt @@ -19,6 +19,9 @@ LOG_SUSPICIOUS_LOGIN ## log game actions (start of round, results, etc.) LOG_GAME +## log mecha actions +LOG_MECHA + ## log player votes LOG_VOTE