diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-21 03:31:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-21 03:31:10 -0300 |
commit | e7ce8a3f5fcd3b33701e568a0551df6d704b227e (patch) | |
tree | 62dc731ef71df0250a4c97249e6bfe0484975021 /npc | |
parent | 6a2b66bfcc1e2210f90f9dc36608758d7e2580d4 (diff) | |
download | serverdata-e7ce8a3f5fcd3b33701e568a0551df6d704b227e.tar.gz serverdata-e7ce8a3f5fcd3b33701e568a0551df6d704b227e.tar.bz2 serverdata-e7ce8a3f5fcd3b33701e568a0551df6d704b227e.tar.xz serverdata-e7ce8a3f5fcd3b33701e568a0551df6d704b227e.zip |
Normal ATK/MATK, however, got boosted! \o/
Two Hands/Bows: +50%
Brawling/Magical: +40%
Of regular ATK/MATK only!
Diffstat (limited to 'npc')
-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); |