#--------------------------------------------------------------------------
# ● 判断吸收数值 2014-4-27添加
#--------------------------------------------------------------------------
def drain_ratio
if $game_actors[3].equips[0].id == 64 and !$game_actors[3].last_skill.object
return 0.25
end
return 1
end
def aaa
msgbox Game_Battler.current_action
end
#--------------------------------------------------------------------------
# ● 生成伤害
#--------------------------------------------------------------------------
def make_damage(value, item)
@critical = false if value == 0
@hp_damage = value if item.damage.to_hp?
@mp_damage = value if item.damage.to_mp?
@mp_damage = [@battler.mp, @mp_damage].min
@hp_drain = (@hp_damage*drain_ratio).to_i if item.damage.drain? #这里放了drain_ratio
@mp_drain = @mp_damage if item.damage.drain?
@hp_drain = [@battler.hp, @hp_drain].min
@success = true if item.damage.to_hp? || @mp_damage != 0
end