ATK Increased with a certain weapon

I have sort of an idea of how to do this, but I need some help to get the exact code right.  I'm creating a variable-based skill point system in my game.  What I can't figure out is how to increase a character's attack power if they're using a particular weapon.  Like in the image below, I want the character to be stronger with swords, but only with swords.  I know that I need to do something involving wTypeId, but I'm not sure how to use it to create the conditional.

SkillSystem.png
OK, I have sort of an idea to handle this.  If I apply a passive state when a character equips a particular weapon, I can manipulate the stats through that state.  The question now is how to manipulate the necessary stats in the state.

Original thread: https://forums.rpgmakerweb.com/threads/atk-increased-with-a-certain-weapon.63987/