Files
Paradise/code/modules/tram/tram_wall.dm
T
AffectedArc07andGitHub 210f8badf4 Makes all global variables handled by the GLOB controller (#13152)
* Handlers converted, now to fix 3532 compile errors

* 3532 compile fixes later, got runtimes on startup

* Well the server loads now atleast

* Take 2

* Oops
2020-03-20 21:56:37 -06:00

22 lines
585 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 GLOB.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()