diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-10-28 20:59:19 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-10-28 20:59:19 -0300 |
commit | 5ac732d938ae5ded95f6bc05056bd7b341732c0f (patch) | |
tree | 69c631bb036b4c8bcaed37fe51dd752110d905ab | |
parent | 2e21958ef8aebf4b809b36216c4d8c30c8fad67f (diff) | |
download | serverdata-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.txt | 4 |
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); |