User:Mad5cout/Damage Order Research

Research on the order Base and Mod damage occurs:

Questions:
 * 1) Do mods or base damage occur first?
 * 2) Does armor ignoring damage change anything?
 * 3) Does mod placement in the inventory change damage order?
 * 4) Do mod values (IE: 90 Frost and 60 Fire vs. 60 Frost and 90 Fire) change damage order?
 * 5) Do enemy factions change the order?
 * 6) Do typeMPs change the order?
 * 7) Do Shields and HP have the same order?

Round 1
Lanka 0% Base, 60% Freeze vs. Trooper (lv 1)  -  Displayed damage - 250  BASE!!

Same weapon against a Sawman (lv 1) with Shields - Dislayed damage - 100 blue indecernable...

Omg I did several tests and I don't think we can figure this out. I did this all in a solo game:

Hitting a sawman I would sometimes see 100 blue, others 100 blue and 33 white.

Hitting Lancers and Troopers I mostly saw 250 but sometimes I would get a crit that said only 75 even though it is supposed to be 375. And other times yet, I would see both the base damage and the mod damage indicators.

Maybe I am going crazy or something was going on due to the hotfix but that round was entirely random...

Can you organize the data a bit? I'm not sure I am understanding it correctly. -Rmosley753

The data was all over the place. I don't even know how to organize what I saw. I will test again and be more deliberate with data collection.

Against the Sawmans all you were seeing was freeze damage. The 100 blue was the first part of the freeze damage. The white 33 was the leftover freeze damage ((((150 * 2) - 100 - 1) / 2) * 0.33ArmorMitigation). I'm assuming that you just didn't see the white 33s sometimes.

That 75 crit that you saw was critical freeze damage (regular is 50). When you saw 250s against the Troopers there should have also been a 50, but you might not have seen it.

-Rmosley753

Damage Type Order Results
Lanka with all possible combinations of 2 element mods vs various Corpus

Conclusion...

Health Damage Order: AP>Fire>Freeze>Electricity>Weapon

Shields Damage Order: Electricity>Freeze>Fire>AP>Weapon

It might be worth noting that the element mods are in the exact opposite order, but weapon damage seems to have the lowest priority in both cases. Also, BodyPartMP, TypeMP, and Armor seem to have no effect. One more thing, I did a test with a Despair (AP damage) with a freeze mod and the freeze damage still had higher priority (on health).

Note: I went through 3 Grineer missions recording in FRAPs. When I played back the video I did not notice anything that didn't follow these rules.

Shield-HP Threshold with Damage Order
Not sure where to put this, it concerns both damage order and shields.

This formula is hilarious. Here is how I calculated leftover damage with order of operations in mind...

=IF(ElecShieldDmg >= RemainingShields,(ElecDmgEquation((ElecShieldDmg - RemainingShields - 1) + FrzHpDmg + FireHpDmg + APHpDmg + WeapHpDmg),

IF((ElecShieldDmg + FrzShieldDmg) >= RemainingShields,(FrzDmgEquation(((ElecShieldDmg + FrzShieldDmg) - RemainingShields - 1) / 2) + FireHpDmg + APHpDmg + WeapHpDmg),

IF((ElecShieldDmg + FrzShieldDmg + FireShieldDmg) >= RemainingShields,(FireDmgEquation((ElecShieldDmg + FrzShieldDmg + FireShieldDmg) - RemainingShields - 1) + APHpDmg + WeapHpDmg),

IF((ElecShieldDmg + FrzShieldDmg + FireShieldDmg + APShieldDmg) >= RemainingShields,(APDmgEquation((ElecShieldDmg + FrzShieldDmg + FireShieldDmg + APShieldDmg) - RemainingShields - 1) + WeapHpDmg),

WeapDmgEquation((TotalShieldDmg - RemainingShields - 1))))))

Basically, it checks to see what types of damage are going to hit the shields, then the damage type that breaks the shield has its leftover damage calculated (with our final damage equation), and finally the damage types that did not hit the shield are added (using enemy damages which already have BodyPartMP, Armor, etc. applied).

So, the entire equation for Hits to Kill would be...

=ROUNDUP((TotalShields / TotalShieldDmg),0) + ROUNDUP(((MAX((TotalHealth - MAX(Leftovers,0)),0)) / TotalHealthDmg),0)

I think this formula is final, please let me know if there is something wrong with it! It is a huge formula, the new record holder at 10 lines, but with a check at the beginning to see if the enemy has shields or not, it is not executed all the way through very often.