summaryrefslogtreecommitdiff
path: root/npc/items/alcohol.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-22 03:17:53 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-22 03:17:53 -0300
commit5c8eb4657d66cbc5cc1db545c9da87e282ddfc45 (patch)
tree25691d22e331593c353c2800cd42c4962afcf6af /npc/items/alcohol.txt
parentf73e0ec2215f64c7c56cd08751359b39024c1387 (diff)
downloadserverdata-5c8eb4657d66cbc5cc1db545c9da87e282ddfc45.tar.gz
serverdata-5c8eb4657d66cbc5cc1db545c9da87e282ddfc45.tar.bz2
serverdata-5c8eb4657d66cbc5cc1db545c9da87e282ddfc45.tar.xz
serverdata-5c8eb4657d66cbc5cc1db545c9da87e282ddfc45.zip
DEX/VIT will not fully nullify alcohol penalties. Never.
Diffstat (limited to 'npc/items/alcohol.txt')
-rw-r--r--npc/items/alcohol.txt6
1 files changed, 3 insertions, 3 deletions
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;