-Added all existing enchantment scrolls & lucky stones.
-Full done all scrolls and stones (standard,bless,giant's,safe, -1, etc..) -Added parameters minEnchant, maxEnchantFighter, maxEnchantMagic (minEnchant for Improved stones (+10..+15 only), others for Heavenly Scrolls -Implemented Hair accessory enchant (ONLY IN CORE - ITEMS FOR ENCHANTING NOT DONE, EXCEPT 34717. Also, visual bug when enchanting - "+pdef", but really not gained (same as official servers.) -Added enchant options for hair accessories (increase M. Def. ) -Increased P.Def/M.Def gain when enchanting R grade armor from +1/+3 to +2/+4 (as official). Contributed by NviX.
This commit is contained in:
@ -75,7 +75,21 @@ public class FuncEnchant extends AbstractFunction
|
||||
|
||||
if ((getStat() == Stats.MAGIC_DEFENCE) || (getStat() == Stats.POWER_DEFENCE))
|
||||
{
|
||||
return value + enchant + (3 * overenchant);
|
||||
switch (item.getItem().getCrystalTypePlus())
|
||||
{
|
||||
case R:
|
||||
value += (2 * enchant) + (4 * overenchant);
|
||||
break;
|
||||
case S:
|
||||
case A:
|
||||
case B:
|
||||
case C:
|
||||
case D:
|
||||
case NONE:
|
||||
value += enchant + (3 * overenchant);
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
if (getStat() == Stats.MAGIC_ATTACK)
|
||||
|
Reference in New Issue
Block a user