From c578c7e7c6bce59b9b0f5703dcfc4925dfdb2d47 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 10 Apr 2019 13:32:27 -0300 Subject: Do not count yourself twice --- npc/items/alcohol.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt index 8920a45fb..e50b3c00d 100644 --- a/npc/items/alcohol.txt +++ b/npc/items/alcohol.txt @@ -45,12 +45,12 @@ OnUse: sc_start SC_CONFUSION, 5000, 0, 10000, SCFLAG_NOAVOID; // Warning, forces user to use @resync! end; } - debugmes "%d %d | %d %d | f t ", remaining_bonus(SC_CASH_PLUSEXP, false), remaining_bonus(SC_CASH_PLUSEXP, true), remaining_bonus(SC_ATTHASTE_INFINITY, false), remaining_bonus(SC_ATTHASTE_INFINITY, true); + //debugmes "%d %d | %d %d | f t ", remaining_bonus(SC_CASH_PLUSEXP, false), remaining_bonus(SC_CASH_PLUSEXP, true), remaining_bonus(SC_ATTHASTE_INFINITY, false), remaining_bonus(SC_ATTHASTE_INFINITY, true); // 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); + .@bonus=getareausers(.@m$, .@x-10, .@y-10, .@x+10, .@y+10)-1; @taste+=min(@taste, .@bonus); // Put the delay in ms. Each Alcohol point is 10 minutes. -- cgit v1.2.3-60-g2f50