mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
[MIRROR] code/global.dm => code/_global_vars/ (#10689)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Selis
Kashargul
parent
a7718c6177
commit
f04f992cfe
@@ -237,7 +237,7 @@ var/datum/planet/sif/planet_sif = null
|
||||
..()
|
||||
for(var/turf/simulated/floor/outdoors/snow/S as anything 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))
|
||||
@@ -272,7 +272,7 @@ var/datum/planet/sif/planet_sif = null
|
||||
..()
|
||||
for(var/turf/simulated/floor/outdoors/snow/S as anything 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))
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
var/list/localspreads
|
||||
// Test for corners
|
||||
for(var/direction in cornerdirs)
|
||||
for(var/direction in GLOB.cornerdirs)
|
||||
var/turf/dirturf = get_step(T, direction)
|
||||
if(dirturf && !dirturf.is_outdoors())
|
||||
var/turf/TL = get_step(T, turn(direction, -45))
|
||||
@@ -138,7 +138,7 @@
|
||||
LAZYADD(localspreads[dirturf], OL)
|
||||
|
||||
// Take all orthagonals
|
||||
for(var/direction in cardinal)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
var/turf/dirturf = get_step(T, direction)
|
||||
if(dirturf && !dirturf.is_outdoors())
|
||||
var/turf/TL = get_step(T, turn(direction, -45))
|
||||
@@ -166,7 +166,7 @@
|
||||
for(var/turf/old as anything in applied)
|
||||
old.vis_contents -= applied[old]
|
||||
var/old_lit = FALSE
|
||||
for(var/direction in alldirs)
|
||||
for(var/direction in GLOB.alldirs)
|
||||
var/turf/CT = get_step(old, direction)
|
||||
if(CT && CT.is_outdoors())
|
||||
old_lit = TRUE
|
||||
|
||||
@@ -218,7 +218,7 @@ var/datum/planet/virgo3b/planet_virgo3b = null
|
||||
..()
|
||||
for(var/turf/simulated/floor/outdoors/snow/S as anything 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))
|
||||
@@ -255,7 +255,7 @@ var/datum/planet/virgo3b/planet_virgo3b = null
|
||||
..()
|
||||
for(var/turf/simulated/floor/outdoors/snow/S as anything 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))
|
||||
|
||||
@@ -202,7 +202,7 @@ var/datum/planet/virgo4/planet_virgo4 = null
|
||||
..()
|
||||
for(var/turf/simulated/floor/outdoors/snow/S as anything 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))
|
||||
@@ -236,7 +236,7 @@ var/datum/planet/virgo4/planet_virgo4 = null
|
||||
..()
|
||||
for(var/turf/simulated/floor/outdoors/snow/S as anything 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))
|
||||
|
||||
@@ -149,7 +149,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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user