[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:
Madmadness65 2025-12-19 17:55:57 -06:00 committed by GitHub
parent 0cc3d2c566
commit 8efc05904e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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)