summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-22 11:20:23 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-22 11:20:23 -0300
commit5a5841cc09f881cf9cbe94f8ee99fb2331b6f3ec (patch)
treece19a08bc1e6d8205ec626cd473205a4cde653de
parent3ad72c73ac63aeaaa629450b326063bda6a03d10 (diff)
downloadserverdata-5a5841cc09f881cf9cbe94f8ee99fb2331b6f3ec.tar.gz
serverdata-5a5841cc09f881cf9cbe94f8ee99fb2331b6f3ec.tar.bz2
serverdata-5a5841cc09f881cf9cbe94f8ee99fb2331b6f3ec.tar.xz
serverdata-5a5841cc09f881cf9cbe94f8ee99fb2331b6f3ec.zip
inc_sc_bonus now use the "pretty" ponderate_avg() function
-rw-r--r--npc/items/inc_sc_bonus.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/items/inc_sc_bonus.txt b/npc/items/inc_sc_bonus.txt
index ac1dd8d9b..92a5ae522 100644
--- a/npc/items/inc_sc_bonus.txt
+++ b/npc/items/inc_sc_bonus.txt
@@ -36,7 +36,7 @@ OnUse:
// If there was effect previously, get ponderate average
if (.@v > 0)
- .@v=((.@bonus*@delay)+(.@v*.@t))/(.@t+@delay);
+ .@v=ponderate_avg(.@bonus, @delay, .@v, .@t);
else
.@v=.@bonus;