diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-04-22 11:20:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-04-22 11:20:23 -0300 |
commit | 5a5841cc09f881cf9cbe94f8ee99fb2331b6f3ec (patch) | |
tree | ce19a08bc1e6d8205ec626cd473205a4cde653de | |
parent | 3ad72c73ac63aeaaa629450b326063bda6a03d10 (diff) | |
download | serverdata-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.txt | 2 |
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; |