From 68c0bea660bdb8200b1fecbbbc0495dfb254edd8 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Wed, 18 Jan 2017 18:38:01 -0500 Subject: [PATCH] customize --- code/modules/clothing/gloves/miscellaneous.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/modules/clothing/gloves/miscellaneous.dm b/code/modules/clothing/gloves/miscellaneous.dm index 2febdc31592..a5b3a4cf121 100644 --- a/code/modules/clothing/gloves/miscellaneous.dm +++ b/code/modules/clothing/gloves/miscellaneous.dm @@ -62,6 +62,8 @@ name = "stun gloves" desc = "Horrendous and awful. It smells like cancer. The fact it has wires attached to it is incidental." var/obj/item/weapon/stock_parts/cell/cell = null + var/stun_strength = 5 + var/stun_cost = 3750 /obj/item/clothing/gloves/color/yellow/stun/New() ..() @@ -84,16 +86,16 @@ var/mob/living/carbon/human/H = loc if(H.a_intent == I_HARM) var/mob/living/carbon/C = A - if(cell.use(3750)) + if(cell.use(stun_cost)) var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(5, 0, loc) s.start() playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1) H.do_attack_animation(C) visible_message("[C] has been touched with [src] by [H]!") - C.Stun(5) - C.Weaken(5) - C.apply_effect(STUTTER, 5) + C.Stun(stun_strength) + C.Weaken(stun_strength) + C.apply_effect(STUTTER, stun_strength) else to_chat(H, "Not enough charge!") return TRUE