mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-06 06:10:03 +00:00
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commitafbdd1d844. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commitde22ad375d. * Attempt to normalize example.yml (and another file I guess) * Try again
39 lines
991 B
Plaintext
39 lines
991 B
Plaintext
// the underfloor wiring terminal for the APC
|
|
// autogenerated when an APC is placed
|
|
// all conduit connects go to this object instead of the APC
|
|
// using this solves the problem of having the APC in a wall yet also inside an area
|
|
|
|
/obj/machinery/power/terminal
|
|
name = "terminal"
|
|
icon_state = "term"
|
|
desc = "It's an underfloor wiring terminal for power equipment."
|
|
level = 1
|
|
var/obj/machinery/power/master = null
|
|
anchored = TRUE
|
|
plane = PLATING_PLANE
|
|
layer = WIRES_LAYER+0.01
|
|
|
|
|
|
/obj/machinery/power/terminal/New()
|
|
..()
|
|
var/turf/T = src.loc
|
|
if(level==1) hide(!T.is_plating())
|
|
return
|
|
|
|
/obj/machinery/power/terminal/Destroy()
|
|
if(master)
|
|
master.disconnect_terminal(src)
|
|
master = null
|
|
return ..()
|
|
|
|
/obj/machinery/power/terminal/hide(var/i)
|
|
invisibility = i ? 101 : 0
|
|
icon_state = i ? "term-f" : "term"
|
|
|
|
/obj/machinery/power/terminal/hides_under_flooring()
|
|
return 1
|
|
|
|
/obj/machinery/power/terminal/overload(var/obj/machinery/power/source)
|
|
if(master)
|
|
master.overload(source)
|