Fix constructed directional windows leaking atmos, wrap setting of the anchored var on objects (#38934)
* Wrap setting anchored for structures, fix atmos bug * forgot this * Add a signal for setanchored * move setanchored to obj * machinery, also some structure stuff * tabbing
This commit is contained in:
committed by
letterjay
parent
981743a170
commit
417496aa6e
@@ -106,7 +106,7 @@
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You secure the airlock assembly.</span>")
|
||||
name = "secured airlock assembly"
|
||||
anchored = TRUE
|
||||
setAnchored(TRUE)
|
||||
else
|
||||
to_chat(user, "There is another door here!")
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You unsecure the airlock assembly.</span>")
|
||||
name = "airlock assembly"
|
||||
anchored = FALSE
|
||||
setAnchored(FALSE)
|
||||
|
||||
else if(istype(W, /obj/item/stack/cable_coil) && state == AIRLOCK_ASSEMBLY_NEEDS_WIRES && anchored )
|
||||
if(!W.tool_start_check(user, amount=1))
|
||||
@@ -281,7 +281,7 @@
|
||||
target.heat_proof_finished = source.heat_proof_finished
|
||||
target.created_name = source.created_name
|
||||
target.state = source.state
|
||||
target.anchored = source.anchored
|
||||
target.setAnchored(source.anchored)
|
||||
if(previous)
|
||||
target.previous_assembly = source.type
|
||||
if(electronics)
|
||||
|
||||
Reference in New Issue
Block a user