Ventcrawling fixes

This commit is contained in:
AnturK
2015-12-20 11:15:13 +01:00
parent 6676ae938b
commit 46a11b0542
6 changed files with 29 additions and 12 deletions
@@ -150,4 +150,9 @@ Helpers
/obj/machinery/atmospherics/components/proc/update_parents()
for(DEVICE_TYPE_LOOP)
var/datum/pipeline/parent = PARENT_I
parent.update = 1
parent.update = 1
/obj/machinery/atmospherics/components/returnPipenets()
. = list()
for(DEVICE_TYPE_LOOP)
. += returnPipenet(NODE_I)
@@ -272,11 +272,11 @@
if(!welded)
user.visible_message("[user] welds the vent shut.", "<span class='notice'>You weld the vent shut.</span>", "<span class='italics'>You hear welding.</span>")
welded = 1
update_icon()
else
user.visible_message("[user] unwelds the vent.", "<span class='notice'>You unweld the vent.</span>", "<span class='italics'>You hear welding.</span>")
welded = 0
update_icon()
update_icon()
pipe_vision_img = image(src, loc, layer = 20, dir = dir)
return 1
else
return ..()
@@ -304,11 +304,11 @@
if(!welded)
user.visible_message("[user] welds the scrubber shut.","You weld the scrubber shut.", "You hear welding.")
welded = 1
update_icon()
else
user.visible_message("[user] unwelds the scrubber.", "You unweld the scrubber.", "You hear welding.")
welded = 0
update_icon()
update_icon()
pipe_vision_img = image(src, loc, layer = 20, dir = dir)
return 1
if (!istype(W, /obj/item/weapon/wrench))
return ..()