设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1465|回复: 5
打印 上一主题 下一主题

[有事请教] 战斗胜利结算自动或取消显示

[复制链接]

Lv2.观梦者

梦石
0
星屑
848
在线时间
117 小时
注册时间
2018-4-7
帖子
114
1
发表于 2022-9-15 03:08:27 | 显示全部楼层
捕食者 发表于 2022-9-15 01:03
非常感谢!
奖励和经验值这些问题解决了
主要是获取收益的这句 this.gainRewards();

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();
};
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-7 00:21

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表