mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-15 13:31:40 +00:00
[UI/UX] Change label for music settings (#5053)
Changes from "Consistent/Mixed" to "Gen V + PMD"/"All Gens" Update `MusicPreferences` enum * Update locales submodule
This commit is contained in:
parent
6946abadb8
commit
1b6374f469
@ -1 +1 @@
|
||||
Subproject commit 6c6f0af398ae11f8d96c6ac064f171d927812c85
|
||||
Subproject commit b28ba1255c8db12cb07947f88635cb6be0143a15
|
@ -174,7 +174,7 @@ export default class BattleScene extends SceneBase {
|
||||
public uiTheme: UiTheme = UiTheme.DEFAULT;
|
||||
public windowType: integer = 0;
|
||||
public experimentalSprites: boolean = false;
|
||||
public musicPreference: number = MusicPreference.MIXED;
|
||||
public musicPreference: number = MusicPreference.ALLGENS;
|
||||
public moveAnimations: boolean = true;
|
||||
public expGainsSpeed: ExpGainsSpeed = ExpGainsSpeed.DEFAULT;
|
||||
public skipSeenDialogues: boolean = false;
|
||||
|
@ -222,7 +222,7 @@ export default class Battle {
|
||||
if (!this.started && this.trainer?.config.encounterBgm && this.trainer?.getEncounterMessages()?.length) {
|
||||
return `encounter_${this.trainer?.getEncounterBgm()}`;
|
||||
}
|
||||
if (scene.musicPreference === MusicPreference.CONSISTENT) {
|
||||
if (scene.musicPreference === MusicPreference.GENFIVE) {
|
||||
return this.trainer?.getBattleBgm() ?? null;
|
||||
} else {
|
||||
return this.trainer?.getMixedBattleBgm() ?? null;
|
||||
@ -239,7 +239,7 @@ export default class Battle {
|
||||
return "battle_final_encounter";
|
||||
}
|
||||
if (pokemon.species.legendary || pokemon.species.subLegendary || pokemon.species.mythical) {
|
||||
if (scene.musicPreference === MusicPreference.CONSISTENT) {
|
||||
if (scene.musicPreference === MusicPreference.GENFIVE) {
|
||||
switch (pokemon.species.speciesId) {
|
||||
case Species.REGIROCK:
|
||||
case Species.REGICE:
|
||||
@ -256,7 +256,7 @@ export default class Battle {
|
||||
}
|
||||
return "battle_legendary_unova";
|
||||
}
|
||||
} else if (scene.musicPreference === MusicPreference.MIXED) {
|
||||
} else if (scene.musicPreference === MusicPreference.ALLGENS) {
|
||||
switch (pokemon.species.speciesId) {
|
||||
case Species.ARTICUNO:
|
||||
case Species.ZAPDOS:
|
||||
|
@ -107,7 +107,7 @@ export const GlobalTradeSystemEncounter: MysteryEncounter =
|
||||
|
||||
// Load bgm
|
||||
let bgmKey: string;
|
||||
if (scene.musicPreference === MusicPreference.CONSISTENT) {
|
||||
if (scene.musicPreference === MusicPreference.GENFIVE) {
|
||||
bgmKey = "mystery_encounter_gen_5_gts";
|
||||
scene.loadBgm(bgmKey, `${bgmKey}.mp3`);
|
||||
} else {
|
||||
|
@ -181,8 +181,8 @@ export const SettingKeys = {
|
||||
};
|
||||
|
||||
export enum MusicPreference {
|
||||
CONSISTENT,
|
||||
MIXED
|
||||
GENFIVE,
|
||||
ALLGENS
|
||||
}
|
||||
|
||||
/**
|
||||
@ -670,15 +670,15 @@ export const Setting: Array<Setting> = [
|
||||
label: i18next.t("settings:musicPreference"),
|
||||
options: [
|
||||
{
|
||||
value: "Consistent",
|
||||
label: i18next.t("settings:consistent")
|
||||
value: "Gen V + PMD",
|
||||
label: i18next.t("settings:musicGenFive")
|
||||
},
|
||||
{
|
||||
value: "Mixed",
|
||||
label: i18next.t("settings:mixed")
|
||||
value: "All Gens",
|
||||
label: i18next.t("settings:musicAllGens")
|
||||
}
|
||||
],
|
||||
default: MusicPreference.MIXED,
|
||||
default: MusicPreference.ALLGENS,
|
||||
type: SettingType.AUDIO,
|
||||
requireReload: true
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user