Skip to content

Monster Models

monster

Classes:

  • Monster –

    Represents a monster or living being summary.

  • MonsterDetail –

    Represents detailed information about a monster or living being.

  • MonsterEntry –

    Represents an entry or variant of a monster.

  • MonsterReward –

    Represents a potential reward dropped by a monster.

Monster pydantic-model

Represents a monster or living being summary.

Attributes:

  • id (int) –

    The unique ID of the monster/being.

  • name (str) –

    The name of the monster/being.

  • type (str) –

    The type or category of the monster/being.

  • icon (str) –

    The icon URL for the monster/being.

  • route (str) –

    The route identifier for the monster/being.

Fields:

Validators:

  • _convert_icon_url → icon

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

route pydantic-field

route: str

type pydantic-field

type: str

MonsterDetail pydantic-model

Represents detailed information about a monster or living being.

Attributes:

  • id (int) –

    The unique ID of the monster.

  • name (str) –

    The name of the monster.

  • type (str) –

    The type or category of the monster.

  • icon (str) –

    The icon URL for the monster.

  • route (str) –

    The route identifier for the monster.

  • title (str | None) –

    An optional title associated with the monster.

  • special_name (str | None) –

    An optional special name for the monster.

  • description (str) –

    The description of the monster.

  • entries (list[MonsterEntry]) –

    A list of different entries or variants of this monster.

Fields:

Validators:

  • _convert_icon_url → icon
  • _convert_entries → entries

description pydantic-field

description: str

entries pydantic-field

entries: list[MonsterEntry]

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

route pydantic-field

route: str

special_name pydantic-field

special_name: str | None

title pydantic-field

title: str | None

type pydantic-field

type: str

MonsterEntry pydantic-model

Represents an entry or variant of a monster.

Attributes:

  • id (int) –

    The ID of this specific monster entry/variant.

  • type (str) –

    The type or category of this entry.

  • rewards (list[MonsterReward]) –

    A list of potential rewards for this entry.

Fields:

Validators:

id pydantic-field

id: int

rewards pydantic-field

rewards: list[MonsterReward]

type pydantic-field

type: str

MonsterReward pydantic-model

Represents a potential reward dropped by a monster.

Attributes:

  • id (int) –

    The ID of the reward item.

  • rarity (int) –

    The rarity rank of the reward item.

  • icon (str) –

    The icon URL of the reward item.

  • count (float | None) –

    The typical amount dropped (optional).

Config:

  • default: {'coerce_numbers_to_str': True}

Fields:

Validators:

  • _convert_icon_url → icon

count pydantic-field

count: float | None = None

icon pydantic-field

icon: str

id pydantic-field

id: int

rarity pydantic-field

rarity: int