#==============================================================================
# ■ Scene_Map
# ■ Scene_Battle
#--------------------------------------------------------------------------
#战斗开始时暂停当前计时器,结束时重新开始
#by weewcom 2017/1/13
#==============================================================================
class Scene_Map < Scene_Base
#--------------------------------------------------------------------------
# ● 重定义切换战斗画面前的处理
#--------------------------------------------------------------------------
alias old_pre_battle_scene pre_battle_scene
def pre_battle_scene
old_pre_battle_scene
if $game_timer.working?
$timer_count = $game_timer.sec
$game_timer.stop
end
end
end
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# ● 重定义战斗结束时
#--------------------------------------------------------------------------
alias old_terminate terminate
def terminate
old_terminate
if $timer_count > 0
$game_timer.start($timer_count * Graphics.frame_rate)
$timer_count = 0
end
end
end