summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/craft/options.txt8
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;
}