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
+3 -3
View File
@@ -157,7 +157,7 @@ var/datum/planet/frozen_planet/planet_frozen_planet = null
..()
for(var/turf/simulated/floor/outdoors/snow/S in SSplanets.new_outdoor_turfs) //This didn't make any sense before SSplanets, either
if(S.z in holder.our_planet.expected_z_levels)
for(var/dir_checked in cardinal)
for(var/dir_checked in GLOB.cardinal)
var/turf/simulated/floor/T = get_step(S, dir_checked)
if(istype(T))
if(istype(T, /turf/simulated/floor/outdoors) && prob(33))
@@ -189,8 +189,8 @@ var/datum/planet/frozen_planet/planet_frozen_planet = null
..()
for(var/turf/simulated/floor/outdoors/snow/S in SSplanets.new_outdoor_turfs) //This didn't make any sense before SSplanets, either
if(S.z in holder.our_planet.expected_z_levels)
for(var/dir_checked in cardinal)
for(var/dir_checked in GLOB.cardinal)
var/turf/simulated/floor/T = get_step(S, dir_checked)
if(istype(T))
if(istype(T, /turf/simulated/floor/outdoors) && prob(50))
T.chill()
T.chill()
+2 -2
View File
@@ -220,7 +220,7 @@ var/datum/planet/sif/planet_sif = null
..()
for(var/turf/simulated/floor/outdoors/snow/S in SSplanets.new_outdoor_turfs) //This didn't make any sense before SSplanets, either
if(S.z in holder.our_planet.expected_z_levels)
for(var/dir_checked in cardinal)
for(var/dir_checked in GLOB.cardinal)
var/turf/simulated/floor/T = get_step(S, dir_checked)
if(istype(T))
if(istype(T, /turf/simulated/floor/outdoors) && prob(33))
@@ -253,7 +253,7 @@ var/datum/planet/sif/planet_sif = null
..()
for(var/turf/simulated/floor/outdoors/snow/S in SSplanets.new_outdoor_turfs) //This didn't make any sense before SSplanets, either
if(S.z in holder.our_planet.expected_z_levels)
for(var/dir_checked in cardinal)
for(var/dir_checked in GLOB.cardinal)
var/turf/simulated/floor/T = get_step(S, dir_checked)
if(istype(T))
if(istype(T, /turf/simulated/floor/outdoors) && prob(50))
+2 -2
View File
@@ -207,7 +207,7 @@ var/datum/planet/virgo3b/planet_virgo3b = null
..()
for(var/turf/simulated/floor/outdoors/snow/S in SSplanets.new_outdoor_turfs) //This didn't make any sense before SSplanets, either
if(S.z in holder.our_planet.expected_z_levels)
for(var/dir_checked in cardinal)
for(var/dir_checked in GLOB.cardinal)
var/turf/simulated/floor/T = get_step(S, dir_checked)
if(istype(T))
if(istype(T, /turf/simulated/floor/outdoors) && prob(33))
@@ -240,7 +240,7 @@ var/datum/planet/virgo3b/planet_virgo3b = null
..()
for(var/turf/simulated/floor/outdoors/snow/S in SSplanets.new_outdoor_turfs) //This didn't make any sense before SSplanets, either
if(S.z in holder.our_planet.expected_z_levels)
for(var/dir_checked in cardinal)
for(var/dir_checked in GLOB.cardinal)
var/turf/simulated/floor/T = get_step(S, dir_checked)
if(istype(T))
if(istype(T, /turf/simulated/floor/outdoors) && prob(50))
+1 -1
View File
@@ -115,7 +115,7 @@
wind_dir = 0
return
wind_speed = new_wind_speed
wind_dir = pick(alldirs)
wind_dir = pick(GLOB.alldirs)
var/message = "You feel the wind blowing [wind_speed > 2 ? "strongly ": ""]towards the <b>[dir2text(wind_dir)]</b>."
message_all_outdoor_players(span("warning", message))