[MIRROR] Remove shocker circuit (#3983)

* Remove shocker circuit (#32758)

* Remove shocker circuit
This commit is contained in:
CitadelStationBot
2017-11-17 02:24:50 -06:00
committed by kevinz000
parent 0fb192d50e
commit 0d8d2c50da
@@ -238,41 +238,6 @@
origin_tech = list(TECH_ENGINEERING = 3, TECH_DATA = 3, TECH_COMBAT = 10)
spawn_flags = null // Used for world initializing, see the #defines above.
*/
/obj/item/integrated_circuit/manipulation/shocker
name = "shocker circuit"
desc = "Used to shock adjacent creatures with electricity."
icon_state = "shocker"
extended_desc = "The circuit accepts a reference to creature,who needs to be shocked. It can shock target on adjacent tiles. \
Severity determines hardness of shock and it's power consumption. It's given between 0 and 60."
w_class = WEIGHT_CLASS_TINY
complexity = 10
inputs = list("target" = IC_PINTYPE_REF,"severity" = IC_PINTYPE_NUMBER)
outputs = list()
activators = list("shock" = IC_PINTYPE_PULSE_IN)
spawn_flags = IC_SPAWN_RESEARCH
power_draw_per_use = 0
/obj/item/integrated_circuit/manipulation/shocker/on_data_written()
var/s = get_pin_data(IC_INPUT, 2)
power_draw_per_use = Clamp(s,0,60)*1200/60
/obj/item/integrated_circuit/manipulation/shocker/do_work()
..()
var/turf/T = get_turf(src)
var/atom/movable/AM = get_pin_data_as_type(IC_INPUT, 1, /mob/living)
if(!istype(AM,/mob/living)) //Invalid input
return
var/mob/living/M = AM
if(!M.Adjacent(T))
return //Can't reach
to_chat(M, "<span class='danger'>You feel a sharp shock!</span>")
var/datum/effect_system/spark_spread/s = new /datum/effect_system/spark_spread
s.set_up(12, 1, src)
s.start()
var/stf=Clamp(get_pin_data(IC_INPUT, 2),0,60)
M.Knockdown(stf)
M.apply_effect(STUTTER, stf)
/obj/item/integrated_circuit/manipulation/plant_module
name = "plant manipulation module"
desc = "Used to uproot weeds or harvest plants in trays."
@@ -440,4 +405,4 @@
var/_y = Clamp(T.y + target_y.data, 0, world.maxy)
A.forceMove(drop_location())
A.throw_at(locate(_x, _y, T.z), round(Clamp(sqrt(target_x.data*target_x.data+target_y.data*target_y.data),0,8),1), 3)
A.throw_at(locate(_x, _y, T.z), round(Clamp(sqrt(target_x.data*target_x.data+target_y.data*target_y.data),0,8),1), 3)