Prevent spiders in docks and dorms

This commit is contained in:
Razgriz
2020-11-17 05:10:52 -07:00
committed by GitHub
parent 9788c05c8b
commit a8e49a29e7

View File

@@ -17,6 +17,8 @@
/datum/event/spider_infestation/start() /datum/event/spider_infestation/start()
var/list/vents = list() var/list/vents = list()
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines) for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
if(istype(get_area(temp_vent), /area/crew_quarters/sleep || /area/hallway/secondary/entry || /area/surface/outpost/main/dorms))
continue
if(!temp_vent.welded && temp_vent.network && temp_vent.loc.z in using_map.station_levels) if(!temp_vent.welded && temp_vent.network && temp_vent.loc.z in using_map.station_levels)
if(temp_vent.network.normal_members.len > 50) if(temp_vent.network.normal_members.len > 50)
vents += temp_vent vents += temp_vent