mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 10:41:42 +00:00
This commit overhauls the lighting system to Bay12 standards. It is better in pretty much every way.
16 lines
629 B
Plaintext
16 lines
629 B
Plaintext
//Carn: Spacevines random event.
|
|
/proc/spacevine_infestation()
|
|
|
|
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
|
|
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)
|
|
turfs += F
|
|
|
|
if(turfs.len) //Pick a turf to spawn at if we can
|
|
var/turf/simulated/floor/T = pick(turfs)
|
|
new/obj/effect/plant_controller(T) //spawn a controller at turf
|
|
message_admins("\blue Event: Spacevines spawned at [T.loc] ([T.x],[T.y],[T.z])")
|