handles welded vents

This commit is contained in:
Kyep
2019-02-10 01:43:47 -08:00
parent 591571f92b
commit 108986174c
+5 -1
View File
@@ -36,7 +36,11 @@
spider_type = /mob/living/simple_animal/hostile/poison/terror_spider/mother
spawncount = 1
while(spawncount >= 1 && vents.len)
var/obj/vent = pick(vents)
var/obj/machinery/atmospherics/unary/vent_pump/vent = pick(vents)
if(vent.welded)
vents -= vent
continue
// If the vent we picked has any living mob nearby, just remove it from the list, loop again, and pick something else.