From a77f645acb477f259b33913e11693ec98f362ebe Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 5 Jun 2019 14:26:55 -0300 Subject: Rewrite the bonus formula. It is more predictable now. --- npc/craft/options.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'npc') 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; } -- cgit v1.2.3-60-g2f50