Yanfly's Equip Core - Optimize (and Optimize in general) in MV <RESOLVED>

Hey all!

I'll cut to the point. I don't like the fact that the weapon/armour equipment system in RPG maker MV has an "optimize" command for auto-equiping a character with high stat weapons and armour. I don't want it in my game for a cavalcade of reasons. Trouble is, I don't know how to get rid of it.

I am using Yanfly's Equip Core plugin, so that's an extra layer of complexity to the problem. Anyone who does know how to remove the command from this alternate equipment menu, please let me know!

Cheers, and have a nice day!


Forum choice note: I think this is the right forum for this, but I've got some doubts. I'm pretty sure this is more of a javascript issue, due to the fact that the solution would require knowledge of how the engine's code works and/or how the plugin's code works, but if I'm wrong, please do shift this to the appropriate forum.
I'm not sure if you ever found an answer to this issue or not, but since I've found this thread, I took a look into it and this should do the trick.

JavaScript:
Window_EquipCommand.prototype.makeCommandList = function() {
    this.addCommand(TextManager.equip2,   'equip');
//    this.addCommand(TextManager.optimize, 'optimize');
    this.addCommand(TextManager.clear,    'clear');
};
Copy this text into a notepad, save it as a .js file and import it into your plugin manager above YEP_EquipCore. Basically, it just comments out the part of the core script that draws the optimize command, which should effectively remove it from the command window entirely.
Thanks fam! So, how do you want to be credited for this? Would just "Ramza" in the plugins section of the credits work for you, or do you have a preffered name you'd rather I use?
Thanks fam! So, how do you want to be credited for this? Would just "Ramza" in the plugins section of the credits work for you, or do you have a preffered name you'd rather I use?
Ramza is fine if you want to credit me, but it's not really necessary for something as basic as this.
You might think so, but without this, a lot of things could go wrong with my design, so I feel like it's necessary. Again, thanks!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-equip-core-optimize-and-optimize-in-general-in-mv-resolved.117744/