diff options
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r-- | npc/craft/options.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 6fe96ef88..b9cd159a4 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -430,6 +430,12 @@ function script csys_Apply { // @csys_attr → Available attributes // @csys_penalty → Penalty attribute array + // Remove weapon-only bonuses if it is armor + delinventorylist(); + getinventorylist(); + if (getiteminfo(@inventorylist_id[.@id], ITEMINFO_TYPE) == IT_ARMOR) + csys_ArmorFix(); + // Shuffle the arrays array_shuffle(@csys_attr); array_shuffle(@csys_penalty); |