From c0325a2a6ee1e1b29413d08afa757c6bcd2f8caa Mon Sep 17 00:00:00 2001 From: Razgriz Date: Tue, 28 May 2019 22:51:15 -0700 Subject: [PATCH] Fixed slime event Copied line 41 from spiders. Also rearranged line 40 a bit. Seems to have fixed it. --- code/modules/events/escaped_slimes.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/events/escaped_slimes.dm b/code/modules/events/escaped_slimes.dm index aad2fc18b5..8aa2058df8 100644 --- a/code/modules/events/escaped_slimes.dm +++ b/code/modules/events/escaped_slimes.dm @@ -36,9 +36,10 @@ /datum/event/escaped_slimes/start() // world << "TEST-SPAWN START" var/list/vents = list() - for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in world) - if(temp_vent.network && temp_vent.loc.z in using_map.station_levels && !is_area_occupied(temp_vent.loc.loc)) //borrowed from spiders event, but it works. Distribute the slimes only in rooms with vents - vents += temp_vent + for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines) + if(!temp_vent.welded && !is_area_occupied(temp_vent.loc.loc) && temp_vent.network && temp_vent.loc.z in using_map.station_levels) //borrowed from spiders event, but it works. Distribute the slimes only in rooms with vents + if(temp_vent.network.normal_members.len > 50) + vents += temp_vent while((spawncount > 0) && vents.len) var/obj/vent = pick(vents)