/*: * @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); }; })();