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
@@ -324,7 +324,7 @@
/singleton/reagent/lithium/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder)
if(M.canmove && !M.restrained() && !(istype(M.loc, /turf/space)))
step(M, pick(cardinal))
step(M, pick(GLOB.cardinal))
if(prob(5) && ishuman(M))
M.emote(pick("twitch", "drool", "moan"))
@@ -64,7 +64,7 @@
if(power > 20)
var/probmod = 5 + (power-20)
if(prob(probmod) && isturf(M.loc) && !istype(M.loc, /turf/space) && M.canmove && !M.restrained())
step(M, pick(cardinal))
step(M, pick(GLOB.cardinal))
if(prob(7))
M.emote(pick("smile","giggle","moan","yawn","laugh","drool","twitch"))
+1 -1
View File
@@ -965,7 +965,7 @@
/datum/chemical_reaction/flash_powder/on_reaction(var/datum/reagents/holder, var/created_volume)
var/location = get_turf(holder.my_atom)
spark(location, 2, alldirs)
spark(location, 2, GLOB.alldirs)
for(var/mob/living/M in viewers(world.view, location))
if(!M.flash_act())
continue
@@ -203,7 +203,7 @@
if(51 to INFINITY) strength = 4
for (var/j = 0, j < strength - 1, j++) //The number of separate splatters
spray_loop:
var/direction = pick(alldirs)
var/direction = pick(GLOB.alldirs)
var/target
for (var/i = 1, i < strength, i++) //The distance the splatters will travel from random direction
switch (direction)