pokemon-rogue-battle
    Preparing search index...

    Class FreshStartChallenge

    Implements a fresh start challenge.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    conditions: ChallengeCondition[]
    maxSeverity: number
    maxValue: number
    severity: number
    value: number

    Methods

    • An apply function for FlipStats. Derived classes should alter this.

      Parameters

      • _pokemon: default

        Pokemon What pokemon would learn the move.

      • _baseStats: number[]

        What are the stats to flip.

      Returns boolean

      boolean Whether this function did anything.

    • An apply function for AI_LEVEL challenges. Derived classes should alter this.

      Parameters

      • _level: NumberHolder

        Utils.NumberHolder The generated level.

      • _levelCap: number

        Number The current level cap.

      • _isTrainer: boolean

        Boolean Whether this is a trainer pokemon.

      • _isBoss: boolean

        Boolean Whether this is a non-trainer boss pokemon.

      Returns boolean

      boolean Whether this function did anything.

    • Returns the description of a challenge's current value.

      Parameters

      • OptionaloverrideValue: number

        number The value to check for. If undefined, gets the current value.

      Returns string

      string The localised description for the current value.

    • Returns the textual representation of a challenge's current value.

      Parameters

      • OptionaloverrideValue: number

        number The value to check for. If undefined, gets the current value.

      Returns string

      string The localised name for the current value.