mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 01:52:15 +00:00
Fix tesla coils (#3208)
Fixes tesla coils not properly connecting to the powernet on anchor.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user