Enchant bonus stats for R grade items.

This commit is contained in:
mobius 2015-02-18 23:27:35 +00:00
parent d76ff9a69a
commit 5a86b889d1

View File

@ -82,6 +82,11 @@ public class FuncEnchant extends AbstractFunction
{
switch (item.getItem().getCrystalTypePlus())
{
case R:
// M. Atk. increases by 5 for all weapons.
// Starting at +4, M. Atk. bonus double.
value += (5 * enchant) + (10 * overenchant);
break;
case S:
// M. Atk. increases by 4 for all weapons.
// Starting at +4, M. Atk. bonus double.
@ -109,6 +114,29 @@ public class FuncEnchant extends AbstractFunction
final WeaponType type = (WeaponType) item.getItemType();
switch (item.getItem().getCrystalTypePlus())
{
case R:
if (item.getWeaponItem().getBodyPart() == L2Item.SLOT_LR_HAND)
{
if ((type == WeaponType.BOW) || (type == WeaponType.CROSSBOW))
{
// P. Atk. increases by 12 for bows.
// Starting at +4, P. Atk. bonus double.
value += (12 * enchant) + (24 * overenchant);
}
else
{
// P. Atk. increases by 7 for two-handed swords, two-handed blunts, dualswords, and two-handed combat weapons.
// Starting at +4, P. Atk. bonus double.
value += (7 * enchant) + (14 * overenchant);
}
}
else
{
// P. Atk. increases by 6 for one-handed swords, one-handed blunts, daggers, spears, and other weapons.
// Starting at +4, P. Atk. bonus double.
value += (6 * enchant) + (12 * overenchant);
}
break;
case S:
if (item.getWeaponItem().getBodyPart() == L2Item.SLOT_LR_HAND)
{