Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //For MV version 1.5.1 RPG Objects.js
- // Replace Lines 3943 - 3946 in RPG Objects.js
- Game_Actor.prototype.changeLevel = function(level, show) {
- level = level.clamp(1, this.maxLevel());
- while (!this.isMaxLevel() && level > this._level) {
- this._level++;
- }
- while (this._level > 1 && level < this._level) {
- this._level--;
- }
- };
- // Replace Lines 3926 - 3929 in RPG Objects.js
- Game_Actor.prototype.gainExp = function(exp) {
- var newExp = this.currentExp() + Math.round(exp * this.finalExpRate());
- this._exp[this._classId] = Math.max(newExp, 0);
- };
- //Replace Lines 10254 in RPG Objects.js
- actor.gainExp(value);
- //Replace Lines 10254 in RPG Objects.js
- actor.gainExp(value);
- //Replace Lines 3534 - 3536 in RPG Objects.js
- Game_Actor.prototype.initExp = function() {
- if(this._level > 0){
- this._exp[this._classId] = this.currentLevelExp();
- } else {
- this._exp[this._classId] = 0;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement