Project1
标题: 为什么每次收到伤害TP都增加25呢? [打印本页]
作者: grammy416 时间: 2015-12-2 23:46
标题: 为什么每次收到伤害TP都增加25呢?
本帖最后由 grammy416 于 2015-12-2 23:51 编辑
请问为什么我的角色每次受到伤害时TP都增加25.没找到在哪里修改。
Game_Battler.prototype.gainTp = function(value) {
this._result.tpDamage = -value;
this.setTp(this.tp + value);
};
Game_Battler.prototype.gainTp = function(value) {
this._result.tpDamage = -value;
this.setTp(this.tp + value);
};
// 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;
};
// 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;
};
是在哪里改呢?
作者: 语义噪音 时间: 2015-12-3 08:39
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);
)
}
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);
)
}
作者: grammy416 时间: 2015-12-3 11:30
语义噪音 发表于 2015-12-3 08:39
Game_Action_prototype_executeHpDamage = Game_Action.prototype.executeHpDamage
Game_Action.prototype. ...
多谢多谢。虽然还是没效果。不过思路我知道了!再试试
欢迎光临 Project1 (https://rpg.blue/) |
Powered by Discuz! X3.1 |