Reverted last MAttackFinalizer calculation change.

This commit is contained in:
MobiusDevelopment 2019-03-29 18:25:09 +00:00
parent 3544a4ccf8
commit 62290dadc7
11 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -55,7 +55,7 @@ public class MAttackFinalizer implements IStatsFunction
// Calculate modifiers Magic Attack
final double chaMod = creature.isPlayer() ? BaseStats.CHA.calcBonus(creature) : 1.;
final double intBonus = BaseStats.INT.calcBonus(creature);
baseValue *= intBonus * creature.getLevelMod() * chaMod;
baseValue *= Math.pow(intBonus, 2) * Math.pow(creature.getLevelMod(), 2) * chaMod;
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 intBonus = BaseStats.INT.calcBonus(creature);
baseValue *= intBonus * creature.getLevelMod();
baseValue *= Math.pow(intBonus, 2) * Math.pow(creature.getLevelMod(), 2);
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 intBonus = BaseStats.INT.calcBonus(creature);
baseValue *= intBonus * creature.getLevelMod();
baseValue *= Math.pow(intBonus, 2) * Math.pow(creature.getLevelMod(), 2);
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 intBonus = BaseStats.INT.calcBonus(creature);
baseValue *= intBonus * creature.getLevelMod();
baseValue *= Math.pow(intBonus, 2) * Math.pow(creature.getLevelMod(), 2);
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 intBonus = BaseStats.INT.calcBonus(creature);
baseValue *= intBonus * creature.getLevelMod();
baseValue *= Math.pow(intBonus, 2) * Math.pow(creature.getLevelMod(), 2);
return Math.min(Stats.defaultValue(creature, stat, baseValue), Config.MAX_MATK);
}