diff --git a/code/controllers/configuration/entries/game_options.dm b/code/controllers/configuration/entries/game_options.dm index 79b110a78a..a1ac8fd8cd 100644 --- a/code/controllers/configuration/entries/game_options.dm +++ b/code/controllers/configuration/entries/game_options.dm @@ -368,6 +368,8 @@ /datum/config_entry/flag/allow_random_events // Enables random events mid-round when set +/datum/config_entry/flag/admin_disk_inactive_msg //Allows admins to globally disable ingame logs for this crap + /datum/config_entry/number/events_min_time_mul // Multipliers for random events minimal starting time and minimal players amounts config_entry_value = 1 min_val = 0 diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index d335cfb171..bf541534c9 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -811,6 +811,19 @@ Traitors and the like can also be revived with the previous role mostly intact. message_admins("Admin [key_name_admin(usr)] has disabled random events.") SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle Random Events", "[new_are ? "Enabled" : "Disabled"]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! +/client/proc/admin_enable_disk_inactive_msg() + set category = "Server" + set name = "Toggle nuke disk stationary admin logging" + set desc = "Toggles nuke disk stationary admin logs for all admins" + var/current_state = !CONFIG_GET(flag/admin_disk_inactive_msg) + CONFIG_SET(flag/admin_disk_inactive_msg, current_state) + if(current_state) + to_chat(usr, "Inactive disk admin logging enabled") + message_admins("Admin [key_name_admin(usr)] has enabled inactive disk admin logging") + else + to_chat(usr, "Inactive disk admin logging disabled") + message_admins("Admin [key_name_admin(usr)] has disabled inactive disk admin logging") + SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle nuke disk stationary admin logging", "[current_state ? "Enabled" : "Disabled"]")) /client/proc/admin_change_sec_level() set category = "Special Verbs" diff --git a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm index a11ecaa3df..12e3adeff2 100644 --- a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm +++ b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm @@ -641,9 +641,10 @@ This is here to make the tiles around the station mininuke change when it's arme var/datum/round_event_control/operative/loneop = locate(/datum/round_event_control/operative) in SSevents.control if(istype(loneop)) loneop.weight += 1 - if(loneop.weight % 5 == 0) + if(loneop.weight % 5 == 0 && (CONFIG_GET(flag/admin_disk_inactive_msg))) message_admins("[src] is stationary in [ADMIN_VERBOSEJMP(newturf)]. The weight of Lone Operative is now [loneop.weight].") - log_game("[src] is stationary for too long in [loc_name(newturf)], and has increased the weight of the Lone Operative event to [loneop.weight].") + if(CONFIG_GET(flag/admin_disk_inactive_msg)) + log_game("[src] is stationary for too long in [loc_name(newturf)], and has increased the weight of the Lone Operative event to [loneop.weight].") else lastlocation = newturf last_disk_move = world.time diff --git a/config/game_options.txt b/config/game_options.txt index f65c1bfff5..3404c327e0 100644 --- a/config/game_options.txt +++ b/config/game_options.txt @@ -262,6 +262,10 @@ MAX_TICKETS_PER_ROLL 100 ## Comment this out to disable random events during the round. ALLOW_RANDOM_EVENTS +## Lone op inactive disk messaging +## Comment this out to disable that spam that annoys me. +ADMIN_DISK_INACTIVE_MSG + ## Multiplier for earliest start time of dangerous events. ## Set to 0 to make dangerous events avaliable from round start. EVENTS_MIN_TIME_MUL 1