Loot & Shoot, player ammo management

Hello everyone,

I got a nice replicated loot, equip, and shoot project, all is working fine but I want to refactoring all this s**t :wink:

I want to know if someone got a preference about where to save/load weapon variables.

Actually, I got a A_MasterItem where I have all the logic about interacting object that the player can loot and put in his inventory
Then, I have a player equipment where the player can set weapon 1 and 2, an Armor, and 2 accessories.
Each equipment (weapon, armor,…) can change player stats (number of jumps, dodge, HP and Shield points)
Also, weapons have magazine size, ammo type etc…

So now the problem…

I have to use my master item to set a inventory slot, then use this inventory slot to set equipment slot, then taking all this last variables values and manage weapon logic in my character, and… it’s replicated

That’s why I would like to know how you preferer to manage this kind of project.

(If you want to see the : “As player I want…” I put a video on my YT channel : https://youtu.be/FlIZxChL63I )