赞 | 4 |
VIP | 0 |
好人卡 | 0 |
积分 | 8 |
经验 | 0 |
最后登录 | 2022-11-25 |
在线时间 | 117 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 848
- 在线时间
- 117 小时
- 注册时间
- 2018-4-7
- 帖子
- 114
|
rmmz_object.js
Game_Actor.prototype.changeExp = function(exp, show) {
this._exp[this._classId] = Math.max(exp, 0);
const lastLevel = this._level;
const lastSkills = this.skills();
while (!this.isMaxLevel() && this.currentExp() >= this.nextLevelExp()) {
this.levelUp();
}
while (this.currentExp() < this.currentLevelExp()) {
this.levelDown();
}
if (show && this._level > lastLevel) {
this.displayLevelUp(this.findNewSkills(lastSkills));//显示升级信息
}
this.refresh();
}; |
|