summaryrefslogtreecommitdiff
path: root/npc/craft/options.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r--npc/craft/options.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index f06b78c83..0b1477ac3 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -513,6 +513,9 @@ function script csys_BonusCalc {
.@avmult=(.@craft+.@skill)*.@mult;
.@avg=.@avmult/10;
+ // Equip Level Cap
+ if (!(@csysArmor & CSYS_LEGENDARY))
+ .@avg=.@avg*(5+min(5, .@eqlv/20))/10;
// Roll or no roll
if (!.@skip) {
.@base=rand2(1, .@avg+1);