From 538f91c20296c90a3927df816047dc4593b77a7d Mon Sep 17 00:00:00 2001 From: Anewbe Date: Wed, 22 Mar 2017 17:06:16 -0500 Subject: [PATCH] Borg stun arm should work now. --- code/game/objects/items/robot/robot_items.dm | 32 ++++++------------- .../mob/living/silicon/robot/robot_modules.dm | 2 +- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/code/game/objects/items/robot/robot_items.dm b/code/game/objects/items/robot/robot_items.dm index 28f3a1def6a..16e9daf9cc3 100644 --- a/code/game/objects/items/robot/robot_items.dm +++ b/code/game/objects/items/robot/robot_items.dm @@ -4,34 +4,20 @@ Cyborg Spec Items ***********************************************************************/ //Might want to move this into several files later but for now it works here -// Consider changing this to a child of the stun baton class. ~Z -/obj/item/borg/stun + +/obj/item/weapon/melee/baton/robot/arm name = "electrified arm" icon = 'icons/obj/decals.dmi' icon_state = "shock" -/obj/item/borg/stun/apply_hit_effect(mob/living/M, mob/living/silicon/robot/user, var/hit_zone) - // How the Hell. - if(!istype(user)) - var/mob/living/temp = user - if(istype(temp)) - temp.drop_from_inventory(src) - qdel(src) - return + hitcost = 750 + agonyforce = 70 - user.visible_message("\The [user] has prodded \the [M] with \a [src]!") - - if(!user.cell || !user.cell.checked_use(1250)) //Slightly more than a baton. - return - - playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1) - - M.apply_effect(5, STUTTER) - M.stun_effect_act(0, 70, check_zone(hit_zone), src) - - if(ishuman(M)) - var/mob/living/carbon/human/H = M - H.forcesay(hit_appends) +/obj/item/weapon/melee/baton/robot/arm/update_icon() + if(status) + set_light(1.5, 1, lightcolor) + else + set_light(0) /obj/item/borg/overdrive name = "overdrive" diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm index 20ec5a5c069..0a50fc78cce 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules.dm @@ -360,7 +360,7 @@ var/global/list/robot_modules = list( src.modules += new /obj/item/device/lightreplacer(src) src.modules += new /obj/item/device/pipe_painter(src) src.modules += new /obj/item/device/floor_painter(src) - src.emag = new /obj/item/borg/stun(src) + src.emag = new /obj/item/weapon/melee/baton/robot/arm(src) var/datum/matter_synth/metal = new /datum/matter_synth/metal(40000) var/datum/matter_synth/glass = new /datum/matter_synth/glass(40000)