/*: * @target MZ MV * @plugindesc ショップでのアイテム購入時、個数入力の初期値を最大購入可能数にします。 * @author GameLauncher * * @help * ショップ画面でアイテムを購入する際の初期個数を 1 ではなく * 所持金で買える最大数(所持上限まで)に自動設定します。 */ (() => { 'use strict'; if (typeof Window_ShopNumber !== 'undefined') { const _Window_ShopNumber_setup = Window_ShopNumber.prototype.setup; Window_ShopNumber.prototype.setup = function(item, max, price) { _Window_ShopNumber_setup.call(this, item, max, price); this._number = max; this.refresh(); }; } })();