Additive Element Rates

So I noticed that when I have my character equip 2 pieces of equipment that both grant Elemental Rate modifiers they are multiplied when I want it to be added instead. Like if Armor A has the trait 90% to Fire element, and Accessory B has 80% to Fire element, I'd like the result to be 70% instead of 72%. Basically I want it to be treated like an Ex-param instead of an Sp-param. Is this possible through some coding or a plugin perhaps? I'm even open to the idea of modifying MV's JS files.

Edit: Ok, seems I found a solution and thought I'd share w/ the community. It will require modifying rpg_objects.js and Hime's Element Negation plugin, which I will link here:

Anyways, here's a quote of the post that explains the procedure, courtesy of Naveed:
The element rate calculation can be found in the rpg_objects.js file. It's on line 2464: (it was 2467 for me -Staf00)

Code:
Game_BattlerBase.prototype.elementRate = function(elementId) {
    return this.traitsPi(Game_BattlerBase.TRAIT_ELEMENT_RATE, elementId);
};

To change it from multiplicative to additive, change traitsPi to traitsSum. So, it'll look like this:

Code:
Game_BattlerBase.prototype.elementRate = function(elementId) {
    return this.traitsSum(Game_BattlerBase.TRAIT_ELEMENT_RATE, elementId);
};

Note that this will disable certain features of your game, such as having immunity to an element because the rate will not go down to zero. Also, since now the rate you specify will be additive, any value you put in is going to increase the element rate. To decrease the element rate (ie increase resistance to that element), you would have to use negative values, which the editor does not allow. So, you're going to need a plugin that allows you to specify element rates by notetag.

Also note that I did not test this myself, and the rate is multiplicative by default for good reasons (otherwise, you wouldn't be able to set element immunity for example), and changing it could result in unwanted effects, although I can't think of any way it could as of this moment.

Edit2: Also, if you're like me and want to keep the ability to use decimals w/ your element rates, simply go to line 99 in HIME_ElementalNegation.js and get rid of Math.floor, but keep res[2].

Also, make sure to give your characters 100% to all elemental rates so they aren't immune to everything by default! lol

Happy game making!

Original thread: https://forums.rpgmakerweb.com/threads/additive-element-rates.122886/