mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-31 07:57:47 +01:00
Distinguish between plating turf layer and floor turf layer. (#20503)
* move plating layer * atmos correctness pass * transparent floor ordering and wire terminal stuff * fix control flow spacing
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
icon_state = "term"
|
||||
desc = "It's an underfloor wiring terminal for power equipment."
|
||||
level = 1
|
||||
plane = FLOOR_PLANE
|
||||
layer = WIRE_TERMINAL_LAYER //a bit above wires
|
||||
var/obj/machinery/power/master = null
|
||||
|
||||
@@ -16,6 +17,7 @@
|
||||
. = ..()
|
||||
var/turf/T = get_turf(src)
|
||||
if(T.transparent_floor)
|
||||
layer = ABOVE_TRANSPARENT_TURF_LAYER
|
||||
return
|
||||
if(level == 1)
|
||||
hide(T.intact)
|
||||
@@ -26,6 +28,10 @@
|
||||
master = null
|
||||
return ..()
|
||||
|
||||
/obj/machinery/power/terminal/update_icon_state()
|
||||
. = ..()
|
||||
var/turf/T = get_turf(src)
|
||||
layer = T.transparent_floor ? ABOVE_TRANSPARENT_TURF_LAYER : WIRE_TERMINAL_LAYER
|
||||
|
||||
/obj/machinery/power/terminal/hide(i)
|
||||
if(i)
|
||||
|
||||
Reference in New Issue
Block a user