PokéRogue
    Preparing search index...

    Class Egg

    Index
    _eggMoveIndex: number
    _hatchWaves: number
    _id: number
    _isShiny: boolean
    _overrideHiddenAbility: boolean
    _sourceType: EggSourceType | undefined
    _species: SpeciesId
    _tier: EggTier
    _timestamp: number
    _variantTier: VariantTier
    eggDescriptor?: string
    • Get the missing variant tiers for a given species. Includes unhatched variants currently in eggs.

      Parameters

      • speciesId: SpeciesId

        The SpeciesId for which to get missing variants

      Returns VariantTier[]

      An array of VariantTiers.

      Does not account for VariantTier.STANDARD. Species without variants will return an empty array.

    • Get the chance of the next same-species egg being shiny.

      Parameters

      • species: SpeciesId

        The species of the egg being rolled for.

      Returns number

      The probability of the next same-species egg being shiny. (Between 0 and 1)

    • Get the variant tier for a same species egg based on the pity counter.

      Parameters

      • speciesId: SpeciesId

        The SpeciesId for which to get the variant tier based on the pity counter

      Returns VariantTier | null

      The variant tier or null if no variant is determined by pity.

    • Rolls which egg move slot the egg will have. 1/x chance for rare, (x-1)/3 chance for each common move. x is determined by Egg Tier. Boosted rates used for eggs obtained through Move Up Gacha and Candy.

      Returns number

      the slot for the egg move

    • Rolls whether the egg is shiny or not.

      Parameters

      • Optionalspecies: SpeciesId

        The species of the egg being rolled for. Only used for same species eggs.

      Returns boolean

      true if the egg is shiny