Tweaked MAttackFinalizer calculation.

This commit is contained in:
MobiusDevelopment 2019-04-01 22:20:06 +00:00
parent 7d76f3cc2a
commit 419f03e673
11 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaBonus = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2) * chaBonus;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod() * chaBonus, 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -54,7 +54,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaBonus = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2) * chaBonus;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod() * chaBonus, 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -54,7 +54,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaBonus = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2) * chaBonus;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod() * chaBonus, 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -54,7 +54,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaBonus = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2) * chaBonus;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod() * chaBonus, 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -54,7 +54,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaBonus = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2) * chaBonus;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod() * chaBonus, 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -54,7 +54,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaBonus = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2) * chaBonus;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod() * chaBonus, 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -54,7 +54,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaBonus = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2) * chaBonus;
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod() * chaBonus, 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -53,7 +53,7 @@ public class MAttackFinalizer implements IStatsFunction
}
// Calculate modifiers Magic Attack
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2);
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -53,7 +53,7 @@ public class MAttackFinalizer implements IStatsFunction
}
// Calculate modifiers Magic Attack
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2);
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -53,7 +53,7 @@ public class MAttackFinalizer implements IStatsFunction
}
// Calculate modifiers Magic Attack
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2);
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}

View File

@ -53,7 +53,7 @@ public class MAttackFinalizer implements IStatsFunction
}
// Calculate modifiers Magic Attack
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2);
baseValue *= Math.pow(BaseStats.INT.calcBonus(creature) * creature.getLevelMod(), 2.2072);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}