I'm struggling to find the code that lists all the items upon clicking an equip slot.
I think it's Window_ItemList.prototype.makeItemList but I'm not sure what to do with it.
Basically what I want is to filter out items that the character cannot equip.
Eg. If I click on a Weapon slot, the character that can only equip Sword must only see Swords not ALL weapons. The plugin just disables them, it still shows Bows, Guns, etc.
I think it's how the engine behave to begin with, Yanfly isn't changing this behavior.
Also, pretty sure it's the line 742 on YEP_EquipCore.js that draws the item list. The function
Window_EquipItem.prototype.drawItem. I might be wrong !
You would need a plugin in order to do what you want. You need to pass the actor as an argument for when the item list is drawn, then check what the actor can equip. If you look into the code that gray out what he can't equip, you might find an easy way to apply the same conditions for drawing the item to begin with (so, to not show it).
EDIT : nevermind I can't reproduce your issue, I don't see equipment that the character can't equip in the list. Could you provide a screenshot ? Maybe you have another plugin that's doing that. I tried a new project with only YEP_CoreEngine, YEP_EquipCore and YEP_X_EquipRequirements, the weapons that an actor can't equip don't appear in the equip list...
😅
EDIT2 : Aight I made sure that this one works, it should hide the weapons from the list if the requirements from the plugin
YEP_X_EquipRequirements aren't met. Be sure to put this plugin below
YEP_X_EquipRequirements and
YEP_EquipCore. Tell me if you encounter any issue.