diff options
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r-- | npc/craft/options.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 2706f5f95..bf4913387 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -498,6 +498,16 @@ function script csys_BonusCalc { .@base=max(1, .@base*18/10); } + // Normal Attack for 2H? + if (.@var == VAR_ATTPOWER || .@var == VAR_ATTMPOWER) { + // Two Hands/Bows: +50% + if ((@csysArmor & CSYS_ZWEIHANDER) || (@csysArmor & CSYS_RANGED)) + .@base=max(1, .@base*3/2); + // Brawling/Magical: +40% + else if ((@csysArmor & CSYS_BRAWLING) || (@csysArmor & CSYS_MAGICAL)) + .@base=max(1, .@base*7/5); + } + // Armor? Cap it to 25% if (@csysArmor & CSYS_ARMOR) .@base=max(1, .@base/4); |