summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-06 07:46:58 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-06 07:46:58 -0300
commitfc6316bfa96c02a13988bc84bc8b58853b0208d2 (patch)
tree05a0cf956c1bcb05b00b8ad9a7fa987eb8938d80
parenta16a05d961c5af3b1fefb400d3e397e82366cb1f (diff)
downloadserverdata-fc6316bfa96c02a13988bc84bc8b58853b0208d2.tar.gz
serverdata-fc6316bfa96c02a13988bc84bc8b58853b0208d2.tar.bz2
serverdata-fc6316bfa96c02a13988bc84bc8b58853b0208d2.tar.xz
serverdata-fc6316bfa96c02a13988bc84bc8b58853b0208d2.zip
Weapons should not have DEF.
Wait, DEF or MDEF? For now, cap DEF+MDEF, but only. This will need work further on...
-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;