Class of Monster

Constructors

  • Create a Monster

    Parameters

    • monsterId: number

      monster ID

    • level: number = 1

      monsterLevel (1-100). Default: 1

    • playerCount: number = 1

      Number of players (1-4). Default: 1

    Returns Monster

Properties

codexType: undefined | CodexType

Monster type

describeName: string = ''

Monster Preview name

description: string = ''

Monster description

icon: undefined | ImageAssets

Monster Preview icon

id: number

Monster ID

internalName: string

Monster Internal name

level: number

Monster level

name: string

Monster name

stats: StatProperty[] = []

Monster stats

Accessors

  • get allMonsterIds(): number[]
  • Get all monster IDs

    Returns number[]

    All monster IDs

Methods

  • find monster ID by describe ID

    Parameters

    • describeId: number

      Describe ID

    Returns number

    monster ID