| 赞 | 36 |
| VIP | 0 |
| 好人卡 | 0 |
| 积分 | 96 |
| 经验 | 0 |
| 最后登录 | 2025-10-26 |
| 在线时间 | 462 小时 |
Lv4.逐梦者
- 梦石
- 2
- 星屑
- 7638
- 在线时间
- 462 小时
- 注册时间
- 2021-12-4
- 帖子
- 492

|
Game_Actor.prototype.gainExp = function(exp) {
var newExp = this.currentExp() + Math.round(exp * this.finalExpRate());
this.changeExp(newExp, this.shouldDisplayLevelUp());
};
Game_Actor.prototype.finalExpRate = function() {
return this.exr * (this.isBattleMember() ? 1 : this.benchMembersExpRate());
};
Game_Actor.prototype.benchMembersExpRate = function() {
return $dataSystem.optExtraExp ? 1 : 0;
};
这几个函数位于rpg_objects.js第3930行左右,最后的?1:0表示【数据库-系统-候补队员获得经验】启用时会获得和参战队员同样多的经验,未启用时则不获得经验,可以把1和0改成其他数值。 |
|