genshin-manager
    Preparing search index...

    Class Monster

    Represents a game monster with stats and properties

    Index

    Constructors

    • Creates a new Monster instance

      Parameters

      • monsterId: number

        Monster ID

      • level: number = 1

        Monster level

      • playerCount: number = 1

        Number of players for co-op scaling

      Returns Monster

    Properties

    codexType: undefined | SubType

    Monster type

    describeName: string = ''

    Monster display name

    description: string = ''

    Monster description

    icon: undefined | ImageAssets

    Monster display icon

    id: number

    Monster ID

    internalName: string

    Monster Internal name

    level: number

    Monster level

    name: string

    Monster name

    playerCount: number

    Player count for co-op scaling

    stats: StatProperty[] = []

    Monster stats

    Accessors

    • get allMonsterIds(): number[]

      Get all monster IDs

      Returns number[]

      all monster IDs

      const allIds = Monster.allMonsterIds
      console.log(`Total monsters: ${allIds.length}`)

    Methods

    • Find monster ID by description ID

      Parameters

      • describeId: number

        description ID

      Returns number

      monster ID

      const monsterId = Monster.findMonsterIdByDescribeId(21104)
      const monster = new Monster(monsterId)