Fixes Tesla Coil Circuits and contruction

This commit is contained in:
Poojawa
2018-03-03 22:28:55 -06:00
parent 8f360e76f1
commit b98fb70da8
2 changed files with 5 additions and 11 deletions
@@ -537,18 +537,14 @@
req_components = list(/obj/item/stock_parts/capacitor = 1)
needs_anchored = FALSE
#define PATH_POWERCOIL /obj/item/circuitboard/machine/tesla_coil/power
#define PATH_RPCOIL /obj/item/circuitboard/machine/tesla_coil/research
#define PATH_POWERCOIL /obj/machinery/power/tesla_coil/power
#define PATH_RPCOIL /obj/machinery/power/tesla_coil/research
/obj/item/circuitboard/machine/tesla_coil/Initialize()
. = ..()
if(!build_path)
if(prob(50))
name = "Tesla Coil (Machine Board)"
build_path = PATH_POWERCOIL
else
name = "Tesla Corona Researcher (Machine Board)"
build_path = PATH_RPCOIL
if(build_path)
name = "Tesla Coil (Machine Board)"
build_path = PATH_POWERCOIL
/obj/item/circuitboard/machine/tesla_coil/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/screwdriver))
-2
View File
@@ -114,8 +114,6 @@
/obj/machinery/power/tesla_coil/research/tesla_act(var/power)
if(anchored && !panel_open)
obj_flags |= BEING_SHOCKED
//don't lose arc power when it's not connected to anything
//please place tesla coils all around the station to maximize effectiveness
var/power_produced = powernet ? power / power_loss : power
add_avail(power_produced*input_power_multiplier)
flick("rpcoilhit", src)