Merge branch 'beta' into pursuit-impl

This commit is contained in:
Alex Van Liew 2024-08-15 14:59:07 -07:00
commit b057c144ac
29 changed files with 4255 additions and 4459 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

After

Width:  |  Height:  |  Size: 314 B

View File

@ -630,6 +630,7 @@ export const pokemonFormChanges: PokemonFormChanges = {
[Species.MELOETTA]: [ [Species.MELOETTA]: [
new SpeciesFormChange(Species.MELOETTA, "aria", "pirouette", new SpeciesFormChangePostMoveTrigger(Moves.RELIC_SONG), true), new SpeciesFormChange(Species.MELOETTA, "aria", "pirouette", new SpeciesFormChangePostMoveTrigger(Moves.RELIC_SONG), true),
new SpeciesFormChange(Species.MELOETTA, "pirouette", "aria", new SpeciesFormChangePostMoveTrigger(Moves.RELIC_SONG), true), new SpeciesFormChange(Species.MELOETTA, "pirouette", "aria", new SpeciesFormChangePostMoveTrigger(Moves.RELIC_SONG), true),
new SpeciesFormChange(Species.MELOETTA, "pirouette", "aria", new SpeciesFormChangeActiveTrigger(false), true)
], ],
[Species.GENESECT]: [ [Species.GENESECT]: [
new SpeciesFormChange(Species.GENESECT, "", "shock", new SpeciesFormChangeItemTrigger(FormChangeItem.SHOCK_DRIVE)), new SpeciesFormChange(Species.GENESECT, "", "shock", new SpeciesFormChangeItemTrigger(FormChangeItem.SHOCK_DRIVE)),

View File

@ -1870,7 +1870,7 @@ export function initSpecies() {
), ),
new PokemonSpecies(Species.MELOETTA, 5, false, false, true, "Melody Pokémon", Type.NORMAL, Type.PSYCHIC, 0.6, 6.5, Abilities.SERENE_GRACE, Abilities.NONE, Abilities.NONE, 600, 100, 77, 77, 128, 128, 90, 3, 100, 270, GrowthRate.SLOW, null, false, true, new PokemonSpecies(Species.MELOETTA, 5, false, false, true, "Melody Pokémon", Type.NORMAL, Type.PSYCHIC, 0.6, 6.5, Abilities.SERENE_GRACE, Abilities.NONE, Abilities.NONE, 600, 100, 77, 77, 128, 128, 90, 3, 100, 270, GrowthRate.SLOW, null, false, true,
new PokemonForm("Aria Forme", "aria", Type.NORMAL, Type.PSYCHIC, 0.6, 6.5, Abilities.SERENE_GRACE, Abilities.NONE, Abilities.NONE, 600, 100, 77, 77, 128, 128, 90, 3, 100, 270, false, null, true), new PokemonForm("Aria Forme", "aria", Type.NORMAL, Type.PSYCHIC, 0.6, 6.5, Abilities.SERENE_GRACE, Abilities.NONE, Abilities.NONE, 600, 100, 77, 77, 128, 128, 90, 3, 100, 270, false, null, true),
new PokemonForm("Pirouette Forme", "pirouette", Type.NORMAL, Type.FIGHTING, 0.6, 6.5, Abilities.SERENE_GRACE, Abilities.NONE, Abilities.NONE, 600, 100, 128, 90, 77, 77, 128, 3, 100, 270, false, null, true), new PokemonForm("Pirouette Forme", "pirouette", Type.NORMAL, Type.FIGHTING, 0.6, 6.5, Abilities.SERENE_GRACE, Abilities.NONE, Abilities.NONE, 600, 100, 128, 90, 77, 77, 128, 3, 100, 270),
), ),
new PokemonSpecies(Species.GENESECT, 5, false, false, true, "Paleozoic Pokémon", Type.BUG, Type.STEEL, 1.5, 82.5, Abilities.DOWNLOAD, Abilities.NONE, Abilities.NONE, 600, 71, 120, 95, 120, 95, 99, 3, 0, 300, GrowthRate.SLOW, null, false, true, new PokemonSpecies(Species.GENESECT, 5, false, false, true, "Paleozoic Pokémon", Type.BUG, Type.STEEL, 1.5, 82.5, Abilities.DOWNLOAD, Abilities.NONE, Abilities.NONE, 600, 71, 120, 95, 120, 95, 99, 3, 0, 300, GrowthRate.SLOW, null, false, true,
new PokemonForm("Normal", "", Type.BUG, Type.STEEL, 1.5, 82.5, Abilities.DOWNLOAD, Abilities.NONE, Abilities.NONE, 600, 71, 120, 95, 120, 95, 99, 3, 0, 300, false, null, true), new PokemonForm("Normal", "", Type.BUG, Type.STEEL, 1.5, 82.5, Abilities.DOWNLOAD, Abilities.NONE, Abilities.NONE, 600, 71, 120, 95, 120, 95, 99, 3, 0, 300, false, null, true),

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Incarnate", "landorusIncarnate": "Incarnate",
"keldeoOrdinary": "Ordinary", "keldeoOrdinary": "Ordinary",
"meloettaAria": "Aria", "meloettaAria": "Aria",
"meloettaPirouette": "Pirouette",
// 6G // 6G
"froakieBattleBond": "Battle Bond", "froakieBattleBond": "Battle Bond",
"scatterbugMeadow": "Meadow", "scatterbugMeadow": "Meadow",

View File

@ -89,7 +89,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Inkarnationsform", "landorusIncarnate": "Inkarnationsform",
"keldeoOrdinary": "Standardform", "keldeoOrdinary": "Standardform",
"meloettaAria": "Gesangsform", "meloettaAria": "Gesangsform",
"meloettaPirouette": "Tanzform",
// 6G // 6G
"froakieBattleBond": "Ash-Form", "froakieBattleBond": "Ash-Form",
"scatterbugMeadow": "Blumenmeermuster", "scatterbugMeadow": "Blumenmeermuster",

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Incarnate", "landorusIncarnate": "Incarnate",
"keldeoOrdinary": "Ordinary", "keldeoOrdinary": "Ordinary",
"meloettaAria": "Aria", "meloettaAria": "Aria",
"meloettaPirouette": "Pirouette",
// 6G // 6G
"froakieBattleBond": "Battle Bond", "froakieBattleBond": "Battle Bond",
"scatterbugMeadow": "Meadow", "scatterbugMeadow": "Meadow",

View File

@ -87,8 +87,7 @@ export const pokemonForm: SimpleTranslationEntries = {
"thundurusIncarnate": "Incarnate", "thundurusIncarnate": "Incarnate",
"landorusIncarnate": "Incarnate", "landorusIncarnate": "Incarnate",
"keldeoOrdinary": "Ordinary", "keldeoOrdinary": "Ordinary",
"meloettaAria": "Lírica", "meloettaAria": "Aria",
"meloettaPirouette": "Danza",
// 6G // 6G
"froakieBattleBond": "Fuerte Afecto", "froakieBattleBond": "Fuerte Afecto",
"scatterbugMeadow": "Floral", "scatterbugMeadow": "Floral",

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Avatar", "landorusIncarnate": "Avatar",
"keldeoOrdinary": "Normal", "keldeoOrdinary": "Normal",
"meloettaAria": "Chant", "meloettaAria": "Chant",
"meloettaPirouette": "Danse",
// 6G // 6G
"froakieBattleBond": "Synergie", "froakieBattleBond": "Synergie",
"scatterbugMeadow": "Floraison", "scatterbugMeadow": "Floraison",

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Incarnazione", "landorusIncarnate": "Incarnazione",
"keldeoOrdinary": "Normale", "keldeoOrdinary": "Normale",
"meloettaAria": "Canto", "meloettaAria": "Canto",
"meloettaPirouette": "Danza",
// 6G // 6G
"froakieBattleBond": "Morfosintonia", "froakieBattleBond": "Morfosintonia",
"scatterbugMeadow": "Giardinfiore", "scatterbugMeadow": "Giardinfiore",

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Incarnate", "landorusIncarnate": "Incarnate",
"keldeoOrdinary": "Ordinary", "keldeoOrdinary": "Ordinary",
"meloettaAria": "Aria", "meloettaAria": "Aria",
"meloettaPirouette": "Pirouette",
// 6G // 6G
"froakieBattleBond": "Battle Bond", "froakieBattleBond": "Battle Bond",
"scatterbugMeadow": "Meadow", "scatterbugMeadow": "Meadow",

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "화신폼", "landorusIncarnate": "화신폼",
"keldeoOrdinary": "평상시 모습", "keldeoOrdinary": "평상시 모습",
"meloettaAria": "보이스폼", "meloettaAria": "보이스폼",
"meloettaPirouette": "스텝폼",
// 6G // 6G
"froakieBattleBond": "유대변화", "froakieBattleBond": "유대변화",
"scatterbugMeadow": "화원의 모양", "scatterbugMeadow": "화원의 모양",

View File

@ -89,7 +89,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Incarnate", "landorusIncarnate": "Incarnate",
"keldeoOrdinary": "Ordinary", "keldeoOrdinary": "Ordinary",
"meloettaAria": "Aria", "meloettaAria": "Aria",
"meloettaPirouette": "Pirueta",
// 6G // 6G
"froakieBattleBond": "Vínculo de Batalha", "froakieBattleBond": "Vínculo de Batalha",
"scatterbugMeadow": "Prado", "scatterbugMeadow": "Prado",

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "化身", "landorusIncarnate": "化身",
"keldeoOrdinary": "通常", "keldeoOrdinary": "通常",
"meloettaAria": "歌声", "meloettaAria": "歌声",
"meloettaPirouette": "Pirouette",
// 6G // 6G
"froakieBattleBond": "牵绊变身", "froakieBattleBond": "牵绊变身",
"scatterbugMeadow": "花园花纹", "scatterbugMeadow": "花园花纹",

View File

@ -88,7 +88,6 @@ export const pokemonForm: SimpleTranslationEntries = {
"landorusIncarnate": "Incarnate", "landorusIncarnate": "Incarnate",
"keldeoOrdinary": "Ordinary", "keldeoOrdinary": "Ordinary",
"meloettaAria": "Aria", "meloettaAria": "Aria",
"meloettaPirouette": "Pirouette",
// 6G // 6G
"froakieBattleBond": "Battle Bond", "froakieBattleBond": "Battle Bond",
"scatterbugMeadow": "Meadow", "scatterbugMeadow": "Meadow",

View File

@ -2132,7 +2132,7 @@ export class CommandPhase extends FieldPhase {
}), }),
null, null,
() => { () => {
this.scene.ui.showText(null, 0); this.scene.ui.showText("", 0);
if (!isSwitch) { if (!isSwitch) {
this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex); this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex);
} }
@ -2142,7 +2142,7 @@ export class CommandPhase extends FieldPhase {
this.scene.ui.setMode(Mode.MESSAGE); this.scene.ui.setMode(Mode.MESSAGE);
} }
this.scene.ui.showText(trappedAbMessages[0], null, () => { this.scene.ui.showText(trappedAbMessages[0], null, () => {
this.scene.ui.showText(null, 0); this.scene.ui.showText("", 0);
if (!isSwitch) { if (!isSwitch) {
this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex); this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex);
} }

View File

@ -382,7 +382,7 @@ export default class PartyUiHandler extends MessageUiHandler {
this.clearOptions(); this.clearOptions();
} else { } else {
this.clearOptions(); this.clearOptions();
this.showText(filterResult as string, undefined, () => this.showText(null, 0), undefined, true); this.showText(filterResult as string, undefined, () => this.showText("", 0), undefined, true);
} }
ui.playSelect(); ui.playSelect();
return true; return true;
@ -449,7 +449,7 @@ export default class PartyUiHandler extends MessageUiHandler {
return true; return true;
} else { } else {
this.clearOptions(); this.clearOptions();
this.showText(filterResult as string, undefined, () => this.showText(null, 0), undefined, true); this.showText(filterResult as string, undefined, () => this.showText("", 0), undefined, true);
} }
} else if (option === PartyOption.SUMMARY) { } else if (option === PartyOption.SUMMARY) {
ui.playSelect(); ui.playSelect();
@ -459,7 +459,7 @@ export default class PartyUiHandler extends MessageUiHandler {
this.clearOptions(); this.clearOptions();
ui.playSelect(); ui.playSelect();
pokemon.pauseEvolutions = false; pokemon.pauseEvolutions = false;
this.showText(i18next.t("partyUiHandler:unpausedEvolutions", { pokemonName: getPokemonNameWithAffix(pokemon) }), undefined, () => this.showText(null, 0), null, true); this.showText(i18next.t("partyUiHandler:unpausedEvolutions", { pokemonName: getPokemonNameWithAffix(pokemon) }), undefined, () => this.showText("", 0), null, true);
} else if (option === PartyOption.UNSPLICE) { } else if (option === PartyOption.UNSPLICE) {
this.clearOptions(); this.clearOptions();
ui.playSelect(); ui.playSelect();
@ -472,12 +472,12 @@ export default class PartyUiHandler extends MessageUiHandler {
ui.setMode(Mode.PARTY); ui.setMode(Mode.PARTY);
this.showText(i18next.t("partyUiHandler:wasReverted", { fusionName: fusionName, pokemonName: pokemon.name }), undefined, () => { this.showText(i18next.t("partyUiHandler:wasReverted", { fusionName: fusionName, pokemonName: pokemon.name }), undefined, () => {
ui.setMode(Mode.PARTY); ui.setMode(Mode.PARTY);
this.showText(null, 0); this.showText("", 0);
}, null, true); }, null, true);
}); });
}, () => { }, () => {
ui.setMode(Mode.PARTY); ui.setMode(Mode.PARTY);
this.showText(null, 0); this.showText("", 0);
}); });
}); });
} else if (option === PartyOption.RELEASE) { } else if (option === PartyOption.RELEASE) {
@ -490,11 +490,11 @@ export default class PartyUiHandler extends MessageUiHandler {
this.doRelease(this.cursor); this.doRelease(this.cursor);
}, () => { }, () => {
ui.setMode(Mode.PARTY); ui.setMode(Mode.PARTY);
this.showText(null, 0); this.showText("", 0);
}); });
}); });
} else { } else {
this.showText(i18next.t("partyUiHandler:releaseInBattle"), null, () => this.showText(null, 0), null, true); this.showText(i18next.t("partyUiHandler:releaseInBattle"), null, () => this.showText("", 0), null, true);
} }
return true; return true;
} else if (option === PartyOption.RENAME) { } else if (option === PartyOption.RENAME) {
@ -730,8 +730,8 @@ export default class PartyUiHandler extends MessageUiHandler {
return changed; return changed;
} }
showText(text: string | null, delay?: integer | null, callback?: Function | null, callbackDelay?: integer | null, prompt?: boolean | null, promptDelay?: integer | null) { showText(text: string, delay?: integer | null, callback?: Function | null, callbackDelay?: integer | null, prompt?: boolean | null, promptDelay?: integer | null) {
if (text === null) { if (text.length === 0) {
text = defaultMessage; text = defaultMessage;
} }
@ -1057,7 +1057,7 @@ export default class PartyUiHandler extends MessageUiHandler {
this.selectCallback = null; this.selectCallback = null;
selectCallback && selectCallback(this.cursor, PartyOption.RELEASE); selectCallback && selectCallback(this.cursor, PartyOption.RELEASE);
} }
this.showText(null, 0); this.showText("", 0);
}, null, true); }, null, true);
} }
@ -1119,7 +1119,7 @@ export default class PartyUiHandler extends MessageUiHandler {
this.eraseOptionsCursor(); this.eraseOptionsCursor();
this.partyMessageBox.setSize(262, 30); this.partyMessageBox.setSize(262, 30);
this.showText(null, 0); this.showText("", 0);
} }
eraseOptionsCursor() { eraseOptionsCursor() {

View File

@ -271,8 +271,8 @@ export default class UI extends Phaser.GameObjects.Container {
return handler.processInput(button); return handler.processInput(button);
} }
showText(text: string | null, delay?: integer | null, callback?: Function | null, callbackDelay?: integer | null, prompt?: boolean | null, promptDelay?: integer | null): void { showText(text: string, delay?: integer | null, callback?: Function | null, callbackDelay?: integer | null, prompt?: boolean | null, promptDelay?: integer | null): void {
if (text && prompt && text.indexOf("$") > -1) { if (prompt && text.indexOf("$") > -1) {
const messagePages = text.split(/\$/g).map(m => m.trim()); const messagePages = text.split(/\$/g).map(m => m.trim());
let showMessageAndCallback = () => callback && callback(); let showMessageAndCallback = () => callback && callback();
for (let p = messagePages.length - 1; p >= 0; p--) { for (let p = messagePages.length - 1; p >= 0; p--) {
@ -282,17 +282,12 @@ export default class UI extends Phaser.GameObjects.Container {
showMessageAndCallback(); showMessageAndCallback();
} else { } else {
const handler = this.getHandler(); const handler = this.getHandler();
if (handler instanceof PartyUiHandler) { if (handler instanceof MessageUiHandler) {
(handler as PartyUiHandler).showText(text, delay, callback, callbackDelay, prompt, promptDelay); (handler as MessageUiHandler).showText(text, delay, callback, callbackDelay, prompt, promptDelay);
return; } else {
} this.getMessageHandler().showText(text, delay, callback, callbackDelay, prompt, promptDelay);
if (text) {
if (handler instanceof MessageUiHandler) {
(handler as MessageUiHandler).showText(text, delay, callback, callbackDelay, prompt, promptDelay);
} else {
this.getMessageHandler().showText(text, delay, callback, callbackDelay, prompt, promptDelay);
}
} }
} }
} }