summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-09 14:11:36 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-09 14:11:36 -0300
commitbc7dfe9175842ddcdba8d7372341ba625ffa4036 (patch)
tree4cc50bd95e6b2aa61769e723b9734c5341a63e16
parent1180ad7f3a428409853637ca9240c60bf42b1e98 (diff)
downloadserverdata-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.
-rw-r--r--npc/items/alcohol.txt4
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);