Fixes t-ray scanners and map editing (#20725)

* t-ray scanner fix

* fix map editing

* autodoc stuff

* don't hide vents and things

* misc layer fixes
This commit is contained in:
unknownuser782
2023-04-08 08:14:34 +02:00
committed by GitHub
parent 9d4ea47ba7
commit 960d9e3ce0
10 changed files with 25 additions and 10 deletions
@@ -23,6 +23,8 @@ Pipelines + Other Objects -> Pipe network
/// Can this be unwrenched?
var/can_unwrench = FALSE
/// Can this be put under a tile?
var/can_be_undertile = FALSE
/// If the machine is currently operating or not.
var/on = FALSE
/// The amount of pressure the machine wants to operate at.
@@ -189,7 +191,7 @@ Pipelines + Other Objects -> Pipe network
/obj/machinery/atmospherics/attackby(obj/item/W, mob/user)
var/turf/T = get_turf(src)
if(can_unwrench && istype(W, /obj/item/wrench))
if(T.transparent_floor && istype(src, /obj/machinery/atmospherics/pipe) && layer != GAS_PIPE_VISIBLE_LAYER) //pipes on GAS_PIPE_VISIBLE_LAYER are above the transparent floor and should be interactable
if(level == 1 && T.transparent_floor && istype(src, /obj/machinery/atmospherics/pipe))
to_chat(user, "<span class='danger'>You can't interact with something that's under the floor!</span>")
return
if(level == 1 && isturf(T) && T.intact)
@@ -278,11 +280,10 @@ Pipelines + Other Objects -> Pipe network
initialize_directions = P
var/turf/T = loc
if(!T.transparent_floor)
level = T.intact ? 2 : 1
level = (T.intact || !can_be_undertile) ? 2 : 1
else
level = 2
plane = GAME_PLANE
layer = GAS_PIPE_VISIBLE_LAYER
update_icon_state()
add_fingerprint(usr)
if(!SSair.initialized) //If there's no atmos subsystem, we can't really initialize pipenets
SSair.machinery_to_construct.Add(src)
@@ -8,6 +8,8 @@
damage_deflection = 12
var/alert_pressure = 80*ONE_ATMOSPHERE //minimum pressure before check_pressure(...) should be called
can_be_undertile = TRUE
//Buckling
can_buckle = TRUE
buckle_requires_restraints = TRUE