Implements a mono generation challenge.

Hierarchy (view full)

Constructors

Properties

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

Methods

  • Modifies the data or game state in some way to apply the challenge.

    Parameters

    • challengeType: ChallengeType

      Which challenge type this is being applied for.

    • args: any[]

      Irrelevant. See the specific challenge's apply function for additional information.

    Returns boolean

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

    Parameters

    • Optional overrideValue: 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

    • Optional overrideValue: number

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

    Returns string

    The localised name for the current value.