diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-05 14:26:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-05 14:26:55 -0300 |
commit | a77f645acb477f259b33913e11693ec98f362ebe (patch) | |
tree | 4bd096fb01c859925e9469d9c4c47f4db17f91cb /npc/craft/options.txt | |
parent | c1b43b273c31cdf15d26f28b759721d14004493d (diff) | |
download | serverdata-a77f645acb477f259b33913e11693ec98f362ebe.tar.gz serverdata-a77f645acb477f259b33913e11693ec98f362ebe.tar.bz2 serverdata-a77f645acb477f259b33913e11693ec98f362ebe.tar.xz serverdata-a77f645acb477f259b33913e11693ec98f362ebe.zip |
Rewrite the bonus formula. It is more predictable now.
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r-- | npc/craft/options.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 284d57ead..98cf5699d 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -374,11 +374,13 @@ function script csys_BonusCalc { .@skill=getarg(1); .@var=getarg(2); - .@avg=(.@craft+.@skill)/2; - .@base=rand2(1, .@avg+1); .@mult=csys_Multiplier(.@var); + .@avmult=(.@craft+.@skill)*.@mult; + + .@avg=.@avmult/2; + .@base=rand2(1, .@avg+1); - return .@base*.@mult+1; + return .@base; } |