From 42ddf3e8c9186577298ba9500bc4bbf385da2e12 Mon Sep 17 00:00:00 2001 From: FreeStylaLT Date: Sat, 4 Jun 2016 19:48:00 +0300 Subject: [PATCH] Adds Mind Batterer, an AOE Crowd Control Traitor-only device. --- code/datums/uplink_item.dm | 9 +++++- .../objects/items/devices/traitordevices.dm | 30 +++++++------------ 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/code/datums/uplink_item.dm b/code/datums/uplink_item.dm index 08c418778a3..3968412952b 100644 --- a/code/datums/uplink_item.dm +++ b/code/datums/uplink_item.dm @@ -410,6 +410,13 @@ var/list/uplink_items = list() item = /obj/item/weapon/twohanded/chainsaw cost = 13 +/datum/uplink_item/dangerous/batterer + name = "Mind Batterer" + desc = "A device that has a chance of knocking down people around you for a long amount of time.50% chance per person. The user is unaffected. Has only two charges." + reference = "BTR" + item = /obj/item/device/batterer + cost = 7 + /datum/uplink_item/dangerous/manhacks name = "Viscerator Delivery Grenade" desc = "A unique grenade that deploys a swarm of viscerators upon activation, which will chase down and shred any non-operatives in the area." @@ -1016,7 +1023,7 @@ var/list/uplink_items = list() /datum/uplink_item/implants/uplink name = "Uplink Implant" - desc = "An implant injected into the body, and later activated using a bodily gesture to open an uplink with 5 telecrystals. The ability for an agent to open an uplink after their possessions have been stripped from them makes this implant excellent for escaping confinement." + desc = "An implant injected into the body, and later activated using a bodily gesture to open an uplink with 10 telecrystals. The ability for an agent to open an uplink after their possessions have been stripped from them makes this implant excellent for escaping confinement." reference = "UI" item = /obj/item/weapon/implanter/uplink cost = 14 diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 2a1bc41970b..949129fc2e6 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -30,32 +30,24 @@ effective or pretty fucking useless. var/max_uses = 2 -/obj/item/device/batterer/attack_self(mob/living/carbon/user as mob, flag = 0, emp = 0) +/obj/item/device/batterer/attack_self(mob/living/carbon/user, flag = 0, emp = 0) if(!user) return if(times_used >= max_uses) - to_chat(user, "\red The mind batterer has been burnt out!") + to_chat(user, "Used [src] to knock down people in the area.") for(var/mob/living/carbon/human/M in orange(10, user)) - spawn() - if(prob(50)) + if(prob(50)) + M.Weaken(rand(3,6)) + add_logs(M, user, "stunned", src) + to_chat(M, "You feel a tremendous, paralyzing wave flood your mind.") + else + to_chat(M, "You feel a sudden, electric jolt travel through your head.") - M.Weaken(rand(10,20)) - if(prob(25)) - M.Stun(rand(5,10)) - to_chat(M, "\red You feel a tremendous, paralyzing wave flood your mind.") - if(!iscarbon(user)) - M.LAssailant = null - else - M.LAssailant = user - else - to_chat(M, "\red You feel a sudden, electric jolt travel through your head.") - - playsound(src.loc, 'sound/misc/interference.ogg', 50, 1) - to_chat(user, "\blue You trigger [src].") - times_used += 1 + playsound(loc, 'sound/misc/interference.ogg', 50, 1) + to_chat(user, "You trigger [src].") + times_used++ if(times_used >= max_uses) icon_state = "battererburnt"