From 4d60fc6f0a2dbbc1b0c2e44b0f47c63359da7609 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 10 Apr 2019 09:38:18 -0300 Subject: Users close to you raises taste in 1% each, capped at beverage maximum taste. Remember: Taste === Exp Bonus! --- npc/items/alcohol.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/items') 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); -- cgit v1.2.3-70-g09d2