add delibird-y encounter

This commit is contained in:
ImperialSympathizer 2024-07-25 21:34:17 -04:00
parent b5bd2dd058
commit 3ecf02d425
2 changed files with 4 additions and 2 deletions

View File

@ -106,7 +106,7 @@ export const PokemonSalesmanEncounter: IMysteryEncounter =
}) })
.withOption( .withOption(
new MysteryEncounterOptionBuilder() new MysteryEncounterOptionBuilder()
.withOptionMode(MysteryEncounterOptionMode.DEFAULT_OR_SPECIAL) .withOptionMode(MysteryEncounterOptionMode.DISABLED_OR_DEFAULT)
.withHasDexProgress(true) .withHasDexProgress(true)
.withSceneMoneyRequirement(null, MAX_POKEMON_PRICE_MULTIPLIER) // Wave scaling money multiplier of 2 .withSceneMoneyRequirement(null, MAX_POKEMON_PRICE_MULTIPLIER) // Wave scaling money multiplier of 2
.withDialogue({ .withDialogue({

View File

@ -148,6 +148,7 @@ describe("The Pokemon Salesman - Mystery Encounter", () => {
}); });
it("Should add the Pokemon to the party", async () => { it("Should add the Pokemon to the party", async () => {
scene.money = 20000;
await game.runToMysteryEncounter(MysteryEncounterType.POKEMON_SALESMAN, defaultParty); await game.runToMysteryEncounter(MysteryEncounterType.POKEMON_SALESMAN, defaultParty);
const initialPartySize = scene.getParty().length; const initialPartySize = scene.getParty().length;
@ -161,7 +162,7 @@ describe("The Pokemon Salesman - Mystery Encounter", () => {
it("should be disabled if player does not have enough money", async () => { it("should be disabled if player does not have enough money", async () => {
scene.money = 0; scene.money = 0;
await game.runToMysteryEncounter(MysteryEncounterType.POKEMON_SALESMAN, [Species.ARCANINE]); await game.runToMysteryEncounter(MysteryEncounterType.POKEMON_SALESMAN, defaultParty);
await game.phaseInterceptor.to(MysteryEncounterPhase, false); await game.phaseInterceptor.to(MysteryEncounterPhase, false);
const encounterPhase = scene.getCurrentPhase(); const encounterPhase = scene.getCurrentPhase();
@ -180,6 +181,7 @@ describe("The Pokemon Salesman - Mystery Encounter", () => {
}); });
it("should leave encounter without battle", async () => { it("should leave encounter without battle", async () => {
scene.money = 20000;
const leaveEncounterWithoutBattleSpy = vi.spyOn(EncounterPhaseUtils, "leaveEncounterWithoutBattle"); const leaveEncounterWithoutBattleSpy = vi.spyOn(EncounterPhaseUtils, "leaveEncounterWithoutBattle");
await game.runToMysteryEncounter(MysteryEncounterType.POKEMON_SALESMAN, defaultParty); await game.runToMysteryEncounter(MysteryEncounterType.POKEMON_SALESMAN, defaultParty);