查看: 3861|回复: 2

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

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

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

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

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

请问为什么我的角色每次受到伤害时TP都增加25.没找到在哪里修改。
  1. Game_Battler.prototype.gainTp = function(value) {
  2.     this._result.tpDamage = -value;
  3.     this.setTp(this.tp + value);
  4. };
复制代码
  1. // Change TP
  2. Game_Interpreter.prototype.command326 = function() {
  3.     var value = this.operateValue(this._params[2], this._params[3], this._params[4]);
  4.     this.iterateActorEx(this._params[0], this._params[1], function(actor) {
  5.         actor.gainTp(value);
  6.     }.bind(this));
  7.     return true;
  8. };
复制代码


是在哪里改呢?


梦石
0
星屑
50
在线时间
13 小时
注册时间
2015-11-30
回帖
15
发表于 2015-12-3 08:39:36 | 显示全部楼层
  1. Game_Action_prototype_executeHpDamage = Game_Action.prototype.executeHpDamage
  2. Game_Action.prototype.executeHpDamage = function(target, value) {
  3.         Game_Action_prototype_executeHpDamage(target, value);
  4.         if (target.isActor())
  5.                 target.gainTp(25);
  6.         )
  7. }
复制代码

评分

参与人数 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.

在本版发帖返回顶部