Talk:Damage Calculator/@comment-11753608-20130824184514/@comment-11753608-20130825043452

The MPs and armor are applied simultaneously and rounded together. The order of operations within this doesn't matter because it is all multiplicative. You can put the MPs in first and then apply armor or do armor and then apply MPs, it will come out the same. Believe it or not, I did discuss this at length with pwnatron here and in PMs and tested most of it extensively - the MPs and armor calcs. You can see the order of operations for armor and MPs in his initial example.

So it is actually thus:

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

For elemental mods -

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

Note that elemental mods round to nearest rather than down like everything else. Everything has a floor of 1 if a mod is applied.

Certain mod calcs had some errors like the one you just found because I left the testing to some others. These are being corrected over time and I think the one you just found might have been the last because I went back and tested a lot of the others when people first started noting errors in what I thought was thoroughly tested.

Now, that said, if you can provide an example of the above not working, I will change it.