Tweaked Jukebox functionality, simplified code relating to night versions of BGMs

This commit is contained in:
Maruno17
2022-01-30 20:40:07 +00:00
parent 0465572ca0
commit 6c5c54a7d3
3 changed files with 31 additions and 32 deletions

View File

@@ -54,12 +54,8 @@ class Scene_Map
playingBGS = $game_system.playing_bgs
return if !playingBGM && !playingBGS
map = load_data(sprintf("Data/Map%03d.rxdata", mapid))
if playingBGM && map.autoplay_bgm
if (PBDayNight.isNight? rescue false)
pbBGMFade(0.8) if playingBGM.name != map.bgm.name && playingBGM.name != map.bgm.name + "_n"
elsif playingBGM.name != map.bgm.name
pbBGMFade(0.8)
end
if playingBGM && map.autoplay_bgm && playingBGM.name != map.bgm_name
pbBGMFade(0.8)
end
if playingBGS && map.autoplay_bgs && playingBGS.name != map.bgs.name
pbBGMFade(0.8)