summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-05 15:09:00 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-05 15:09:00 -0300
commit13ad7719a8ccfb78a196fc03f8c47794ca119813 (patch)
tree333b163972a097f0639235f4c495b02b019143c7 /npc/craft
parentc22a66d917aa0cf5612d6ac47d1cb987410d8bea (diff)
downloadserverdata-13ad7719a8ccfb78a196fc03f8c47794ca119813.tar.gz
serverdata-13ad7719a8ccfb78a196fc03f8c47794ca119813.tar.bz2
serverdata-13ad7719a8ccfb78a196fc03f8c47794ca119813.tar.xz
serverdata-13ad7719a8ccfb78a196fc03f8c47794ca119813.zip
Prepare a special function to handle armor crafting, not yet used
Diffstat (limited to 'npc/craft')
-rw-r--r--npc/craft/options.txt17
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 {