Changed stat bonus calculation.
This commit is contained in:
parent
c578bd43c1
commit
7d76f3cc2a
@ -385,6 +385,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -385,6 +385,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -385,6 +385,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -386,6 +386,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -389,6 +389,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -392,6 +392,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -392,6 +392,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -383,6 +383,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -383,6 +383,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -386,6 +386,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
@ -389,6 +389,6 @@ public enum Stats
|
||||
{
|
||||
final double mul = creature.getStat().getMul(stat);
|
||||
final double add = creature.getStat().getAdd(stat);
|
||||
return mul * (baseValue + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType()));
|
||||
return (mul * baseValue) + add + creature.getStat().getMoveTypeValue(stat, creature.getMoveType());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user