As I'm trying to add my own commands I'd like to know where and how this one tells the script what to do next, so-
Which one of these lines says "Open list with upgrades"?
(lines 1048 - 1071)
Which one of these lines says "Open list with upgrades"?
Yanfly.IUS.Window_ItemActionCommand_addCustomCommandsD = Window_ItemActionCommand.prototype.addCustomCommandsD;Window_ItemActionCommand.prototype.addCustomCommandsD = function() { Yanfly.IUS.Window_ItemActionCommand_addCustomCommandsD.call(this); this.addUpgradeCommand();};Window_ItemActionCommand.prototype.addUpgradeCommand = function() { if (Yanfly.Param.IUSUpgradeCmd === '') return; if (!$gameSystem.itemUpgradeShow()) return; if (!this._item) return; this._item.upgradeSlots = this._item.upgradeSlots || 0; if (this._item.upgradeSlots <= 0) return; var enabled = DataManager.isIndependent(this._item); if (eval(Yanfly.Param.IUSShowOnly) && !enabled) return; if (!$gameSystem.itemUpgradeEnabled()) enabled = false; var fmt = Yanfly.Param.IUSUpgradeCmd; text = '\\i[' + this._item.iconIndex + ']'; if (this._item.textColor !== undefined) { text += '\\c[' + this._item.textColor + ']'; } text += this._item.name; text = fmt.format(text); this.addCommand(text, 'upgrade', enabled);(lines 1048 - 1071)