Ports the TG globals controller and converts globals. (#18057)

* 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

* Port the /TG/ globals controller.

* part 1

* part 2

* oops

* part 3

* Hollow Purple

* sadas

* bsbsdb

* muda na agaki ta

* ids 1-15

* 16-31

* 41-75

* bring me back to how things used to be before i lost it all

* the strength of mayhem

* final touches

* cl

* protect some vars

* update sdql2 to use glob

* stuff?

* forgot that is not defined there

* whoops

* observ

* but it never gets better

* a

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-12-26 01:16:02 +00:00
committed by GitHub
co-authored by Matt Atlas
parent 19292f01d3
commit cadd19beac
966 changed files with 4785 additions and 4784 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
// FOR DEBUGGING ONLY!
/proc/lprof_write(var/atom/movable/obj, var/type = "UNKNOWN")
if (!lighting_profiling || !obj || !establish_db_connection(dbcon))
if (!lighting_profiling || !obj || !establish_db_connection(GLOB.dbcon))
return
var/x = null
@@ -20,7 +20,7 @@
var/static/DBQuery/lprof_q
if (!lprof_q)
lprof_q = dbcon.NewQuery({"INSERT INTO ss13dbg_lighting (time,tick_usage,type,name,loc_name,x,y,z)
lprof_q = GLOB.dbcon.NewQuery({"INSERT INTO ss13dbg_lighting (time,tick_usage,type,name,loc_name,x,y,z)
VALUES (:time:,:tick_usage:,:type:,:name:,:loc_name:,:x:,:y:,:z:);"})
lprof_q.Execute(
@@ -68,7 +68,7 @@
// We don't need no damn vis checks!
for (Tthing in RANGE_TURFS(Ceiling(light_range), source_turf))
T = Tthing
if (the_station_areas[T.loc])
if (GLOB.the_station_areas[T.loc])
continue
check_t:
+1 -1
View File
@@ -94,7 +94,7 @@ var/list/admin_verbs_lighting = list(
if (!check_rights(R_DEBUG|R_SERVER)) return
if (!establish_db_connection(dbcon))
if (!establish_db_connection(GLOB.dbcon))
to_chat(usr, SPAN_ALERT("Unable to start profiling: No active database connection."))
return