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:
Matt Atlas
2023-12-25 17:10:35 +00:00
committed by GitHub
co-authored by Matt Atlas
parent af318acfc1
commit 12487c94bb
53 changed files with 2014 additions and 1042 deletions
+2
View File
@@ -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)
+9
View File
@@ -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
+3 -1
View File
@@ -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.")