class Game_Battler def make_damage_value(user, item) value = item.damage.eval(user, self, $game_variables) value *= item_element_rate(user, item) value *= pdr if item.physical? value *= mdr if item.magical? value *= rec if item.damage.recover? value = apply_critical(value) if @result.critical value = apply_variance(value, item.damage.variance) value = apply_guard(value) # 除非技能为 20 号技能,否则将伤害存进 1 号变量 $game_variables[1] = value unless item == $data_skills[20] @result.make_damage(value.to_i, item) end end
class Game_Battler
def make_damage_value(user, item)
value = item.damage.eval(user, self, $game_variables)
value *= item_element_rate(user, item)
value *= pdr if item.physical?
value *= mdr if item.magical?
value *= rec if item.damage.recover?
value = apply_critical(value) if @result.critical
value = apply_variance(value, item.damage.variance)
value = apply_guard(value)
# 除非技能为 20 号技能,否则将伤害存进 1 号变量
$game_variables[1] = value unless item == $data_skills[20]
@result.make_damage(value.to_i, item)
end
end
然后 20 号技能公式就写 v[1] 就好了~
未测试~ |