summaryrefslogtreecommitdiff
path: root/npc/items/alcohol.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/alcohol.txt')
-rw-r--r--npc/items/alcohol.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt
index 6ecad5571..cd52e5c51 100644
--- a/npc/items/alcohol.txt
+++ b/npc/items/alcohol.txt
@@ -45,6 +45,12 @@ OnUse:
sc_start SC_CONFUSION, 5000, 0, 10000, SCFLAG_NOAVOID; // Warning, forces user to use @resync!
end;
}
+ // Taste is affected by users near you.
+ // Each user raises exp bonus in 1%, capped to the beverage taste
+ // If you are with many people, drink a better beverage! ;-)
+ getmapxy(.@m$, .@x, .@y, 0);
+ .@bonus=getareausers(.@m$, .@x-10, .@y-10, .@x+10, .@y+10);
+ @taste+=min(@taste, .@bonus);
// Put the delay in ms. Each ALCOOL point is 10 minutes.
.@delay = remaining_bonus(SC_OVERLAPEXPUP, false);