L2JMobius

Free Users => Shares/Contributions => Committed User Contributions => Topic started by: YulRun on August 19, 2020, 08:23:59 PM

Title: BUG: (ARMOR SET) Plated leather giving wrong bonuses. (FIX INCLUDED)
Post by: YulRun on August 19, 2020, 08:23:59 PM
Bug: Armor set would add +4 STR and -1 CON at 2 pieces, and then an additional +4 STR and -1 CON at 3 pieces.
Solution: Only have the +4 STR and -1 CON at 3 Pieces, rather than a total of +8 STR and -2 CON.

Previous code in Armorsets.xml:
Code: [Select]
<set id="13" minimumPieces="2">
<requiredItems>
<item id="398" /> <!-- Plated Leather Armor -->
<item id="418" /> <!-- Plated Leather Gaiters -->
<item id="2431" /> <!-- Plated Leather Boots -->
</requiredItems>
<skills>
<skill id="3006" level="1" minimumPieces="2" /> <!-- Equip Set Items -->
<skill id="3511" level="1" minimumPieces="2" /> <!-- Plated Leather Set -->
<skill id="3511" level="2" minimumPieces="3" /> <!-- Plated Leather Set -->
<skill id="13340" level="1" minimumEnchant="6" minimumPieces="3" /> <!-- Light Armor Set +6 -->
<skill id="13340" level="2" minimumEnchant="7" minimumPieces="3" /> <!-- Light Armor Set +7 -->
<skill id="13340" level="3" minimumEnchant="8" minimumPieces="3" /> <!-- Light Armor Set +8 -->
<skill id="13340" level="4" minimumEnchant="9" minimumPieces="3" /> <!-- Light Armor Set +9 -->
<skill id="13340" level="5" minimumEnchant="10" minimumPieces="3" /> <!-- Light Armor Set +10 -->
</skills>
<stats>
<stat type="STR" val="4" />
<stat type="CON" val="-1" />
</stats>
</set>

New Code in Armorsets.xml:
Code: [Select]
<set id="13" minimumPieces="2">
<requiredItems>
<item id="398" /> <!-- Plated Leather Armor -->
<item id="418" /> <!-- Plated Leather Gaiters -->
<item id="2431" /> <!-- Plated Leather Boots -->
</requiredItems>
<skills>
<skill id="3006" level="1" minimumPieces="2" /> <!-- Equip Set Items -->
<skill id="3511" level="1" minimumPieces="2" /> <!-- Plated Leather Set -->
<skill id="3511" level="2" minimumPieces="3" /> <!-- Plated Leather Set -->
<skill id="13340" level="1" minimumEnchant="6" minimumPieces="3" /> <!-- Light Armor Set +6 -->
<skill id="13340" level="2" minimumEnchant="7" minimumPieces="3" /> <!-- Light Armor Set +7 -->
<skill id="13340" level="3" minimumEnchant="8" minimumPieces="3" /> <!-- Light Armor Set +8 -->
<skill id="13340" level="4" minimumEnchant="9" minimumPieces="3" /> <!-- Light Armor Set +9 -->
<skill id="13340" level="5" minimumEnchant="10" minimumPieces="3" /> <!-- Light Armor Set +10 -->
</skills>
</set>
Title: Re: BUG: (ARMOR SET) Plated leather giving wrong bonuses. (FIX INCLUDED)
Post by: Mobius on August 22, 2020, 10:58:49 AM
Committed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/708255eef7c5af445d77dc8e1ba95a3f6cb38d9e
Thanks :D