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.

  • 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.