diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-10-09 14:11:36 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-10-09 14:11:36 -0300 |
commit | bc7dfe9175842ddcdba8d7372341ba625ffa4036 (patch) | |
tree | 4cc50bd95e6b2aa61769e723b9734c5341a63e16 /npc | |
parent | 1180ad7f3a428409853637ca9240c60bf42b1e98 (diff) | |
download | serverdata-bc7dfe9175842ddcdba8d7372341ba625ffa4036.tar.gz serverdata-bc7dfe9175842ddcdba8d7372341ba625ffa4036.tar.bz2 serverdata-bc7dfe9175842ddcdba8d7372341ba625ffa4036.tar.xz serverdata-bc7dfe9175842ddcdba8d7372341ba625ffa4036.zip |
Bonus can go up to 3.6%/player or even 4.0%/player if used in designed areas.
It is a 0.4% bonus per player on MMO maps and 0.8% on SuperMMO maps.
SuperMMO maps are most of those belonging to Fortress Island.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/alcohol.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt index 74274066a..395bfe5d1 100644 --- a/npc/items/alcohol.txt +++ b/npc/items/alcohol.txt @@ -65,6 +65,10 @@ 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 (getmapinfo(MAPINFO_ZONE) == "MMO") + .@multiplier += 4; + else if (getmapinfo(MAPINFO_ZONE) == "SuperMMO") + .@multiplier += 8; .@bonus=.@bonus*.@multiplier/10; @taste+=min(@taste, .@bonus); |