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
+1 -1
View File
@@ -56,7 +56,7 @@
to_chat(user, SPAN_CULT("You psionically say to [target]: [text]"))
for (var/mob/M in player_list)
for (var/mob/M in GLOB.player_list)
if (istype(M, /mob/abstract/new_player))
continue
else if(M.stat == DEAD && M.client.prefs.toggles & CHAT_GHOSTEARS)
@@ -55,7 +55,7 @@
to_chat(user, SPAN_CULT("You psionically suggest an emotion to [target]: [text]"))
for (var/mob/M in player_list)
for (var/mob/M in GLOB.player_list)
if (istype(M, /mob/abstract/new_player))
continue
else if(M.stat == DEAD && HAS_FLAG(M.client.prefs.toggles, CHAT_GHOSTEARS))
+1 -1
View File
@@ -57,7 +57,7 @@
for(var/obj/item/organ/E in H.bad_external_organs) // Fix bones
var/obj/item/organ/external/affected = E
if(do_mob(user, H, 10 SECONDS))
if((affected.damage < affected.min_broken_damage * config.organ_health_multiplier) && (affected.status & ORGAN_BROKEN))
if((affected.damage < affected.min_broken_damage * GLOB.config.organ_health_multiplier) && (affected.status & ORGAN_BROKEN))
to_chat(user, SPAN_NOTICE("You mend their [affected] together."))
affected.status &= ~ORGAN_BROKEN
if(HAS_FLAG(affected.status, ORGAN_ARTERY_CUT))
+1 -1
View File
@@ -38,7 +38,7 @@
return
var/list/mob_choices = list()
for(var/mob/living/L in mob_list)
for(var/mob/living/L in GLOB.mob_list)
if(L == user)
continue
if(!L.is_psi_blocked())
@@ -27,7 +27,7 @@
if(do_after(L, 3 SECONDS))
var/list/level_humans = list()
var/found_apex = FALSE
for(var/mob/living/carbon/human/H in human_mob_list)
for(var/mob/living/carbon/human/H in GLOB.human_mob_list)
if(H == L)
continue
if((GET_Z(H) == GET_Z(L)) && !H.is_psi_blocked())
+1 -1
View File
@@ -39,7 +39,7 @@
visible_message(SPAN_NOTICE("[user] rests a hand on \the [hit_atom]."))
busy = TRUE
spark(our_turf, 3, cardinal)
spark(our_turf, 3, GLOB.cardinal)
while(i)
checked_turf = get_step(checked_turf, direction) //Advance in the given direction
+1 -1
View File
@@ -22,7 +22,7 @@
/datum/event/minispasm/start()
var/list/victims = list()
for(var/obj/item/device/radio/radio in listening_objects)
for(var/obj/item/device/radio/radio in GLOB.listening_objects)
if(radio.is_on())
for(var/mob/living/victim in range(radio.canhear_range, radio.loc))
if(isnull(victims[victim]) && victim.stat == CONSCIOUS && !isdeaf(victim))