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?
# HIGHLIGHT
if @result.critical
if user.actor?
value *= $game_variables[user.id + 99]
else
value = apply_critical(value)
end
end
# HIGHLIGHT
value = apply_variance(value, item.damage.variance)
value = apply_guard(value)
@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?
# HIGHLIGHT
if @result.critical
if user.actor?
value *= $game_variables[user.id + 99]
else
value = apply_critical(value)
end
end
# HIGHLIGHT
value = apply_variance(value, item.damage.variance)
value = apply_guard(value)
@result.make_damage(value.to_i, item)
end
end