mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-22 12:47:43 +01:00
Toggle disk msg (#12)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user