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
@@ -14,11 +14,11 @@
/obj/item/phylactery/Initialize()
. = ..()
world_phylactery += src
GLOB.world_phylactery += src
/obj/item/phylactery/Destroy()
to_chat(lich, "<span class='danger'>Your phylactery was destroyed, your soul is cast into the abyss as your immortality vanishes away!</span>")
world_phylactery -= src
GLOB.world_phylactery -= src
lich = null
return ..()
@@ -28,7 +28,7 @@
if(A.blood_DNA)
var/marked = pick(A.blood_DNA)
for(var/mob/living/carbon/human/H in mob_list)
for(var/mob/living/carbon/human/H in GLOB.mob_list)
if(H.dna.unique_enzymes == marked)
target = WEAKREF(H)
countenance = H.dna.species
@@ -54,7 +54,7 @@
if(target_zone == BP_R_LEG || target_zone == BP_L_LEG)
to_chat(user, "<span class='notice'>You move \the [src]'s legs around.</span>")
if(H.canmove && !H.restrained() && !(istype(H.loc, /turf/space)))
step(H, pick(cardinal))
step(H, pick(GLOB.cardinal))
if(target_zone == BP_L_HAND || target_zone == BP_L_ARM)
to_chat(user, "<span class='notice'>You twist \the [src]'s left arm.</span>")
@@ -120,7 +120,7 @@
..()
var/mob/living/carbon/human/H = target.resolve()
if(H)
H.throw_at(get_edge_target_turf(H,pick(alldirs)), 5, 1)
H.throw_at(get_edge_target_turf(H,pick(GLOB.alldirs)), 5, 1)
/obj/item/poppet/emp_act(severity)
. = ..()
@@ -41,7 +41,7 @@
T.cultify()
var/destination = null
for(var/obj/singularity/narsie/large/N in narsie_list)
for(var/obj/singularity/narsie/large/N in GLOB.narsie_list)
destination = N.loc
break
if(destination)
@@ -37,7 +37,7 @@ Targeted spells have two useful flags: INCLUDEUSER and SELECTABLE. These are exp
if(max_targets == 0) //unlimited
if(range == -2)
targets = living_mob_list
targets = GLOB.living_mob_list
else
for(var/mob/living/target in view_or_range(range, holder, selection_type))
targets += target
@@ -49,7 +49,7 @@ Targeted spells have two useful flags: INCLUDEUSER and SELECTABLE. These are exp
var/list/possible_targets = list()
var/list/starting_targets
if(range == -2)
starting_targets = living_mob_list
starting_targets = GLOB.living_mob_list
else
starting_targets = view_or_range(range, holder, selection_type)
@@ -77,7 +77,7 @@ Targeted spells have two useful flags: INCLUDEUSER and SELECTABLE. These are exp
var/list/starting_targets
if(range == -2)
starting_targets = living_mob_list
starting_targets = GLOB.living_mob_list
else
starting_targets = view_or_range(range, holder, selection_type)