#--------------------------------------------------------------------------
# ● 计算伤害
#--------------------------------------------------------------------------
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)
@result.make_damage(value.to_i, item)
#-------------------------
# ● 祈祷
#-------------------------
if self.skills.include?($data_skills[300])&&self.is_a?(Game_Actor)
if rand(100)<100
p "被攻击后有HP:#{$game_party.members[0].hp}"
$game_party.members.each {|actor| actor.hp += 5000}
p"├祈祷发动,生命值增加5000"
p "回复后HP:#{$game_party.members[0].hp}"
else
p"├×祈祷#{bcf}"
end
end
end