From e7fd5fe6c8f0567cc611c2a7d8e6d1b2ffba1c83 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 6 Sep 2019 14:14:59 -0300 Subject: Armor crafting (eg. Shield) won't incur on weapon only bonuses anymore. Weapon only bonuses: Splash, Walk Speed, HP/MP Drain, Doubleattack. Weapon only penalties: DEF, MDEF. (You won't have those penalties on armor) --- npc/craft/options.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc') 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); -- cgit v1.2.3-70-g09d2