Code style changes.

This commit is contained in:
MobiusDev
2016-04-26 19:21:19 +00:00
parent 6a13705766
commit fc070c9238
768 changed files with 3338 additions and 4252 deletions

View File

@ -47,11 +47,11 @@ public class FuncEnchantAccEvas extends AbstractFunction
// Increases Phys.Accuracy / Mag.Accuracy for gloves
if (item.getEnchantLevel() == 4)
{
value += (0.2 * blessedBonus);
value += 0.2 * blessedBonus;
}
else
{
value += (0.2 * blessedBonus * ((item.getEnchantLevel() * 2) - 9));
value += 0.2 * blessedBonus * ((item.getEnchantLevel() * 2) - 9);
}
}
return initVal;

View File

@ -46,11 +46,11 @@ public class FuncEnchantMAtk extends AbstractFunction
// Increases Mag. Atk for chest
if (item.getEnchantLevel() == 4)
{
value += (1.4 * blessedBonus);
value += 1.4 * blessedBonus;
}
else
{
value += (1.4 * blessedBonus * ((item.getEnchantLevel() * 2) - 9));
value += 1.4 * blessedBonus * ((item.getEnchantLevel() * 2) - 9);
}
}
return initVal;

View File

@ -46,11 +46,11 @@ public class FuncEnchantPAtk extends AbstractFunction
// Increases Phys.Atk for chest
if (item.getEnchantLevel() == 4)
{
value += (2 * blessedBonus);
value += 2 * blessedBonus;
}
else
{
value += (2 * blessedBonus * ((item.getEnchantLevel() * 2) - 9));
value += 2 * blessedBonus * ((item.getEnchantLevel() * 2) - 9);
}
}
return initVal;

View File

@ -46,11 +46,11 @@ public class FuncEnchantPMCritRate extends AbstractFunction
// Increases P. Critical Rate / magic damage for legs
if (item.getEnchantLevel() == 4)
{
value += (0.34 * blessedBonus);
value += 0.34 * blessedBonus;
}
else
{
value += (0.34 * blessedBonus * ((item.getEnchantLevel() * 2) - 9));
value += 0.34 * blessedBonus * ((item.getEnchantLevel() * 2) - 9);
}
}
return initVal;

View File

@ -46,11 +46,11 @@ public abstract class FuncEnchantRunSpd extends AbstractFunction
// Increases speed for feets
if (item.getEnchantLevel() == 4)
{
value += (0.6 * blessedBonus);
value += 0.6 * blessedBonus;
}
else
{
value += (0.6 * blessedBonus * ((item.getEnchantLevel() * 2) - 9));
value += 0.6 * blessedBonus * ((item.getEnchantLevel() * 2) - 9);
}
}
return initVal;

View File

@ -43,15 +43,10 @@ public class FuncMatkEvasion extends AbstractFunction
{
final int level = effector.getLevel();
double value = initVal;
if (effector.isPlayer())
// [Square(WIT)] * 3 + lvl;
value += (Math.sqrt(effector.getWIT()) * 3) + (level * 2);
if (!effector.isPlayer())
{
// [Square(WIT)] * 3 + lvl;
value += (Math.sqrt(effector.getWIT()) * 3) + (level * 2);
}
else
{
// [Square(DEX)] * 6 + lvl;
value += (Math.sqrt(effector.getWIT()) * 3) + (level * 2);
if (level > 69)
{
value += (level - 69) + 2;