Files
Paradise/code/modules/tram/tram_wall.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

21 lines
579 B
Plaintext

/obj/tram/wall
name = "reinforced tram wall"
desc = "A huge chunk of reinforced metal used to shield a tram system."
icon = 'icons/turf/walls.dmi'
icon_state = "r_wall"
var/obj/tram/tram_controller/controller
anchored = 1
density = 1
opacity = 1
/obj/tram/wall/proc/spread_walls()
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/wall/TW = locate(/obj/tram/wall) in T2
if(istype(TW))
if(TW in controller.tram_walls) continue
controller.add_wall(TW)
TW.spread_walls()