Elemental rates, and how to math.

So I've never really gotten around to making elemental debuff spells, but now that I'm looking into it, I'm trying to figure out how the math will work on it. So here is an example:

The enemy has a base of 50% fire resistance. So elemental rate fire 50%, that should negate 50% of all fire damage. So for this example, hitting this enemy with a 100 damage fire spell should result in the enemy taking 50 damage. Now I add a skill that adds a state to this enemy. If I want the skill to make the enemy take 25% more fire damage, then the state should be set to elemental rate fire 125%. Now my question is, how does the math work on this? Will the enemy be taking 75 damage because his base elemental rate is 50% so adding 25% to that would be 75%? Or would be be taking 62.5 damage because 25% of 50% is 12.5%? Or would this set the enemy's elemental rate to 125% and the enemy would take 125 damage?


Me not good at math.
Or would be be taking 62.5 damage because 25% of 50% is 12.5%?
this.
for element rates, you multiply all the relevant rate traits on the battler together. your enemy has a base rate of .5 (50%) and the state has an element rate of 1.25 (125%), so the resultant state rate is .5*1.25 = .625 (62.5%) and your 100 dmg attack goes down to 62
Past threads for reference.


Original thread: https://forums.rpgmakerweb.com/threads/elemental-rates-and-how-to-math.168565/