查看: 3800|回复: 2

[已经解决] 为什么每次收到伤害TP都增加25呢?

[复制链接]
梦石
0
星屑
177
在线时间
170 小时
注册时间
2012-3-4
回帖
47
发表于 2015-12-2 23:46:48 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 grammy416 于 2015-12-2 23:51 编辑

请问为什么我的角色每次受到伤害时TP都增加25.没找到在哪里修改。
[pre lang="js" line="3196" file="rpg_objects.js"]Game_Battler.prototype.gainTp = function(value) {
    this._result.tpDamage = -value;
    this.setTp(this.tp + value);
};[/pre]
[pre lang="JS" line="10164" file="rpg_objects.js"]// Change TP
Game_Interpreter.prototype.command326 = function() {
    var value = this.operateValue(this._params[2], this._params[3], this._params[4]);
    this.iterateActorEx(this._params[0], this._params[1], function(actor) {
        actor.gainTp(value);
    }.bind(this));
    return true;
};[/pre]

是在哪里改呢?


梦石
0
星屑
50
在线时间
13 小时
注册时间
2015-11-30
回帖
15
发表于 2015-12-3 08:39:36 | 显示全部楼层
[pre lang="javascript"]Game_Action_prototype_executeHpDamage = Game_Action.prototype.executeHpDamage
Game_Action.prototype.executeHpDamage = function(target, value) {
        Game_Action_prototype_executeHpDamage(target, value);
        if (target.isActor())
                target.gainTp(25);
        )
}[/pre]

评分

参与人数 1星屑 +266 收起 理由
余烬之中 + 266 0x0

查看全部评分

回复

使用道具 举报

梦石
0
星屑
177
在线时间
170 小时
注册时间
2012-3-4
回帖
47
 楼主| 发表于 2015-12-3 11:30:14 | 显示全部楼层
语义噪音 发表于 2015-12-3 08:39
Game_Action_prototype_executeHpDamage = Game_Action.prototype.executeHpDamage
Game_Action.prototype. ...

多谢多谢。虽然还是没效果。不过思路我知道了!再试试
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部