Lufia 2 Style Rings

I'm trying to create an effect where certain armours increase the damage rate of a specified elemental.

example:
Fire Ring would increase the damage rate of all fire damage.
Just about figured it out. I took a look at how damage flow works and may have figured out a way to do it involving passive states. I would add the following wip function to the damage flow.

Code:
Game_Action.prototype.applyElementBoost = function(value, baseDamage, target) {
  var user = this.subject();
  //default rate is 1;
  var rate = 1;
  user._states.forEach(function(stateId) {
    //rate increases
  }
  rate = Math.min(rate,1)
  return value * rate;
};

I'm having trouble figuring out how to check for the data (effects+metadata) stored in a individual state. (That way I know which states apply the boost) Any ideas how to do this?
Solved

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/lufia-2-style-rings.112923/