Talk:Damage Calculator/@comment-15871805-20130825061941/@comment-11753608-20130825153321

''Which example are you refering to? The Braton Prime example? It did not involve Armor or TypeMP, but did involve BodyPartMP. Doesn't that mean that the BodyPartMP was in the wrong place?''

''Also, I just finished a huge series of tests with the Hikou with a variety of mods, including freeze damage, and I can say that the element damage of the equation you provided is off as well. Here are some of many examples (vs Infested Runners)...''

0%Dmg + 5%Fact + 90%Freeze

Actual: Head=48 & Body=24

Equation: Head=46 & Body=23

20%Dmg + 5%Fact + 50%Freeze

Actual: Head=31 & Body=15

Equation: Head=32 & Body=16

20%Dmg + 30%Fact + 10%Freeze

Actual: Head=7 & Body=3

Equation: Head=8 & Body=4

''The equation is off so consistantly that I'd like to ask you to try to enter these values in it yourself and see if you come up with the same result. Just incase I copied the equation incorrectly, or maybe you posted it incorrectly?''

Edit: Oops, first example data had incorrect mod %, if you are seeing this it is fixed though.

I have figured out the error and it is not the type or Body Part MPs. It is the faction mods. And this makes sense because when we first started working on this, those didn't exist. Pwnatron never used them in his examples. So, we were flying by the seat of our pants testing trial and error on where those went and how. So, here is the problem. I was applying faction mods prior to the elemental mods and it is actually after. So, here is the correct equation and I would bet my left nut that it works with everything.

Base damage is -

=ROUNDDOWN(ROUNDOWN(ROUNDDOWN(BaseDamage*BaseDamMods, 0)*FactionMod, 0)*Armor*TypeMP*BodyMP, 0)

For elemental mods was wrong before. The elemental mod goes first, then faction. So ---

=ROUNDDOWN(ROUND(ROUNDOWN(ROUNDDOWN(BaseDamage*BaseDamMods, 0)*Elemental, 0)*FactionMod, 0)*Armor*TypeMP*BodyMP, 0)

This conforms to every data point you just listed. The faction mod was the problem, not the MPs.