feat: 初回コミット (GameLauncher)

This commit is contained in:
armonica committed 2026-10-01 09:42:02 +09:00
commit 7ac4dbc825
45 files changed
+9779

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
/*:
* @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();
};
}
})();