summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-03-13 18:37:29 +0100
committerFedja Beader <fedja@protonmail.ch>2023-05-03 18:27:51 +0200
commitf34a3f7957e991bff63357ca51a6b221bf896244 (patch)
tree324b506e20fea040082871453eca471135a4a6b2
parent8e706a729fcdd26878dbb367e1ec4fb91b56f7d8 (diff)
downloadserverdata-alcohol_fix.tar.gz
serverdata-alcohol_fix.tar.bz2
serverdata-alcohol_fix.tar.xz
serverdata-alcohol_fix.zip
Fix alcohol bonus overlap.alcohol_fix
@t was in seconds, the other operand in miliseconds. Consequently, the new duration was not sum of both, but a sum of previous/1000 and new.
-rw-r--r--npc/items/alcohol.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt
index 374a4be31..f269a5fc5 100644
--- a/npc/items/alcohol.txt
+++ b/npc/items/alcohol.txt
@@ -87,8 +87,7 @@ OnUse:
else .@val1 = @taste;
// Put the delay in ms.
- .@delay = remaining_bonus(SC_OVERLAPEXPUP, false);
- .@delay = .@t + @Alcohol*.@deltatime;
+ .@delay = remaining_bonus(SC_OVERLAPEXPUP, false) + @Alcohol * .@deltatime;
// Reset EXP Bonus based on the new cumulative delay and average exp bonus
sc_end SC_OVERLAPEXPUP;