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
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:
-
id(int) -
name(str) -
type(str) -
icon(str) -
route(str) -
title(str | None) -
special_name(str | None) -
description(str) -
entries(list[MonsterEntry])
Validators:
MonsterEntry
pydantic-model
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