Makes machines constructable either anchored or unanchored (#35968)

* - Makes machines constructable either anchored or unanchored if the board allows it

* - Tesla Coils connect to the network if anchored
This commit is contained in:
BordListian
2018-03-02 01:45:00 +01:00
committed by CitadelStationBot
parent 3690cf3309
commit 07270c198f
4 changed files with 32 additions and 2 deletions
+4
View File
@@ -36,6 +36,10 @@
zap_cooldown -= (C.rating * 20)
input_power_multiplier = power_multiplier
/obj/machinery/power/tesla_coil/on_construction()
if(anchored)
connect_to_network()
/obj/machinery/power/tesla_coil/default_unfasten_wrench(mob/user, obj/item/I, time = 20)
. = ..()
if(. == SUCCESSFUL_UNFASTEN)