From 5c8eb4657d66cbc5cc1db545c9da87e282ddfc45 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Jun 2020 03:17:53 -0300 Subject: DEX/VIT will not fully nullify alcohol penalties. Never. --- npc/items/alcohol.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc/items') diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt index 2da81af91..e8a7aa7a9 100644 --- a/npc/items/alcohol.txt +++ b/npc/items/alcohol.txt @@ -112,10 +112,10 @@ OnUse: // Sanitization, and nerf the debuff .@min=(.@min/2)+1; .@max=(.@max/2)+2; - // DEX and VIT may affect a tiny bit + // DEX and VIT may affect a tiny bit (there's caps) .@pam=readparam2(bVit)+readparam2(bDex); - .@min=min(0, .@min*limit(0, 500-.@pam, 500)/500); - .@max=min(0, .@min*limit(1, 500-.@pam, 500)/500); + .@min=min(0, .@min*limit(50, 500-.@pam, 500)/500); + .@max=min(0, .@min*limit(100, 500-.@pam, 500)/500); SC_Bonus(.@delay, SC_ATTHASTE_INFINITY, .@min, .@max); if (debug || $@GM_OVERRIDE) debugmes "Alcohol penalty: %d ~ %d for %d ms", .@min, .@max, .@delay; -- cgit v1.2.3-60-g2f50