summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-10 13:32:27 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-10 13:32:27 -0300
commitc578c7e7c6bce59b9b0f5703dcfc4925dfdb2d47 (patch)
tree9e8805e2eb760f5c36978af44417262e357263d7 /npc/items
parent10be099b9bc4eff2597bf17a11d4d91aa43e6f9d (diff)
downloadserverdata-c578c7e7c6bce59b9b0f5703dcfc4925dfdb2d47.tar.gz
serverdata-c578c7e7c6bce59b9b0f5703dcfc4925dfdb2d47.tar.bz2
serverdata-c578c7e7c6bce59b9b0f5703dcfc4925dfdb2d47.tar.xz
serverdata-c578c7e7c6bce59b9b0f5703dcfc4925dfdb2d47.zip
Do not count yourself twice
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/alcohol.txt4
1 files changed, 2 insertions, 2 deletions
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.