Merge pull request #2282 from Cyantime/grublarvs

Improves solargrub larva
This commit is contained in:
Spades
2017-10-12 18:12:31 -04:00
committed by GitHub
8 changed files with 309 additions and 17 deletions

View File

@@ -14,13 +14,15 @@
/datum/event/grub_infestation/start()
var/list/vents = list()
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in world)
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
if(istype(get_area(temp_vent), /area/crew_quarters/sleep))
continue
if(!temp_vent.welded && temp_vent.network && temp_vent.loc.z in using_map.station_levels)
if(temp_vent.network.normal_members.len > 50)
vents += temp_vent
while((spawncount >= 1) && vents.len)
var/obj/vent = pick(vents)
new /obj/effect/spider/spiderling/grub(vent.loc)
new /mob/living/simple_animal/solargrub_larva(get_turf(vent))
vents -= vent
spawncount--