#--------------------------------------------------------------------------
# 伤害计算
#--------------------------------------------------------------------------
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, user) if @result.critical
value = apply_variance(value, item.damage.variance)
value = apply_guard(value)
@result.make_damage(value.to_i, item)
# HP吸收
if skill_id = 66
return user.hp = user.hp + self.hp if damage < self.mhp
retrun self.hp = self.hp - self.mhp if damage < self.mhp
end
end