summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-28 20:59:19 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-28 20:59:19 -0300
commit5ac732d938ae5ded95f6bc05056bd7b341732c0f (patch)
tree69c631bb036b4c8bcaed37fe51dd752110d905ab
parent2e21958ef8aebf4b809b36216c4d8c30c8fad67f (diff)
downloadserverdata-5ac732d938ae5ded95f6bc05056bd7b341732c0f.tar.gz
serverdata-5ac732d938ae5ded95f6bc05056bd7b341732c0f.tar.bz2
serverdata-5ac732d938ae5ded95f6bc05056bd7b341732c0f.tar.xz
serverdata-5ac732d938ae5ded95f6bc05056bd7b341732c0f.zip
After Monster King perishes, Alcohol bonus effects are even stronger.
-rw-r--r--npc/items/alcohol.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt
index 395bfe5d1..d368af3e6 100644
--- a/npc/items/alcohol.txt
+++ b/npc/items/alcohol.txt
@@ -65,10 +65,12 @@ OnUse:
.@bonus=getareausers(.@m$, .@x-14, .@y-14, .@x+14, .@y+14)-1;
.@server = getusers(1);
.@multiplier = limit(24, (32 * .@bonus / .@server), 32); // 2.4% ~ 3.2% bonus
+ if ($GAME_STORYLINE >= 5)
+ .@multiplier *= 2; // 4.8% ~ 6.4% bonus if Monster King is dead
if (getmapinfo(MAPINFO_ZONE) == "MMO")
.@multiplier += 4;
else if (getmapinfo(MAPINFO_ZONE) == "SuperMMO")
- .@multiplier += 8;
+ .@multiplier += 8; // Max is 4.0% per user, or 7.2% if MK is dead
.@bonus=.@bonus*.@multiplier/10;
@taste+=min(@taste, .@bonus);