pokemon-rogue-battle
    Preparing search index...

    Class GameMode

    Implements

    • GameModeConfig
    Index

    Constructors

    Properties

    battleConfig: FixedBattleConfigs
    challenges: Challenge[]
    hasMysteryEncounters: boolean
    hasNoShop: boolean
    hasRandomBiomes: boolean
    hasRandomBosses: boolean
    hasShortBiomes: boolean
    hasTrainers: boolean
    isChallenge: boolean
    isClassic: boolean
    isDaily: boolean
    isEndless: boolean
    isSplicedOnly: boolean
    maxMysteryEncounterWave: number
    minMysteryEncounterWave: number
    modeId: GameModes

    Methods

    • Parameters

      • isBoss: boolean

      Returns number

    • Returns the wave range where MEs can spawn for the game mode [min, max]

      Returns [number, number]

    • Returns number

      either:

      • override from overrides.ts
      • 20 for Daily Runs
      • 5 for all other modes
    • Returns number

      either:

      • override from overrides.ts
      • 1000
    • Parameters

      • waveIndex: number
      • ignoreCurveChanges: boolean = false

      Returns number

    • Helper function to see if a GameMode has a specific challenge type

      Parameters

      Returns boolean

      true if the game mode has that challenge

    • Parameters

      • waveIndex: number

      Returns boolean

      true if the current battle is against classic mode's final boss

    • Every 10 waves is a boss battle

      Parameters

      • waveIndex: number

      Returns boolean

      true if waveIndex is a multiple of 10

    • Every 50 waves of an Endless mode is a boss At this time it is paradox pokemon

      Parameters

      • waveIndex: number

      Returns boolean

      true if waveIndex is a multiple of 50 in Endless

    • Every 1000 waves of an Endless mode is a major boss At this time it is Eternamax Eternatus

      Parameters

      • waveIndex: number

      Returns boolean

      true if waveIndex is a multiple of 1000 in Endless

    • Every 250 waves of an Endless mode is a minor boss At this time it is Eternatus

      Parameters

      • waveIndex: number

      Returns boolean

      true if waveIndex is a multiple of 250 in Endless

    • Checks whether there is a fixed battle on this gamemode on a given wave.

      Parameters

      • waveIndex: number

        The wave to check.

      Returns boolean

      If this game mode has a fixed battle on this wave

    • Helper function to see if the game mode is using fresh start

      Returns boolean

      true if a fresh start challenge is being applied

    • Parameters

      • waveIndex: number
      • biomeType: Biome
      • offsetGym: boolean

      Returns boolean

    • Checks if wave provided is the final for current or specified game mode

      Parameters

      • waveIndex: number
      • modeId: GameModes = ...

        game mode

      Returns boolean

      if the current wave is final for classic or daily OR a minor boss in endless

    • Determines whether or not to generate a trainer

      Parameters

      • waveIndex: number

        the current floor the player is on (trainer sprites fail to generate on X1 floors)

      • arena: Arena

        the current Arena

      Returns boolean

      true if a trainer should be generated, false otherwise

    • Enables challenges if they are disabled and sets the specified challenge's value

      Parameters

      • challenge: Challenges

        The challenge to set

      • value: number

        The value to give the challenge. Impact depends on the specific challenge

      Returns void