mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 13:59:27 +02:00
Merge branch 'beta' into sprite-beta
This commit is contained in:
commit
1a51bcfe61
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "pokemon-rogue-battle",
|
"name": "pokemon-rogue-battle",
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pokemon-rogue-battle",
|
"name": "pokemon-rogue-battle",
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@material/material-color-utilities": "^0.2.7",
|
"@material/material-color-utilities": "^0.2.7",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "pokemon-rogue-battle",
|
"name": "pokemon-rogue-battle",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 6c6f0af398ae11f8d96c6ac064f171d927812c85
|
Subproject commit b28ba1255c8db12cb07947f88635cb6be0143a15
|
@ -174,7 +174,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
public uiTheme: UiTheme = UiTheme.DEFAULT;
|
public uiTheme: UiTheme = UiTheme.DEFAULT;
|
||||||
public windowType: integer = 0;
|
public windowType: integer = 0;
|
||||||
public experimentalSprites: boolean = false;
|
public experimentalSprites: boolean = false;
|
||||||
public musicPreference: number = MusicPreference.MIXED;
|
public musicPreference: number = MusicPreference.ALLGENS;
|
||||||
public moveAnimations: boolean = true;
|
public moveAnimations: boolean = true;
|
||||||
public expGainsSpeed: ExpGainsSpeed = ExpGainsSpeed.DEFAULT;
|
public expGainsSpeed: ExpGainsSpeed = ExpGainsSpeed.DEFAULT;
|
||||||
public skipSeenDialogues: boolean = false;
|
public skipSeenDialogues: boolean = false;
|
||||||
|
@ -222,7 +222,7 @@ export default class Battle {
|
|||||||
if (!this.started && this.trainer?.config.encounterBgm && this.trainer?.getEncounterMessages()?.length) {
|
if (!this.started && this.trainer?.config.encounterBgm && this.trainer?.getEncounterMessages()?.length) {
|
||||||
return `encounter_${this.trainer?.getEncounterBgm()}`;
|
return `encounter_${this.trainer?.getEncounterBgm()}`;
|
||||||
}
|
}
|
||||||
if (scene.musicPreference === MusicPreference.CONSISTENT) {
|
if (scene.musicPreference === MusicPreference.GENFIVE) {
|
||||||
return this.trainer?.getBattleBgm() ?? null;
|
return this.trainer?.getBattleBgm() ?? null;
|
||||||
} else {
|
} else {
|
||||||
return this.trainer?.getMixedBattleBgm() ?? null;
|
return this.trainer?.getMixedBattleBgm() ?? null;
|
||||||
@ -239,7 +239,7 @@ export default class Battle {
|
|||||||
return "battle_final_encounter";
|
return "battle_final_encounter";
|
||||||
}
|
}
|
||||||
if (pokemon.species.legendary || pokemon.species.subLegendary || pokemon.species.mythical) {
|
if (pokemon.species.legendary || pokemon.species.subLegendary || pokemon.species.mythical) {
|
||||||
if (scene.musicPreference === MusicPreference.CONSISTENT) {
|
if (scene.musicPreference === MusicPreference.GENFIVE) {
|
||||||
switch (pokemon.species.speciesId) {
|
switch (pokemon.species.speciesId) {
|
||||||
case Species.REGIROCK:
|
case Species.REGIROCK:
|
||||||
case Species.REGICE:
|
case Species.REGICE:
|
||||||
@ -256,7 +256,7 @@ export default class Battle {
|
|||||||
}
|
}
|
||||||
return "battle_legendary_unova";
|
return "battle_legendary_unova";
|
||||||
}
|
}
|
||||||
} else if (scene.musicPreference === MusicPreference.MIXED) {
|
} else if (scene.musicPreference === MusicPreference.ALLGENS) {
|
||||||
switch (pokemon.species.speciesId) {
|
switch (pokemon.species.speciesId) {
|
||||||
case Species.ARTICUNO:
|
case Species.ARTICUNO:
|
||||||
case Species.ZAPDOS:
|
case Species.ZAPDOS:
|
||||||
|
@ -107,7 +107,7 @@ export const GlobalTradeSystemEncounter: MysteryEncounter =
|
|||||||
|
|
||||||
// Load bgm
|
// Load bgm
|
||||||
let bgmKey: string;
|
let bgmKey: string;
|
||||||
if (scene.musicPreference === MusicPreference.CONSISTENT) {
|
if (scene.musicPreference === MusicPreference.GENFIVE) {
|
||||||
bgmKey = "mystery_encounter_gen_5_gts";
|
bgmKey = "mystery_encounter_gen_5_gts";
|
||||||
scene.loadBgm(bgmKey, `${bgmKey}.mp3`);
|
scene.loadBgm(bgmKey, `${bgmKey}.mp3`);
|
||||||
} else {
|
} else {
|
||||||
|
@ -770,8 +770,8 @@ export const pokemonFormChanges: PokemonFormChanges = {
|
|||||||
new SpeciesFormChange(Species.KYUREM, "", "white", new SpeciesFormChangeItemTrigger(FormChangeItem.LIGHT_STONE), false, getSpeciesDependentFormChangeCondition(Species.RESHIRAM))
|
new SpeciesFormChange(Species.KYUREM, "", "white", new SpeciesFormChangeItemTrigger(FormChangeItem.LIGHT_STONE), false, getSpeciesDependentFormChangeCondition(Species.RESHIRAM))
|
||||||
],
|
],
|
||||||
[Species.KELDEO]: [
|
[Species.KELDEO]: [
|
||||||
new SpeciesFormChange(Species.KELDEO, "ordinary", "resolute", new SpeciesFormChangeMoveLearnedTrigger(Moves.SECRET_SWORD)),
|
new SpeciesFormChange(Species.KELDEO, "ordinary", "resolute", new SpeciesFormChangeMoveLearnedTrigger(Moves.SECRET_SWORD), false, new SpeciesFormChangeCondition((p) => p.scene.gameMode.isDaily !== true)),
|
||||||
new SpeciesFormChange(Species.KELDEO, "resolute", "ordinary", new SpeciesFormChangeMoveLearnedTrigger(Moves.SECRET_SWORD, false))
|
new SpeciesFormChange(Species.KELDEO, "resolute", "ordinary", new SpeciesFormChangeMoveLearnedTrigger(Moves.SECRET_SWORD, false), false, new SpeciesFormChangeCondition((p) => p.scene.gameMode.isDaily !== true))
|
||||||
],
|
],
|
||||||
[Species.MELOETTA]: [
|
[Species.MELOETTA]: [
|
||||||
new SpeciesFormChange(Species.MELOETTA, "aria", "pirouette", new MeloettaFormChangePostMoveTrigger(Moves.RELIC_SONG), true),
|
new SpeciesFormChange(Species.MELOETTA, "aria", "pirouette", new MeloettaFormChangePostMoveTrigger(Moves.RELIC_SONG), true),
|
||||||
|
@ -181,8 +181,8 @@ export const SettingKeys = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export enum MusicPreference {
|
export enum MusicPreference {
|
||||||
CONSISTENT,
|
GENFIVE,
|
||||||
MIXED
|
ALLGENS
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -670,15 +670,15 @@ export const Setting: Array<Setting> = [
|
|||||||
label: i18next.t("settings:musicPreference"),
|
label: i18next.t("settings:musicPreference"),
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
value: "Consistent",
|
value: "Gen V + PMD",
|
||||||
label: i18next.t("settings:consistent")
|
label: i18next.t("settings:musicGenFive")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "Mixed",
|
value: "All Gens",
|
||||||
label: i18next.t("settings:mixed")
|
label: i18next.t("settings:musicAllGens")
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
default: MusicPreference.MIXED,
|
default: MusicPreference.ALLGENS,
|
||||||
type: SettingType.AUDIO,
|
type: SettingType.AUDIO,
|
||||||
requireReload: true
|
requireReload: true
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user