From 03d5789fb4198afb8bd855d3cbb5a8ca37d11ae1 Mon Sep 17 00:00:00 2001
From: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Date: Tue, 18 Feb 2025 21:10:04 +1000
Subject: [PATCH] Improves the abductor vest combat mode stim injector feedback
(#28294)
* improves the abductor vest combat mode feedback
* Update abduction_gear.dm
---
.../miniantags/abduction/abduction_gear.dm | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm
index fdaee7c737e..0f1c9a6569e 100644
--- a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm
+++ b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm
@@ -72,11 +72,12 @@ CONTENTS:
allowed = list(/obj/item/abductor, /obj/item/abductor_baton, /obj/item/melee/baton, /obj/item/gun/energy, /obj/item/restraints/handcuffs)
var/mode = ABDUCTOR_VEST_STEALTH
var/stealth_active = 0
- var/combat_cooldown = 10
+ var/combat_cooldown = 10 SECONDS
var/datum/icon_snapshot/disguise
var/stealth_armor = list(MELEE = 10, BULLET = 10, LASER = 10, ENERGY = 10, BOMB = 10, RAD = 10, FIRE = 115, ACID = 115)
var/combat_armor = list(MELEE = 50, BULLET = 50, LASER = 50, ENERGY = 50, BOMB = 50, RAD = 50, FIRE = 450, ACID = 450)
sprite_sheets = null
+ COOLDOWN_DECLARE(abductor_adrenaline)
/obj/item/clothing/suit/armor/abductor/vest/Initialize(mapload)
. = ..()
@@ -156,26 +157,20 @@ CONTENTS:
/obj/item/clothing/suit/armor/abductor/vest/proc/Adrenaline()
if(ishuman(loc))
- if(combat_cooldown != initial(combat_cooldown))
- to_chat(loc, "Combat injection is still recharging.")
+ if(!COOLDOWN_FINISHED(src, abductor_adrenaline))
+ to_chat(loc, "Combat injection is still recharging. Please wait [round(COOLDOWN_TIMELEFT(src, abductor_adrenaline), 1 SECONDS) / 10] seconds.")
return
var/mob/living/carbon/human/M = loc
+ to_chat(loc, "You feel a series of pricks down your back, followed by a surge of energy!")
M.adjustStaminaLoss(-75)
M.SetParalysis(0)
M.SetStunned(0)
M.SetWeakened(0)
M.SetKnockDown(0)
M.stand_up(TRUE)
- combat_cooldown = 0
- START_PROCESSING(SSobj, src)
-
-/obj/item/clothing/suit/armor/abductor/vest/process()
- combat_cooldown++
- if(combat_cooldown==initial(combat_cooldown))
- STOP_PROCESSING(SSobj, src)
+ COOLDOWN_START(src, abductor_adrenaline, combat_cooldown)
/obj/item/clothing/suit/armor/abductor/Destroy()
- STOP_PROCESSING(SSobj, src)
for(var/obj/machinery/abductor/console/C in GLOB.machines)
if(C.vest == src)
C.vest = null