Elemental Resistance Stacking

Here's my problem. In the first image, Durius does not have any equipment on. As you can see, he has a 25% resistance against the Earth element naturally. However, in the second image he is equipped with an axe giving 50% protection against Earth. So, according to my maths, the resistance number in the second image should be 75%, not 63% as it shows. What's going on here? How could I make the elements stack properly?


 
D1_zpsstcryvtw.png
D2_zpss6rvdbvr.png



Scripts I'm using for the status screen (which might or might not be related to the problem)


Yanfly Ace Status Menu: https://github.com/Archeia/YEARepo/blob/master/Menu/Ace_Status_Menu.rb


Blackmorning Status Addon: https://drive.google.com/file/d/0B1cW_5YDc5H_QXl3YU5sMWRReTQ/edit
Actually, it is performing the resistance exactly as it is set up in the system, as


25% resistance (0.75 element rate) * 50% resistance (0.50 element rate) = 0.75 * 0.50 = 0.375, which is 63% resistance, when rounded.


Elements are multiplied, not added. You'll need a major overwrite of how elements are applied if you want them to be added instead.

Original thread: https://forums.rpgmakerweb.com/threads/elemental-resistance-stacking.71357/