Skip to content

Weapon Models

weapon

Classes:

  • Weapon –

    Represents a weapon summary.

  • WeaponAffix –

    Represents a weapon's affix (passive ability).

  • WeaponAffixUpgrade –

    Represents an upgrade level (refinement) for a weapon affix (passive ability).

  • WeaponAscensionMaterial –

    Represents a material required for weapon ascension.

  • WeaponBaseStat –

    Represents a base stat of a weapon and its growth type.

  • WeaponDetail –

    Represents detailed information about a weapon.

  • WeaponPromote –

    Represents a weapon promotion (ascension) level.

  • WeaponPromoteCostItem –

    Represents an item required for weapon promotion (ascension).

  • WeaponPromoteStat –

    Represents a stat bonus gained from weapon promotion (ascension).

  • WeaponUpgrade –

    Represents the upgrade details (stats, promotions, awaken cost) of a weapon.

Weapon pydantic-model

Represents a weapon summary.

Attributes:

  • id (int) –

    The unique ID of the weapon.

  • rarity (int) –

    The rarity rank of the weapon (1 to 5).

  • type (str) –

    The type identifier string for the weapon (e.g., "WEAPON_SWORD_ONE_HAND").

  • name (str) –

    The name of the weapon.

  • icon (str) –

    The icon URL for the weapon.

  • route (str) –

    The route identifier for the weapon.

Fields:

Validators:

  • _convert_icon_url → icon

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

rarity pydantic-field

rarity: int

route pydantic-field

route: str

type pydantic-field

type: str

WeaponAffix pydantic-model

Represents a weapon's affix (passive ability).

Attributes:

Fields:

Validators:

name pydantic-field

name: str

upgrades pydantic-field

WeaponAffixUpgrade pydantic-model

Represents an upgrade level (refinement) for a weapon affix (passive ability).

Attributes:

  • level (int) –

    The refinement level (1 to 5).

  • description (str) –

    The description of the affix effect at this refinement level.

Fields:

description pydantic-field

description: str

level pydantic-field

level: int

WeaponAscensionMaterial pydantic-model

Represents a material required for weapon ascension.

Attributes:

  • id (int) –

    The ID of the ascension material.

  • rarity (int) –

    The rarity rank of the material.

Fields:

id pydantic-field

id: int

rarity pydantic-field

rarity: int

WeaponBaseStat pydantic-model

Represents a base stat of a weapon and its growth type.

Attributes:

  • prop_type (str | None) –

    The identifier string for the stat (e.g., "FIGHT_PROP_BASE_ATTACK", "FIGHT_PROP_CRITICAL"). Optional.

  • init_value (float) –

    The initial value of the stat at level 1.

  • growth_type (str) –

    The identifier string for the stat's growth curve (e.g., "GROW_CURVE_ATTACK_101").

Fields:

growth_type pydantic-field

growth_type: str

init_value pydantic-field

init_value: float

prop_type pydantic-field

prop_type: str | None = None

WeaponDetail pydantic-model

Represents detailed information about a weapon.

Attributes:

  • id (int) –

    The unique ID of the weapon.

  • rarity (int) –

    The rarity rank of the weapon (1 to 5).

  • type (str) –

    The type identifier string for the weapon (e.g., "WEAPON_SWORD_ONE_HAND").

  • name (str) –

    The name of the weapon.

  • description (str) –

    The flavor text or description of the weapon.

  • icon (str) –

    The icon URL for the weapon.

  • story_id (int | None) –

    The ID related to the weapon's story (optional).

  • affix (WeaponAffix | None) –

    The weapon's passive ability (affix) details (optional).

  • route (str) –

    The route identifier for the weapon.

  • upgrade (WeaponUpgrade) –

    Information about the weapon's stats, ascension, and refinement costs.

  • ascension_materials (list[WeaponAscensionMaterial]) –

    A list of materials required for ascension.

Fields:

Validators:

affix pydantic-field

affix: WeaponAffix | None

ascension_materials pydantic-field

ascension_materials: list[WeaponAscensionMaterial]

description pydantic-field

description: str

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

rarity pydantic-field

rarity: int

route pydantic-field

route: str

story_id pydantic-field

story_id: int | None

type pydantic-field

type: str

upgrade pydantic-field

upgrade: WeaponUpgrade

WeaponPromote pydantic-model

Represents a weapon promotion (ascension) level.

Attributes:

Fields:

Validators:

add_stats pydantic-field

add_stats: list[WeaponPromoteStat] | None = None

coin_cost pydantic-field

coin_cost: int | None = None

cost_items pydantic-field

cost_items: list[WeaponPromoteCostItem] | None = None

promote_level pydantic-field

promote_level: int

required_player_level pydantic-field

required_player_level: int | None = None

unlock_max_level pydantic-field

unlock_max_level: int

WeaponPromoteCostItem pydantic-model

Represents an item required for weapon promotion (ascension).

Attributes:

  • id (int) –

    The ID of the required item.

  • amount (int) –

    The quantity of the item required.

Fields:

amount pydantic-field

amount: int

id pydantic-field

id: int

WeaponPromoteStat pydantic-model

Represents a stat bonus gained from weapon promotion (ascension).

Attributes:

  • id (str) –

    The identifier string for the stat (e.g., "FIGHT_PROP_ATTACK").

  • value (float) –

    The value of the stat bonus.

Fields:

id pydantic-field

id: str

value pydantic-field

value: float

WeaponUpgrade pydantic-model

Represents the upgrade details (stats, promotions, awaken cost) of a weapon.

Attributes:

Fields:

awaken_cost pydantic-field

awaken_cost: list[int]

base_stats pydantic-field

base_stats: list[WeaponBaseStat]

promotes pydantic-field

promotes: list[WeaponPromote]