37 lines
1.5 KiB
Ruby
37 lines
1.5 KiB
Ruby
# ContinueBGM_on_Battle
|
|
#「戦闘時BGM継続」 (作成日……2011/12/25)
|
|
#______________________________________________________________________________
|
|
|
|
module ContinueBGM
|
|
# 戦闘BGMの再生および戦闘後のマップBGMの再生を禁止するスイッチ (ID)
|
|
SWITCH_ID = 12
|
|
end
|
|
#______________________________________________________________________________
|
|
|
|
module BattleManager
|
|
class << self
|
|
alias continue_bgm_on_battle__save_bgm_and_bgs save_bgm_and_bgs
|
|
def save_bgm_and_bgs
|
|
return if $game_switches[ContinueBGM::SWITCH_ID]
|
|
continue_bgm_on_battle__save_bgm_and_bgs
|
|
end
|
|
#------------------------------------------------------------------------
|
|
alias continue_bgm_on_battle__play_battle_bgm play_battle_bgm
|
|
def play_battle_bgm
|
|
return if $game_switches[ContinueBGM::SWITCH_ID]
|
|
continue_bgm_on_battle__play_battle_bgm
|
|
end
|
|
#------------------------------------------------------------------------
|
|
alias continue_bgm_on_battle__play_battle_end_me play_battle_end_me
|
|
def play_battle_end_me
|
|
return if $game_switches[ContinueBGM::SWITCH_ID]
|
|
continue_bgm_on_battle__play_battle_end_me
|
|
end
|
|
#------------------------------------------------------------------------
|
|
alias continue_bgm_on_battle__replay_bgm_and_bgs replay_bgm_and_bgs
|
|
def replay_bgm_and_bgs
|
|
return if $game_switches[ContinueBGM::SWITCH_ID]
|
|
continue_bgm_on_battle__replay_bgm_and_bgs
|
|
end
|
|
end
|
|
end
|