#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 5 : 显示伤害)
#--------------------------------------------------------------------------
def update_phase4_step5
# 隐藏帮助窗口
@help_window.visible = false
# 刷新状态窗口
@status_window.refresh
# 显示伤害
for target in @target_battlers
if target.damage != nil
target.damage_pop = true
end
end
# 移至步骤 6
#k_特殊武器begin...........................................
if @active_battler.is_a?(Game_Actor)
if wqpd(17) and @lianji == 1
if wqpd(18)
for target in @target_battlers
if target.damage != nil and target.damage != "Miss"
@active_battler.hp += target.damage
@active_battler.damage = 0 - target.damage
@active_battler.damage_pop = true
end
end
end
j = 0
for i in $game_troop.enemies
j += i.hp
end
@phase4_step = 2 if j != 0
@lianji -= 1
elsif wqpd(18)
for target in @target_battlers
if target.damage != nil and target.damage != "Miss"
@active_battler.hp += target.damage
@active_battler.damage = 0 - target.damage
@active_battler.damage_pop = true
end
end
@phase4_step = 6
@lianji = 1
else
@phase4_step = 6
@lianji = 1
end
else
@phase4_step = 6
end
#k_特殊武器over...........................................
end
def wqpd(id) #武器判定
return (@active_battler.weapon_id == 0 ? false :$data_weapons[@active_battler.weapon_id].element_set.include?(id) and (rand(100) < $data_system.elements[id].split(/,/)[1].to_i))
end