Re-fixed an issue with power transmitters.

This commit is contained in:
Marina Gryphon
2017-11-08 09:22:03 -06:00
parent c755edda5b
commit 5af691093e

View File

@@ -37,12 +37,12 @@
amount_to_move = 20000
/obj/item/integrated_circuit/power/transmitter/do_work()
set_pin_data(IC_OUTPUT, 1, null)
set_pin_data(IC_OUTPUT, 2, null)
set_pin_data(IC_OUTPUT, 3, null)
var/atom/movable/AM = get_pin_data_as_type(IC_INPUT, 1, /atom/movable)
if(AM)
if(!assembly)
set_pin_data(IC_OUTPUT, 1, null)
set_pin_data(IC_OUTPUT, 2, null)
set_pin_data(IC_OUTPUT, 3, null)
return FALSE // Pointless to do everything else if there's no battery to draw from.
var/obj/item/weapon/cell/cell = null
@@ -78,6 +78,9 @@
push_data()
activate_pin(2)
return TRUE
set_pin_data(IC_OUTPUT, 1, null)
set_pin_data(IC_OUTPUT, 2, null)
set_pin_data(IC_OUTPUT, 3, null)
return FALSE
/obj/item/integrated_circuit/power/transmitter/large/do_work()