diff --git a/src/data/mystery-encounters/encounters/shady-vitamin-dealer.ts b/src/data/mystery-encounters/encounters/shady-vitamin-dealer.ts index 83d6da4a616..d58bc44daf7 100644 --- a/src/data/mystery-encounters/encounters/shady-vitamin-dealer.ts +++ b/src/data/mystery-encounters/encounters/shady-vitamin-dealer.ts @@ -43,7 +43,7 @@ export const ShadyVitaminDealerEncounter: MysteryEncounter = MysteryEncounterBui .withPrimaryPokemonStatusEffectRequirement([StatusEffect.NONE]) // Pokemon must not have status .withPrimaryPokemonHealthRatioRequirement([0.34, 1]) // Pokemon must have above 1/3rd HP .withOption(new MysteryEncounterOptionBuilder() - .withSceneRequirement(new MoneyRequirement(0, 2)) // Wave scaling multiplier of 2 for cost + .withSceneMoneyRequirement(0, 2) // Wave scaling multiplier of 2 for cost .withPreOptionPhase(async (scene: BattleScene): Promise => { const encounter = scene.currentBattle.mysteryEncounter; const onPokemonSelected = (pokemon: PlayerPokemon) => { @@ -116,7 +116,7 @@ export const ShadyVitaminDealerEncounter: MysteryEncounter = MysteryEncounterBui .build()) .withOption(new MysteryEncounterOptionBuilder() - .withSceneRequirement(new MoneyRequirement(0, 5)) // Wave scaling multiplier of 2 for cost + .withSceneMoneyRequirement(0, 5) // Wave scaling multiplier of 2 for cost .withOptionPhase(async (scene: BattleScene) => { // Choose Expensive Option const modifiers = []; diff --git a/src/data/mystery-encounters/mystery-encounter-option.ts b/src/data/mystery-encounters/mystery-encounter-option.ts index 5c42bfdd4ce..f1316ff64f1 100644 --- a/src/data/mystery-encounters/mystery-encounter-option.ts +++ b/src/data/mystery-encounters/mystery-encounter-option.ts @@ -1,8 +1,8 @@ -import { PlayerPokemon } from "#app/field/pokemon"; -import * as Utils from "../../utils"; -import BattleScene from "../../battle-scene"; -import { EncounterPokemonRequirement, EncounterSceneRequirement } from "./mystery-encounter-requirements"; import { OptionTextDisplay } from "#app/data/mystery-encounters/mystery-encounter-dialogue"; +import { PlayerPokemon } from "#app/field/pokemon"; +import BattleScene from "../../battle-scene"; +import * as Utils from "../../utils"; +import { EncounterPokemonRequirement, EncounterSceneRequirement, MoneyRequirement } from "./mystery-encounter-requirements"; export type OptionPhaseCallback = (scene: BattleScene) => Promise; @@ -133,6 +133,10 @@ export class MysteryEncounterOptionBuilder implements Partial> { return Object.assign(this, { onPreOptionPhase: onPreOptionPhase }); }