Implements a mono generation challenge.

Hierarchy (view full)

Constructors

Properties

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

Methods

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

    Parameters

    • level: IntegerHolder

      Utils.IntegerHolder 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.

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

    Parameters

    • 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 = false

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

    • OptionalcheckEvolutions: boolean

      boolean If true, check the pokemon's future evolutions

    Returns boolean

    boolean Whether this function did anything.

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

    Parameters

    • OptionaloverrideValue: number

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

    Returns string

    The localised description for the current value.

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

    Parameters

    • OptionaloverrideValue: number

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

    Returns string

    The localised name for the current value.