From 288f97dd1389af7a23ceeb110115289d27825143 Mon Sep 17 00:00:00 2001 From: Ghommie Date: Sun, 26 May 2019 06:38:04 +0200 Subject: [PATCH] further tweaking. --- code/game/objects/items/stunbaton.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/stunbaton.dm b/code/game/objects/items/stunbaton.dm index 3386b54145..9260b1bc6f 100644 --- a/code/game/objects/items/stunbaton.dm +++ b/code/game/objects/items/stunbaton.dm @@ -1,3 +1,5 @@ +#define STUNBATON_CHARGE_LENIENCY 0.3 + /obj/item/melee/baton name = "stunbaton" desc = "A stun baton for incapacitating people with." @@ -112,9 +114,9 @@ return ..() /obj/item/melee/baton/attack_self(mob/user) - if(cell && cell.charge > hitcost) + if(cell && cell.charge > hitcost * STUNBATON_CHARGE_LENIENCY) if(emped_timer > world.time) - to_chat(user, "[src] briefly flickers as you try to turn it on, looks like it's momentarily out of service.") + to_chat(user, "[src] briefly flickers as you fail to turn it on, looks like it's momentarily out of service.") else switch_status(!status) to_chat(user, "[src] is now [status ? "on" : "off"].") @@ -178,7 +180,7 @@ var/stuncharge = cell.charge if(!deductcharge(hitcost, FALSE)) stunpwr *= round(stuncharge/hitcost) - if(stunpwr < stunforce * 0.2) + if(stunpwr < stunforce * STUNBATON_CHARGE_LENIENCY) return FALSE L.Knockdown(stunpwr)