nukes some unmanaged global variables (probably merge this fast as it touches a hundred+ files) (#2829)

* replacements

* indents
This commit is contained in:
silicons
2021-03-07 19:01:45 -08:00
committed by GitHub
parent 39c009e736
commit 472ef33488
129 changed files with 233 additions and 244 deletions
@@ -34,7 +34,7 @@
if(EVENT_LEVEL_MODERATE)
meteor_types = meteors_catastrophic.Copy()
direction = pick(cardinal) // alldirs doesn't work with current meteor code unfortunately.
direction = pick(GLOB.cardinal) // GLOB.alldirs doesn't work with current meteor code unfortunately.
waves = rand(5, 8)
switch(direction)
if(NORTH)
@@ -63,7 +63,7 @@
while(waves)
message_admins("[waves] more wave\s of meteors remain.")
spawn(1) // Dir is reversed because the direction describes where meteors are going, not what side it's gonna hit.
spawn_meteors(rand(8, 12), meteors_threatening, reverse_dir[direction])
spawn_meteors(rand(8, 12), meteors_threatening, GLOB.reverse_dir[direction])
waves--
sleep(30 SECONDS)
announcement = "The station has cleared the incoming debris."
@@ -13,5 +13,5 @@
/datum/gm_action/surprise_meteors/start()
..()
spawn(1)
spawn_meteors(rand(4, 8), meteors_normal, pick(cardinal))
message_admins("Surprise meteors event has ended.")
spawn_meteors(rand(4, 8), meteors_normal, pick(GLOB.cardinal))
message_admins("Surprise meteors event has ended.")