mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-12 21:21:27 +00:00
Update spreading.dm (#3031)
This commit is contained in:
@@ -3,12 +3,11 @@
|
|||||||
|
|
||||||
/proc/spacevine_infestation(var/potency_min=40, var/potency_max=80, var/maturation_min=5, var/maturation_max=15)
|
/proc/spacevine_infestation(var/potency_min=40, var/potency_max=80, var/maturation_min=5, var/maturation_max=15)
|
||||||
spawn() //to stop the secrets panel hanging
|
spawn() //to stop the secrets panel hanging
|
||||||
var/list/turf/simulated/floor/turfs = list() //list of all the empty floor turfs in the hallway areas
|
var/list/turf/simulated/floor/turfs = get_area_turfs(typesof(/area/hallway)) //list of all the empty floor turfs in the hallway areas
|
||||||
for(var/areapath in typesof(/area/hallway))
|
for(var/i in turfs)
|
||||||
var/area/A = locate(areapath)
|
var/turf/T = i
|
||||||
for(var/turf/simulated/floor/F in A.contents)
|
if(!(T.z in GLOB.using_map.station_levels))
|
||||||
if(turf_clear(F))
|
turfs -= T
|
||||||
turfs += F
|
|
||||||
|
|
||||||
if(turfs.len) //Pick a turf to spawn at if we can
|
if(turfs.len) //Pick a turf to spawn at if we can
|
||||||
var/turf/simulated/floor/T = pick(turfs)
|
var/turf/simulated/floor/T = pick(turfs)
|
||||||
|
|||||||
Reference in New Issue
Block a user