| 赞 | 58  | 
 
| VIP | 37 | 
 
| 好人卡 | 59 | 
 
| 积分 | 12 | 
 
| 经验 | 66255 | 
 
| 最后登录 | 2023-5-29 | 
 
| 在线时间 | 1017 小时 | 
 
 
 
 
 
Lv3.寻梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 1232 
 
        - 在线时间
 - 1017 小时
 
        - 注册时间
 - 2011-4-30
 
        - 帖子
 - 1516
 
 
 
 | 
	
 
- Game_Actor.prototype.changeExp = function(exp, show) {
 
 -     //经验值[职业id] = 数学 最大值 (exp//经验值 , 0 )
 
 -     this._exp[this._classId] = Math.max(exp, 0);
 
 -     //之前等级 = 等级
 
 -     var lastLevel = this._level;
 
 -     //之前技能组 = 技能组()
 
 -     var lastSkills = this.skills();
 
 -     //当(不是 是最大等级() 并且 当前经验值() >= 下一级经验值() )
 
 -     while (!this.isMaxLevel() && this.currentExp() >= this.nextLevelExp()) {
 
 -         //等级上升()
 
 -         this.levelUp();  //在这里添加一个判断是否让他等级提升的就好..可以是开关可以是等级,可以是状态等等...
 
 -     }
 
 -     //当(当前经验值() < 当前等级经验值() )
 
 -     while (this.currentExp() < this.currentLevelExp()) {
 
 -         //等级下降()
 
 -         this.levelDown();
 
 -     }
 
 -     //如果 (show//显示 并且 等级 > 之前等级)
 
 -     if (show && this._level > lastLevel) {
 
 -         //显示等级上升( 寻找新技能组(之前技能组) )
 
 -         this.displayLevelUp(this.findNewSkills(lastSkills));
 
 -     } //刷新()
 
 -     this.refresh();
 
 - };
 
  复制代码 
 
 
每到设定等级,该角色的升级经验变成999999999…..的操作 
  |   
 
 
 
 |