Removing Optimize and Clear Equipment with Yanfly Equip Core?

How would I do this? I don't really like the functions to begin with, and some of my weapons and armors actually impose decreased stats to balance out higher values in others (i.e., my heavy armors reduce AGI), which would mess with the Optimize function. I'd imagine it's somewhere in the json file, but I don't know enough about JavaScript to know what I should be looking for. If anyone can help, I'd appreciate it XD
I don't know if there's a way to remove optimize from plugin commands. If there isn't, the part that makes the command is in rpg_windows and is called "this.addCommand(TextManager.optimize, 'optimize');" inside Window_EquipCommand.prototype.makeCommandlList. If that wasn't there, then there wouldn't be an optimize command.
That does work, but now the plug-in is messed up? I haven't changed anything in the actual plug-in, but it's got asterisks all over the place, and it says undefined instead of the <Empty> like it should?


Equip Core MEssed Up.PNGEquip Messed up.PNG
In rpg_windows.js


go to 2355 and 2356 you will find


    this.addCommand(TextManager.optimize, 'optimize');
    this.addCommand(TextManager.clear,    'clear');


you can delete it or put // before them
Yeah, when I did that it messed the plug-in up... :/


Though, I do suppose that, the way I've changed my gear system, I don't really even NEED the Equip Core anymore haha XD
You don't need to edit the plugin parameters - my mistake. For some reason I thought you wanted the Finish command gone, too - not sure why I thought that. Make sure you set Remove Icon back to 16, too, to see if that's your problem with Undefined. Did you make any changes in rpg_windows? (I tried commenting in there as mrcopra suggested and that worked fine, too).


Your plugin version is a bit behind, too - that might be causing some problems.
without optimize.jpg

Original thread: https://forums.rpgmakerweb.com/threads/removing-optimize-and-clear-equipment-with-yanfly-equip-core.65034/