MV Problem trying to lock a single equipment slot out of multiple identical slots.

Hello, everyone! I'm using yanfly's YEP_equipcore to allow actors to have more than one of the same equipment type equipped at the same time, for example: two rings equipped simultaneously. The thing is that I want some rings to make it so it cannot be removed (unless using event commands). For this, I'm using the "lock equip (equipment type)" option on these rings. The problem is that it makes it impossible to equip other rings on the other empty slots. Is there another way to only lock the slots where these rings would be and keep the others available for use? Thanks a lot for reading!

The link to yanfly's equip core:

Hmmm, try putting this before Yanfly plugins (copy paste to notepad, save as .js file and add as a plugin).

Then put a <noRemove> notetag on the rings you don't want removed (don't use lock equip).

Game_Actor.prototype.isEquipChangeOk = function(slotId) {
const equippedItem = this.equips()[slotId];
return (!this.isEquipTypeLocked(this.equipSlots()[slotId]) &&
(equippedItem ? !equippedItem.meta.noRemove : true) &&
!this.isEquipTypeSealed(this.equipSlots()[slotId]));
};

Not sure if it can mess with some other plugin related stuff though LOL
Hmmm, try putting this before Yanfly plugins (copy paste to notepad, save as .js file and add as a plugin).

Then put a <noRemove> notetag on the rings you don't want removed (don't use lock equip).

Game_Actor.prototype.isEquipChangeOk = function(slotId) {
const equippedItem = this.equips()[slotId];
return (!this.isEquipTypeLocked(this.equipSlots()[slotId]) &&
(equippedItem ? !equippedItem.meta.noRemove : true) &&
!this.isEquipTypeSealed(this.equipSlots()[slotId]));
};

Not sure if it can mess with some other plugin related stuff though LOL
It worked! Thanks a lot. Yeah, I don't know if it would mess with other related plugins, but I'll let you know. Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/problem-trying-to-lock-a-single-equipment-slot-out-of-multiple-identical-slots.181856/