782| 2
|
[有事请教] 装备某个武器后,最终伤害固定加1000点 |
20星屑
最佳答案Game_Action.prototype.evalDamageFormula = function(target) {
try {
var item = this.item();
var a = this.subject();
var b = target;
var v = $gameVariables._data;
var sign = ([3, 4].contains(item.damage.type) ? -1 : 1);
var value = Math.max(eval(item.damage.formula), 0) * sign;
if (sign > 0 && a.isEquipped($dataWeapons[1])) value += 1000;
...
| ||
| ||
| ||
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-17 06:03
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.