/*: * @plugindesc AitorEngine plugin to stop lvl up * * @author Aitor Rosell Torralba * @help * ============================================================================ * Plugin scripts calls: * ============================================================================ */ //============================================================================= // Parameters //============================================================================= var Imported = Imported || {}; Imported.AitorEngine_lvlStop = true; var AitorEngine = AitorEngine || {}; AitorEngine.lvlStop = AitorEngine.lvlStop || {}; AitorEngine.parameters = $plugins.filter(function(p) { return p.description.contains(''); })[0].parameters; AitorEngine.param = AitorEngine.param || {}; AitorEngine.icon = AitorEngine.icon || {}; //============================================================================= // Global Variables //============================================================================= //============================================================================= // Internal Functions //============================================================================= Game_Actor.prototype.changeExp = function(exp, show) { this._exp[this._classId] = Math.max(exp, 0); var lastLevel = this._level; while (!this.isMaxLevel() && this.currentExp() > this.nextLevelExp()) { this.changeExp(this.nextLevelExp(), false); } var lastSkills = this.skills(); if (show && this._level > lastLevel) { } this.refresh(); }; //============================================================================= // External Functions //============================================================================= AitorEngine.lvlStop.canLvlUp = function(actor){ if ($gameActors.actor(actor).currentExp() == $gameActors.actor(actor).nextLevelExp()){ return true } else { return false } } AitorEngine.lvlStop.LvlUp = function(actor){ if ($gameActors.actor(actor).currentExp() == $gameActors.actor(actor).nextLevelExp()){ $gameActors.actor(actor)._level += 1 } else { return false } } //============================================================================= //THE END- MADE BY AITOR ROSELL TORRALBA, AKA TAKASHI1KUN AKA RED1REAPER //=============================================================================