From fc6316bfa96c02a13988bc84bc8b58853b0208d2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 6 Jul 2020 07:46:58 -0300 Subject: Weapons should not have DEF. Wait, DEF or MDEF? For now, cap DEF+MDEF, but only. This will need work further on... --- npc/craft/options.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc') 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; -- cgit v1.2.3-70-g09d2