Fixes emitter unsecuring

This commit is contained in:
Joan Lung
2016-12-30 16:06:25 -05:00
parent 8765bcade3
commit a2ef2745fe
+2 -2
View File
@@ -204,13 +204,13 @@
A.starting = loc
A.fire()
/obj/machinery/field/generator/can_be_unfasten_wrench(mob/user)
/obj/machinery/power/emitter/can_be_unfasten_wrench(mob/user)
if(state == EM_WELDED)
user << "<span class='warning'>[src] is welded to the floor!</span>"
return FAILED_UNFASTEN
return ..()
/obj/machinery/field/generator/default_unfasten_wrench(mob/user, obj/item/weapon/wrench/W, time = 20)
/obj/machinery/power/emitter/default_unfasten_wrench(mob/user, obj/item/weapon/wrench/W, time = 20)
. = ..()
if(. == SUCCESSFUL_UNFASTEN)
if(anchored)