• Preparing search index...
  • The search index is not available
pokemon-rogue-battle
  • pokemon-rogue-battle
  • data/challenge
  • applyChallenges

Function applyChallenges

  • applyChallenges(gameMode, challengeType, pokemon, valid, dexAttr, soft): boolean
  • Apply all challenges that modify starter choice.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: STARTER_CHOICE

      ChallengeType ChallengeType.STARTER_CHOICE

    • pokemon: default

      PokemonSpecies The pokemon to check the validity of.

    • valid: BooleanHolder

      Utils.BooleanHolder A BooleanHolder, the value gets set to false if the pokemon isn't allowed.

    • dexAttr: DexAttrProps

      DexAttrProps The dex attributes of the pokemon.

    • soft: boolean

      boolean If true, allow it if it could become a valid pokemon.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:861
  • applyChallenges(gameMode, challengeType, points): boolean
  • Apply all challenges that modify available total starter points.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: STARTER_POINTS

      ChallengeType ChallengeType.STARTER_POINTS

    • points: NumberHolder

      Utils.NumberHolder The amount of points you have available.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:869
  • applyChallenges(gameMode, challengeType, species, cost): boolean
  • Apply all challenges that modify the cost of a starter.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: STARTER_COST

      ChallengeType ChallengeType.STARTER_COST

    • species: Species

      Species The pokemon to change the cost of.

    • cost: NumberHolder

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:878
  • applyChallenges(gameMode, challengeType, pokemon): boolean
  • Apply all challenges that modify a starter after selection.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: STARTER_MODIFY

      ChallengeType ChallengeType.STARTER_MODIFY

    • pokemon: default

      Pokemon The starter pokemon to modify.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:886
  • applyChallenges(gameMode, challengeType, pokemon, valid): boolean
  • Apply all challenges that what pokemon you can have in battle.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: POKEMON_IN_BATTLE

      ChallengeType ChallengeType.POKEMON_IN_BATTLE

    • pokemon: default

      Pokemon The pokemon to check the validity of.

    • valid: BooleanHolder

      Utils.BooleanHolder A BooleanHolder, the value gets set to false if the pokemon isn't allowed.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:895
  • applyChallenges(gameMode, challengeType, waveIndex, battleConfig): boolean
  • Apply all challenges that modify what fixed battles there are.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: FIXED_BATTLES

      ChallengeType ChallengeType.FIXED_BATTLES

    • waveIndex: Number

      Number The current wave index.

    • battleConfig: FixedBattleConfig

      FixedBattleConfig The battle config to modify.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:904
  • applyChallenges(gameMode, challengeType, effectiveness): boolean
  • Apply all challenges that modify type effectiveness.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: TYPE_EFFECTIVENESS

      ChallengeType ChallengeType.TYPE_EFFECTIVENESS

    • effectiveness: NumberHolder

      Utils.NumberHolder The current effectiveness of the move.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:912
  • applyChallenges(gameMode, challengeType, level, levelCap, isTrainer, isBoss): boolean
  • Apply all challenges that modify what level AI are.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: AI_LEVEL

      ChallengeType ChallengeType.AI_LEVEL

    • level: NumberHolder

      Utils.NumberHolder The generated level of the pokemon.

    • levelCap: number

      Number The maximum level cap for the current wave.

    • isTrainer: boolean

      Boolean Whether this is a trainer pokemon.

    • isBoss: boolean

      Boolean Whether this is a non-trainer boss pokemon.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:923
  • applyChallenges(gameMode, challengeType, pokemon, moveSlots): boolean
  • Apply all challenges that modify how many move slots the AI has.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: AI_MOVE_SLOTS

      ChallengeType ChallengeType.AI_MOVE_SLOTS

    • pokemon: default

      Pokemon The pokemon being considered.

    • moveSlots: NumberHolder

      Utils.NumberHolder The amount of move slots.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:932
  • applyChallenges(gameMode, challengeType, pokemon, hasPassive): boolean
  • Apply all challenges that modify whether a pokemon has its passive.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: PASSIVE_ACCESS

      ChallengeType ChallengeType.PASSIVE_ACCESS

    • pokemon: default

      Pokemon The pokemon to modify.

    • hasPassive: BooleanHolder

      Utils.BooleanHolder Whether it has its passive.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:941
  • applyChallenges(gameMode, challengeType): boolean
  • Apply all challenges that modify the game modes settings.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: GAME_MODE_MODIFY

      ChallengeType ChallengeType.GAME_MODE_MODIFY

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:948
  • applyChallenges(gameMode, challengeType, pokemon, moveSource, move, level): boolean
  • Apply all challenges that modify what level a pokemon can access a move.

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: MOVE_ACCESS

      ChallengeType ChallengeType.MOVE_ACCESS

    • pokemon: default

      Pokemon What pokemon would learn the move.

    • moveSource: MoveSourceType

      MoveSourceType What source the pokemon would get the move from.

    • move: Moves

      Moves The move in question.

    • level: NumberHolder

      Utils.NumberHolder The level threshold for access.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:959
  • applyChallenges(gameMode, challengeType, pokemon, moveSource, move, weight): boolean
  • Apply all challenges that modify what weight a pokemon gives to move generation

    Parameters

    • gameMode: GameMode

      GameMode The current gameMode

    • challengeType: MOVE_WEIGHT

      ChallengeType ChallengeType.MOVE_WEIGHT

    • pokemon: default

      Pokemon What pokemon would learn the move.

    • moveSource: MoveSourceType

      MoveSourceType What source the pokemon would get the move from.

    • move: Moves

      Moves The move in question.

    • weight: NumberHolder

      Utils.NumberHolder The weight of the move.

    Returns boolean

    True if any challenge was successfully applied.

    • Defined in src/data/challenge.ts:970
  • applyChallenges(gameMode, challengeType, pokemon, baseStats): boolean
  • Parameters

    • gameMode: GameMode
    • challengeType: FLIP_STAT
    • pokemon: default
    • baseStats: number[]

    Returns boolean

    • Defined in src/data/challenge.ts:972

Settings

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

Generated using TypeDoc