From 0d8d2c50dad125ec6da9a47170b9a52a858cacdf Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 17 Nov 2017 02:24:50 -0600 Subject: [PATCH] [MIRROR] Remove shocker circuit (#3983) * Remove shocker circuit (#32758) * Remove shocker circuit --- .../subtypes/manipulation.dm | 37 +------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/code/modules/integrated_electronics/subtypes/manipulation.dm b/code/modules/integrated_electronics/subtypes/manipulation.dm index f8eda5982c..bd8f0d1c73 100644 --- a/code/modules/integrated_electronics/subtypes/manipulation.dm +++ b/code/modules/integrated_electronics/subtypes/manipulation.dm @@ -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, "You feel a sharp shock!") - 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) \ No newline at end of file + 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)