mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-29 11:42:21 +02:00
cut down excess ME track length and loop properly
This commit is contained in:
parent
f44f674fb5
commit
ed1a34fa84
BIN
public/audio/bgm/mystery_encounter_delibirdy.mp3
Normal file
BIN
public/audio/bgm/mystery_encounter_delibirdy.mp3
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2157,6 +2157,16 @@ export default class BattleScene extends SceneBase {
|
|||||||
return 13.13;
|
return 13.13;
|
||||||
case "battle_macro_boss": //SWSH Rose Battle
|
case "battle_macro_boss": //SWSH Rose Battle
|
||||||
return 11.42;
|
return 11.42;
|
||||||
|
case "mystery_encounter_gen_5_gts": // BW GTS
|
||||||
|
return 8.52;
|
||||||
|
case "mystery_encounter_gen_6_gts": // XY GTS
|
||||||
|
return 9.24;
|
||||||
|
case "mystery_encounter_fun_and_games": // EoS Guildmaster Wigglytuff
|
||||||
|
return 4.78;
|
||||||
|
case "mystery_encounter_weird_dream": // EoS Temporal Spire
|
||||||
|
return 41.42;
|
||||||
|
case "mystery_encounter_delibirdy": // Firel Delibirdy
|
||||||
|
return 82.28;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -93,6 +93,17 @@ export const DelibirdyEncounter: MysteryEncounter =
|
|||||||
.withOnInit((scene: BattleScene) => {
|
.withOnInit((scene: BattleScene) => {
|
||||||
const encounter = scene.currentBattle.mysteryEncounter!;
|
const encounter = scene.currentBattle.mysteryEncounter!;
|
||||||
encounter.setDialogueToken("delibirdName", getPokemonSpecies(Species.DELIBIRD).getName());
|
encounter.setDialogueToken("delibirdName", getPokemonSpecies(Species.DELIBIRD).getName());
|
||||||
|
|
||||||
|
scene.loadBgm("mystery_encounter_delibirdy", "mystery_encounter_delibirdy.mp3");
|
||||||
|
return true;
|
||||||
|
})
|
||||||
|
.withOnVisualsStart((scene: BattleScene) => {
|
||||||
|
// Change the bgm
|
||||||
|
scene.fadeOutBgm(2000, false);
|
||||||
|
scene.time.delayedCall(2000, () => {
|
||||||
|
scene.playBgm("mystery_encounter_delibirdy");
|
||||||
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
.withOption(
|
.withOption(
|
||||||
|
@ -151,5 +151,6 @@
|
|||||||
"mystery_encounter_weird_dream": "PMD EoS Temporal Spire",
|
"mystery_encounter_weird_dream": "PMD EoS Temporal Spire",
|
||||||
"mystery_encounter_fun_and_games": "PMD EoS Guildmaster Wigglytuff",
|
"mystery_encounter_fun_and_games": "PMD EoS Guildmaster Wigglytuff",
|
||||||
"mystery_encounter_gen_5_gts": "BW GTS",
|
"mystery_encounter_gen_5_gts": "BW GTS",
|
||||||
"mystery_encounter_gen_6_gts": "XY GTS"
|
"mystery_encounter_gen_6_gts": "XY GTS",
|
||||||
|
"mystery_encounter_delibirdy": "Firel - Delibir-dy!"
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ class DefaultOverrides {
|
|||||||
/** 1 to 256, set to null to ignore */
|
/** 1 to 256, set to null to ignore */
|
||||||
readonly MYSTERY_ENCOUNTER_RATE_OVERRIDE: number | null = null;
|
readonly MYSTERY_ENCOUNTER_RATE_OVERRIDE: number | null = null;
|
||||||
readonly MYSTERY_ENCOUNTER_TIER_OVERRIDE: MysteryEncounterTier | null = null;
|
readonly MYSTERY_ENCOUNTER_TIER_OVERRIDE: MysteryEncounterTier | null = null;
|
||||||
readonly MYSTERY_ENCOUNTER_OVERRIDE: MysteryEncounterType | null = null;
|
readonly MYSTERY_ENCOUNTER_OVERRIDE: MysteryEncounterType | null = MysteryEncounterType.DELIBIRDY;
|
||||||
|
|
||||||
// -------------------------
|
// -------------------------
|
||||||
// MODIFIER / ITEM OVERRIDES
|
// MODIFIER / ITEM OVERRIDES
|
||||||
|
Loading…
Reference in New Issue
Block a user