genshin-manager
    Preparing search index...

    Class Artifact

    Class of artifact

    Index

    Constructors

    • Create a Artifact

      Parameters

      • artifactId: number

        Artifact ID

      • mainPropId: number = 10001

        Main stat ID from ReliquaryMainPropExcelConfigData.json. Default: 10001

      • level: number = 0

        Artifact level (0-20). Default: 0

      • appendPropIds: number[] = []

        Artifact sub stat IDs

      Returns Artifact

    Properties

    appendProps: ArtifactAffixAppendProp[]

    Artifact sub stats

    description: string

    Artifact description

    Artifact icon

    id: number

    Artifact ID

    level: number

    Artifact level

    mainStat: StatProperty

    Main stat

    name: string

    Artifact name

    rarity: number

    Artifact rarity

    setDescriptions: Record<number, string | undefined> = {}

    Artifact set description (index:1 = 1pc, 2 = 2pc , 4 = 4pc)

    setId: undefined | number

    Artifact set ID

    setName: undefined | string

    Artifact set name

    subStats: StatProperty[]

    Artifact sub stats

    Artifact type

    Accessors

    • get allArtifactIds(): number[]

      Get all artifact IDs

      Returns number[]

      All artifact IDs

    Methods

    • Get max level by artifact ID

      Parameters

      • artifactId: number

        Artifact ID

      Returns number

      Max level