Update event turf handling, fix infestation event

This commit is contained in:
Markolie
2015-09-18 17:38:15 +02:00
parent 08e36394ba
commit 0bd697805d
3 changed files with 9 additions and 5 deletions
+1 -4
View File
@@ -58,13 +58,10 @@
spawn_area_type = /area/security/securearmoury
locstring = "armory"
//world << "looking for [spawn_area_type]"
for(var/areapath in typesof(spawn_area_type))
//world << " checking [areapath]"
var/area/A = locate(areapath)
//world << " A: [A], contents.len: [A.contents.len]"
for(var/turf/simulated/floor/F in A.contents)
if(!F.contents.len)
if(turf_clear(F))
turfs += F
var/list/spawn_types = list()
@@ -7,7 +7,7 @@
for(var/areapath in typesof(/area/hallway))
var/area/A = locate(areapath)
for(var/turf/simulated/floor/F in A.contents)
if(!F.contents.len <= 1) // Floors always have a lighting overlay
if(turf_clear(F))
turfs += F
if(turfs.len) //Pick a turf to spawn at if we can