diff options
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r-- | npc/craft/options.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 902b23849..cd09fd6f8 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -379,6 +379,23 @@ function script csys_Multiplier { return 0; } +// Remove problematic bonuses from armors +// Use getiteminfo before +// csys_ArmorFix( - ) +function script csys_ArmorFix { + // Remove bonuses + array_remove(@csys_attr, IOPT_SPLASHDAMAGE); + array_remove(@csys_attr, IOPT_WALKSPEED); + array_remove(@csys_attr, HP_DRAIN); + array_remove(@csys_attr, SP_DRAIN); + array_remove(@csys_attr, IOPT_DOUBLEATTACK); + // VAR_PLUSASPDPERCENT and VAR_PLUSASPD ? + // Remove penalties + array_remove(@csys_penalty, VAR_ITEMDEFPOWER); + array_remove(@csys_penalty, VAR_MDEFPOWER); + return; +} + // csys_BonusCalc( lv1, lv2, vartp ) // Calculates the due bonus function script csys_BonusCalc { |