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:
vuonojenmustaturska
2018-07-06 21:27:35 +03:00
committed by letterjay
parent 981743a170
commit 417496aa6e
27 changed files with 62 additions and 51 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
var/uraction = anchored ? "unscrew [src] from " : "screw [src] to"
user.visible_message("<span class='warning'>[user] [action] the floor.</span>", "<span class='notice'>You start to [uraction] the floor...</span>", "You hear rustling noises.")
if(W.use_tool(src, user, 100, volume=100, extra_checks = CALLBACK(src, .proc/check_anchored_state, anchored)))
anchored = !anchored
setAnchored(!anchored)
to_chat(user, "<span class='notice'> You [anchored ? "unscrew" : "screw"] [src] from the floor.</span>")
return TRUE
else