Fix tesla coils (#3208)

Fixes tesla coils not properly connecting to the powernet on anchor.
This commit is contained in:
Lohikar
2017-08-02 11:55:12 -05:00
committed by Erki
parent 3167294ab1
commit 69c4658d70
2 changed files with 5 additions and 1 deletions

View File

@@ -31,11 +31,11 @@
if(istype(W, /obj/item/weapon/wrench))
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
user << "<span class='notice'>You [anchored ? "unfasten" : "fasten"] [src] to the flooring.</span>"
anchored = !anchored
if(!anchored)
disconnect_from_network()
else
connect_to_network()
anchored = !anchored
return
default_deconstruction_crowbar(user, W)