mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-24 10:39:15 +01:00
[Audio] Add winter title BGM loop point & play during winter season (#6864)
Add winter title BGM loop point & play during winter season The winter title BGM will play during the entirety of December and the first half of January, regardless of if an event is happening or not.
This commit is contained in:
parent
0cc3d2c566
commit
8efc05904e
@ -2376,6 +2376,8 @@ export class BattleScene extends SceneBase {
|
||||
switch (bgmName) {
|
||||
case "title": //Firel PokéRogue Title
|
||||
return 46.5;
|
||||
case "winter_title": //Andr06 Winter Title
|
||||
return 20.57;
|
||||
case "battle_kanto_champion": //B2W2 Kanto Champion Battle
|
||||
return 13.95;
|
||||
case "battle_johto_champion": //B2W2 Johto Champion Battle
|
||||
|
||||
@ -37,7 +37,12 @@ export class TitlePhase extends Phase {
|
||||
globalScene.ui.clearText();
|
||||
globalScene.ui.fadeIn(250);
|
||||
|
||||
globalScene.playBgm("title", true);
|
||||
const now = new Date();
|
||||
if (now.getMonth() === 11 || (now.getMonth() === 0 && now.getDate() <= 15)) {
|
||||
globalScene.playBgm("winter_title", true);
|
||||
} else {
|
||||
globalScene.playBgm("title", true);
|
||||
}
|
||||
|
||||
globalScene.gameData
|
||||
.getSession(loggedInUser?.lastSessionSlot ?? -1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user