summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-06 14:14:59 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-06 14:14:59 -0300
commite7fd5fe6c8f0567cc611c2a7d8e6d1b2ffba1c83 (patch)
treede18343802b96058c693120c07f1184b49af378b /npc/craft
parent019a7a3dddba72e1446cdb37c57713de127643c4 (diff)
downloadserverdata-e7fd5fe6c8f0567cc611c2a7d8e6d1b2ffba1c83.tar.gz
serverdata-e7fd5fe6c8f0567cc611c2a7d8e6d1b2ffba1c83.tar.bz2
serverdata-e7fd5fe6c8f0567cc611c2a7d8e6d1b2ffba1c83.tar.xz
serverdata-e7fd5fe6c8f0567cc611c2a7d8e6d1b2ffba1c83.zip
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)
Diffstat (limited to 'npc/craft')
-rw-r--r--npc/craft/options.txt6
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);