Project1
标题: 物理伤害和魔法伤害是什么意思? [打印本页]
作者: nhycs01 时间: 2022-8-13 17:01
标题: 物理伤害和魔法伤害是什么意思?
在“特性”的“特殊能力值里面”,有一个“物理伤害”和“魔法伤害”。
请问这两个有什么作用?
如果单纯是字面意思,那么在上面“通常能力值”里面已经有“攻击力”和“魔法攻击力”了。它们的意义是什么?难道是翻译错误?我的是1.51版本。
请大佬指点一下。
作者: alexncf125 时间: 2022-8-13 17:22
本帖最后由 alexncf125 于 2022-8-13 18:49 编辑
在rpg_objects.js的Game_BattlerBase部分可以看见
// Physical Damage Rate
pdr: { get: function() { return this.sparam(6); }, configurable: true },
// Magical Damage Rate
mdr: { get: function() { return this.sparam(7); }, configurable: true },
// Physical Damage Rate
pdr: { get: function() { return this.sparam(6); }, configurable: true },
// Magical Damage Rate
mdr: { get: function() { return this.sparam(7); }, configurable: true },
pdr就是“特性”的“特殊能力值里面”的“物理伤害”
mdr就是“特性”的“特殊能力值里面”的“魔法伤害”
之后查找出调用了pdr和mdr的地方, 只发现
Game_Action.prototype.makeDamageValue = function(target, critical) {
var item = this.item();
var baseValue = this.evalDamageFormula(target);
var value = baseValue * this.calcElementRate(target);
if (this.isPhysical()) {
value *= target.pdr;
}
if (this.isMagical()) {
value *= target.mdr;
}
if (baseValue < 0) {
value *= target.rec;
}
if (critical) {
value = this.applyCritical(value);
}
value = this.applyVariance(value, item.damage.variance);
value = this.applyGuard(value, target);
value = Math.round(value);
return value;
};
Game_Action.prototype.makeDamageValue = function(target, critical) {
var item = this.item();
var baseValue = this.evalDamageFormula(target);
var value = baseValue * this.calcElementRate(target);
if (this.isPhysical()) {
value *= target.pdr;
}
if (this.isMagical()) {
value *= target.mdr;
}
if (baseValue < 0) {
value *= target.rec;
}
if (critical) {
value = this.applyCritical(value);
}
value = this.applyVariance(value, item.damage.variance);
value = this.applyGuard(value, target);
value = Math.round(value);
return value;
};
综合上述, 就是当角色A(使用者/user)用"命中类型为物理攻击"的技能打敌人B(目标/target)时, 计算伤害时会乘上敌人B(目标/target)的“特性 - 特殊能力 - 物理伤害”
作者: 流浪杰哥 时间: 2022-8-13 18:20
就是你承受的伤害比率,默认是100%
作者: 绿坝 时间: 2022-8-14 00:27
特性里的特殊能力值是说你承受的伤害比,物理伤害100%就是正常收到伤害,50%就收到的物理伤害减半,200%就是翻倍。
上面的通常能力值是说你角色的属性值。
欢迎光临 Project1 (https://rpg.blue/) |
Powered by Discuz! X3.1 |