Files
Paradise/code/modules/tram/tram_floor.dm
Tigercat2000 c96631c6bd MT/TS: Added to map, fluffy cleanup, icon fix
This commit adds an MT/TS to the research department, changes the names
and descriptions of the tram parts to have a little more care, and
slightly fixes the rail icon.
2015-05-18 18:07:14 -07:00

20 lines
552 B
Plaintext

/obj/tram/floor
name = "tram platform"
desc = "A holding space for a tram system."
icon = 'icons/turf/floors.dmi'
icon_state = "floor"
var/obj/tram/tram_controller/controller
anchored = 1
layer = TURF_LAYER + 0.2
/obj/tram/floor/proc/spread_floors()
var/turf/T = get_turf(src)
if(!T) return
if(!controller) return
for(var/cdir in cardinal)
var/turf/T2 = get_step(T,cdir)
var/obj/tram/floor/TF = locate(/obj/tram/floor) in T2
if(istype(TF))
if(TF in controller.tram_floors) continue
controller.add_floor(TF)
TF.spread_floors()