/*============================================================================= * Exp Limit.js * By Vito The Boss * Version: 1.0.0 *=============================================================================*/ /*: * @plugindesc This plugingive a limit to the total EXP. * @author Vito The Boss * * @param ExpLimit * @desc The maximum experience a character can have * @default 999999 * * * @help * No help needed. */ $.Parameters = PluginManager.parameters('ExpLimit'); if ($.Parameters["ExpLimit"] !== undefined) { var ExpLimit = $.Parameters["ExpLimit"] || 999999; Game_Actor.prototype.gainExp = function(exp) { var newExp = this.currentExp() + Math.round(exp * this.finalExpRate()); this.changeExp(newExp, this.shouldDisplayLevelUp()); if (this.currentExp() >= ExpLimit){ this.changeExp(ExpLimit, 0) } };