summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-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;
}