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

+19
View File
@@ -0,0 +1,19 @@
/*:
* @target MZ MV
* @plugindesc 経験値を獲得した際、即座に最大レベル(99)まで成長させます。
* @author GameLauncher
*
* @help
* 戦闘やイベントで経験値を獲得した際、そのアクターの最大レベルに到達するまでの経験値を一気に獲得します。
*/
(() => {
'use strict';
const _Game_Actor_gainExp = Game_Actor.prototype.gainExp;
Game_Actor.prototype.gainExp = function(exp) {
if (exp > 0 && !this.isMaxLevel()) {
const maxExp = this.expForLevel(this.maxLevel());
exp = Math.max(exp, maxExp - this.currentExp());
}
_Game_Actor_gainExp.call(this, exp);
};
})();