summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
Diffstat (limited to 'npc/craft')
-rw-r--r--npc/craft/options.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index 90eb52097..289ccb4b5 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -450,6 +450,13 @@ function script csys_WeaponFix {
.@sub=getiteminfo(getarg(0,Acorn), ITEMINFO_SUBTYPE);
@csysArmor=0;
+ // Only remove one; There is a rationale for this:
+ // If you go only with defense level 1, it'll break item.
+ if (any(true,false))
+ array_remove(@csys_attr, VAR_ITEMDEFPOWER);
+ else
+ array_remove(@csys_attr, VAR_MDEFPOWER);
+
// Weapon Subtype
if (.@sub == W_FIST || .@sub == W_KNUCKLE)
@csysArmor=@csysArmor|CSYS_BRAWLING;