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
WeaponAffix
pydantic-model
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:
-
level(int) -
description(str)
WeaponAscensionMaterial
pydantic-model
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:
-
prop_type(str | None) -
init_value(float) -
growth_type(str)
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:
-
id(int) -
rarity(int) -
type(str) -
name(str) -
description(str) -
icon(str) -
story_id(int | None) -
affix(WeaponAffix | None) -
route(str) -
upgrade(WeaponUpgrade) -
ascension_materials(list[WeaponAscensionMaterial])
Validators:
-
_flatten_story_id→story_id -
_convert_icon_url→icon -
_convert_affix→affix -
_convert_ascension_materials→ascension_materials
WeaponPromote
pydantic-model
Represents a weapon promotion (ascension) level.
Attributes:
-
unlock_max_level(int) –The maximum weapon level unlocked after this promotion.
-
promote_level(int) –The ascension phase number (e.g., 1 for first ascension).
-
cost_items(list[WeaponPromoteCostItem] | None) –A list of materials required for this promotion (optional).
-
coin_cost(int | None) –The Mora cost for this promotion (optional).
-
required_player_level(int | None) –The minimum Adventure Rank required for this promotion (optional).
-
add_stats(list[WeaponPromoteStat] | None) –A list of stat bonuses granted by this promotion (optional).
Fields:
-
unlock_max_level(int) -
promote_level(int) -
cost_items(list[WeaponPromoteCostItem] | None) -
coin_cost(int | None) -
required_player_level(int | None) -
add_stats(list[WeaponPromoteStat] | None)
Validators:
-
_convert_cost_items→cost_items -
_convert_add_stats→add_stats
WeaponPromoteCostItem
pydantic-model
WeaponPromoteStat
pydantic-model
WeaponUpgrade
pydantic-model
Represents the upgrade details (stats, promotions, awaken cost) of a weapon.
Attributes:
-
awaken_cost(list[int]) –A list of Mora costs for each refinement level (?).
-
base_stats(list[WeaponBaseStat]) –A list of the weapon's base stats and their growth types.
-
promotes(list[WeaponPromote]) –A list of promotion (ascension) levels and their details.
Fields: