summaryrefslogtreecommitdiff
path: root/npc/items/alcohol.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-22 03:16:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-22 03:16:27 -0300
commitf73e0ec2215f64c7c56cd08751359b39024c1387 (patch)
treecb79b32208c722c420a34b796e769e56ddca45d5 /npc/items/alcohol.txt
parente52bb02998f61999c80493104a7f3fbde78e6d99 (diff)
downloadserverdata-f73e0ec2215f64c7c56cd08751359b39024c1387.tar.gz
serverdata-f73e0ec2215f64c7c56cd08751359b39024c1387.tar.bz2
serverdata-f73e0ec2215f64c7c56cd08751359b39024c1387.tar.xz
serverdata-f73e0ec2215f64c7c56cd08751359b39024c1387.zip
[TESTING REQUIRED]
Dextry and Vitality will lower the alcohol penalties (0.2% per point) Needs moar testing.
Diffstat (limited to 'npc/items/alcohol.txt')
-rw-r--r--npc/items/alcohol.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt
index b171eedc9..2da81af91 100644
--- a/npc/items/alcohol.txt
+++ b/npc/items/alcohol.txt
@@ -112,7 +112,13 @@ OnUse:
// Sanitization, and nerf the debuff
.@min=(.@min/2)+1;
.@max=(.@max/2)+2;
+ // DEX and VIT may affect a tiny bit
+ .@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);
SC_Bonus(.@delay, SC_ATTHASTE_INFINITY, .@min, .@max);
+ if (debug || $@GM_OVERRIDE)
+ debugmes "Alcohol penalty: %d ~ %d for %d ms", .@min, .@max, .@delay;
close;
}