mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Updates SDQL2 to the latest TG version and adds variable protection. (#17997)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * discord protection --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -478,6 +478,8 @@ var/list/gamemode_cache = list()
|
||||
var/asset_cdn_webroot = ""
|
||||
var/asset_cdn_url = null
|
||||
|
||||
GENERAL_PROTECT_DATUM(/datum/configuration)
|
||||
|
||||
/datum/configuration/New()
|
||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||
for (var/T in L)
|
||||
|
||||
@@ -34,6 +34,15 @@ SUBSYSTEM_DEF(discord)
|
||||
// with world.visibility == 0.
|
||||
var/alert_visibility = 0
|
||||
|
||||
/datum/controller/subsystem/discord/can_vv_get(var_name)
|
||||
if(var_name == NAMEOF(src, auth_token))
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/datum/controller/subsystem/discord/vv_edit_var(var_name, var_value)
|
||||
if(var_name == NAMEOF(src, auth_token))
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/datum/controller/subsystem/discord/Initialize()
|
||||
config.load("config/discord.txt", "discord")
|
||||
|
||||
@@ -32,6 +32,8 @@ SUBSYSTEM_DEF(statistics)
|
||||
|
||||
var/status_needs_update = FALSE
|
||||
|
||||
GENERAL_PROTECT_DATUM(/datum/controller/subsystem/statistics)
|
||||
|
||||
/datum/controller/subsystem/statistics/Initialize(timeofday)
|
||||
for (var/type in subtypesof(/datum/statistic) - list(/datum/statistic/numeric, /datum/statistic/grouped))
|
||||
var/datum/statistic/S = new type
|
||||
|
||||
@@ -20,8 +20,10 @@
|
||||
if (!Master.initializing && SS.flags & SS_NO_DISPLAY)
|
||||
continue
|
||||
available_controllers[SS.name] = SS
|
||||
available_controllers["Evacuation Main Controller"] = evacuation_controller
|
||||
available_controllers["Evacuation Controller"] = evacuation_controller
|
||||
var/css = input("What controller would you like to debug?", "Controllers") as null|anything in available_controllers
|
||||
if(!css)
|
||||
return
|
||||
debug_variables(available_controllers[css])
|
||||
|
||||
message_admins("Admin [key_name_admin(usr)] is debugging the [css] controller.")
|
||||
|
||||
Reference in New Issue
Block a user