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
@@ -9,7 +9,7 @@ var/list/admin_departments
icon = 'icons/obj/library.dmi'
icon_state = "fax"
insert_anim = "faxsend"
req_one_access = list(access_lawyer, access_heads)
req_one_access = list(ACCESS_LAWYER, ACCESS_HEADS)
density = 0
idle_power_usage = 30
active_power_usage = 200
@@ -293,7 +293,7 @@ var/list/admin_departments
var/cciaa_present = 0
var/cciaa_afk = 0
for(var/s in staff)
for(var/s in GLOB.staff)
var/client/C = s
var/flags = C.holder.rights & (R_ADMIN|R_CCIAA)
if(flags)
+1 -1
View File
@@ -95,7 +95,7 @@
index_name = "Index ([length(indices) + 1])"
E.name = index_name
LAZYSET(indices, E.name, E)
destroyed_event.register(E, src, PROC_REF(remove_index))
GLOB.destroyed_event.register(E, src, PROC_REF(remove_index))
return E
/obj/item/journal/proc/remove_index(var/obj/item/folder/embedded/E)
+1 -1
View File
@@ -438,7 +438,7 @@
. = input
while (written_lang_regex.Find(.))
var/datum/language/L = language_keys[written_lang_regex.group[2]]
var/datum/language/L = GLOB.language_keys[written_lang_regex.group[2]]
// Unknown language.
if (!L || !L.written_style)
continue
+1 -1
View File
@@ -62,7 +62,7 @@
for(var/i=(paperamount-max_paper);i>0;i--)
var/obj/item/shreddedp/SP = get_shredded_paper()
SP.forceMove(get_turf(src))
SP.throw_at(get_edge_target_turf(src,pick(alldirs)),1,5)
SP.throw_at(get_edge_target_turf(src,pick(GLOB.alldirs)),1,5)
paperamount = max_paper
update_icon()
return