summaryrefslogtreecommitdiff
path: root/npc/items/alcohol.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/alcohol.txt')
-rw-r--r--npc/items/alcohol.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt
index 6188f8102..25f93c744 100644
--- a/npc/items/alcohol.txt
+++ b/npc/items/alcohol.txt
@@ -17,6 +17,12 @@
// Max HP Reductor: SC_INCMHPRATE
// EXP Increaser: SC_CASH_PLUSEXP (not reset upon death), SC_OVERLAPEXPUP (reset upon death)
+function script ALCReset {
+ if (ALC_DELAYTIME < gettimetick(2))
+ ALC_THRESHOLD=0;
+ return;
+}
+
- script alcohol_sc -1,{
// Stack remaning bonuses if the last one hasn't finished
@@ -40,6 +46,9 @@ OnUse:
Exception("Invalid alcoholic item, deleting without any effect.");
end;
}
+ // Just to be sure
+ ALCReset();
+
// Do you have enough vitality to hold your beer?
// Skip this check on the first drink
if (ALC_THRESHOLD) {
@@ -104,9 +113,3 @@ OnUse:
close;
}
-function script ALCReset {
- if (ALC_DELAYTIME < gettimetick(2))
- ALC_THRESHOLD=0;
- return;
-}
-