yolkbot
    Preparing search index...

    Interface Challenge

    Represents the raw challenge data in ChallengeList

    interface Challenge {
        conditional: ChallengeConditional | null;
        goal: number;
        id: number;
        loc: { desc: string; title: string };
        loc_ref: string;
        period: 0;
        reward: number;
        subType: ChallengeSubType | null;
        tier: 0 | 1 | 2 | 3;
        type: ChallengeType;
        value: string | null;
        valueTwo: string | null;
    }
    Index

    Properties

    conditional: ChallengeConditional | null

    This seems to map to a value that helps the backend decide when to award challenge points

    goal: number

    The numeric "goal". For killstreak challenges, this is the intended streak, for damage challenges, the damage, etc. If there is no goal, this is set to "1"

    id: number

    An incrementing challenge ID

    loc: { desc: string; title: string }

    The resolved localization of the challenge (in English)

    Type Declaration

    • desc: string

      The description of the challenge. This often describes the challenge best

    • title: string

      The title of the challenge. This often has no relevant information about it

    loc_ref: string

    The string referencing the localization keys that describe the challenge. These are automatically resolved as Challenge.loc

    period: 0

    Seemingly unused; always 0

    reward: number

    The reward, in eggs

    subType: ChallengeSubType | null

    The challenge "subtype". This is null if it's a challenge that deals damage or involves death

    tier: 0 | 1 | 2 | 3

    A tier rating that describes how hard the challenge is. Accounts that meet certain conditions are given higher tiers

    The challenge "type"

    value: string | null

    A challenge-specific value that is function-dependant on the values of type, subType, and conditional

    valueTwo: string | null

    A second challenge-specific value that is function-dependant on the values of type, subType, and conditional