• Preparing search index...
  • The search index is not available
pokemon-rogue-battle
  • pokemon-rogue-battle
  • data/mystery-encounters/utils/encounter-phase-utils
  • setEncounterRewards

Function setEncounterRewards

  • setEncounterRewards(scene, customShopRewards?, eggRewards?, preRewardsCallback?): void
  • Will initialize reward phases to follow the mystery encounter Can have shop displayed or skipped

    Parameters

    • scene: default

      Battle Scene

    • OptionalcustomShopRewards: CustomModifierSettings

      adds a shop phase with the specified rewards / reward tiers

    • OptionaleggRewards: IEggOptions[]
    • OptionalpreRewardsCallback: Function

      can execute an arbitrary callback before the new phases if necessary (useful for updating items/party/injecting new phases before MysteryEncounterRewardsPhase)

    Returns void

    • Defined in src/data/mystery-encounters/utils/encounter-phase-utils.ts:624

Settings

Member Visibility
pokemon-rogue-battle
  • Loading...

Generated using TypeDoc