mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +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
@@ -1,9 +1,9 @@
|
||||
/datum/event/electrical_fire/start()
|
||||
if(!machines.len)
|
||||
if(!GLOB.machines.len)
|
||||
return
|
||||
|
||||
var/list/possible_machines = list()
|
||||
for(var/obj/machinery/M in machines)
|
||||
for(var/obj/machinery/M in GLOB.machines)
|
||||
var/area/A = get_area(M)
|
||||
if(!A)
|
||||
continue
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/datum/event/horde_infestation/setup()
|
||||
announceWhen = rand(announceWhen, announceWhen + 60)
|
||||
|
||||
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines) //Gathering together all possible areas to spawn mobs.
|
||||
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in GLOB.machines) //Gathering together all possible areas to spawn mobs.
|
||||
//CHOMPEdit: Added a couple areas to the exclusion.
|
||||
var/area/in_area = get_area(temp_vent)
|
||||
if(in_area.flag_check(AREA_FORBID_EVENTS))
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
/datum/event/horde_infestation/start()
|
||||
if(spiders)
|
||||
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
|
||||
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in GLOB.machines)
|
||||
//CHOMPEdit: Added a couple areas to the exclusion. Also made this actually work.
|
||||
var/area/in_area = get_area(temp_vent)
|
||||
if(in_area.flag_check(AREA_FORBID_EVENTS))
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
/datum/event/meteor_wave/meatyores/tick()
|
||||
if(activeFor >= alarmWhen)
|
||||
for(var/obj/machinery/shield_diffuser/SD in global.machines)
|
||||
for(var/obj/machinery/shield_diffuser/SD in GLOB.machines)
|
||||
if(SD.z in affecting_z)
|
||||
SD.meteor_alarm(10)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
spawncount = rand(2 * severity, 4 * severity)
|
||||
|
||||
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
|
||||
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in GLOB.machines)
|
||||
//CHOMPEdit: Added a couple areas to the exclusion. Also made this actually work.
|
||||
var/area/in_area = get_area(temp_vent)
|
||||
if(in_area.flag_check(AREA_FORBID_EVENTS))
|
||||
|
||||
Reference in New Issue
Block a user