API Reference
hsr
Modules:
-
character– -
endgame– -
enemy_groups– -
light_cone– -
monster– -
new– -
relic–
Classes:
-
ApocBuff–Represents the fixed global buff in Apocalyptic Shadow.
-
ApocDetail–Apocalyptic Shadow event details.
-
Character–Represent an HSR character.
-
CharacterDetail–Represent an HSR character detail.
-
ChildMonster–Represent the specific details of a monster type.
-
DamageTypeResistance–Represent the damage resistance of an enemy in HSR.
-
Eidolon–Represent a character's eidolon.
-
EliteGroup–Represent an EliteGroup in HSR.
-
EndgameBaseModel–Abstract base class for all HSR endgame modes.
-
EndgameBuffOptions–Represents a selectable buff modifier in endgame.
-
EndgameHalf–Represents one half of an endgame stage (first or second).
-
EndgameStage–Represents a stage in an endgame mode.
-
EndgameSummary–Summary metadata for an HSR endgame event.
-
EndgameWave–Represents a wave of enemies in an endgame half.
-
FullApocDetail–Apocalyptic Shadow event details with processed enemies.
-
FullEndgameBaseModel–Endgame base model with processed enemies.
-
FullEndgameHalf–Represents one half of an endgame stage (first or second) with processed enemies.
-
FullEndgameStage–Represents a stage in an endgame mode with processed enemies.
-
FullEndgameWave–Represents a wave of processed enemies in an endgame half.
-
FullMOCDetail–Memory of Chaos event details with processed enemies.
-
FullPFDetail–Pure Fiction event details with processed enemies.
-
HSREnemySkill–Represents an enemy skill's information.
-
HardLevelGroup–Represent a HardLevelGroup in HSR.
-
LightCone–Represent an HSR light cone.
-
LightConeDetail–Represent an HSR light cone detail.
-
MOCDetail–Memory of Chaos event details.
-
Monster–Represent an enemy monster in HSR.
-
MonsterDetail–Represent an enemy monster with details in HSR.
-
New–Represent new Honkai Star Rail data.
-
PFDetail–Pure Fiction event details.
-
ProcessedEnemy–Represents a processed enemy instance in a HSR endgame stage.
-
Relic–Represent an HSR relic.
-
RelicSet–Represent an HSR relic set.
-
RelicSetDetail–Represent an HSR relic set detail.
-
RelicSetEffect–Represent a relic set effect.
-
RelicSetEffects–Represent a relic set's set effects.
-
SetDetailSetEffect–Represent a relic set detail's set effect.
-
SetDetailSetEffects–Represent relic set detail's set effects.
-
Skill–Represent a character's skill.
-
SkillLevelInfo–Represent a skill's level information.
-
SuperimposeInfo–Represent a light cone's superimpose information.
ApocBuff
pydantic-model
Represents the fixed global buff in Apocalyptic Shadow.
Attributes:
Fields:
Validators:
ApocDetail
pydantic-model
Apocalyptic Shadow event details.
Attributes:
-
buff(ApocBuff) –The static global buff applied in all stages.
-
buff_list_1(list[EndgameBuffOptions]) –Selectable buffs for first half.
-
buff_list_2(list[EndgameBuffOptions]) –Selectable buffs for second half.
Fields:
-
buff(ApocBuff) -
buff_list_1(list[EndgameBuffOptions]) -
buff_list_2(list[EndgameBuffOptions]) -
id(int) -
name(str) -
begin_time(str) -
end_time(str) -
stages(list[EndgameStage])
Validators:
-
__format_fields -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages
Character
pydantic-model
Represent an HSR character.
Attributes:
-
id(int) –The ID of the character.
-
icon(str) –The icon URL of the character.
-
rarity(Literal[4, 5]) –The rarity of the character.
-
description(str) –The description of the character.
-
path(HSRPath) –The path of the character.
-
element(HSRElement) –The element of the character.
-
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) –A dictionary of names in different languages.
-
name(str) –The name of the character.
Fields:
-
id(int) -
icon(str) -
rarity(Literal[4, 5]) -
description(str) -
path(HSRPath) -
element(HSRElement) -
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) -
name(str)
Validators:
-
__format_fields -
__convert_icon→icon -
__convert_rarity→rarity -
__convert_description→description -
__transform_names
CharacterDetail
pydantic-model
Represent an HSR character detail.
Attributes:
-
id(int) –The ID of the character.
-
name(str) –The name of the character.
-
description(str) –The description of the character.
-
rarity(Literal[4, 5]) –The rarity of the character.
-
eidolons(dict[str, Eidolon]) –A dictionary of eidolons for the character.
-
skills(dict[str, Skill]) –A dictionary of skills for the character.
-
ascension_stats(dict[str, dict[str, Any]]) –A dictionary of ascension stats for the character.
Fields:
-
id(int) -
name(str) -
description(str) -
rarity(Literal[4, 5]) -
eidolons(dict[str, Eidolon]) -
skills(dict[str, Skill]) -
ascension_stats(dict[str, dict[str, Any]])
Validators:
-
__format_fields -
__convert_rarity→rarity -
__convert_description→description -
__remove_invalid_skills→skills -
__extract_id
ChildMonster
pydantic-model
Represent the specific details of a monster type.
Attributes:
-
id(int) –The ID of this instance of the monster.
-
attack_modify_ratio(float) –Multiplier applied to the monster's base attack.
-
defence_modify_ratio(float) –Multiplier applied to the monster's base defense.
-
hp_modify_ratio(float) –Multiplier applied to the monster's base HP.
-
spd_modify_ratio(float) –Multiplier applied to the monster's base speed.
-
spd_modify_value(float | None) –An optional fixed value added to the monster's speed (can override base speed).
-
stance_modify_value(float) –Multiplier applied to the monster's base toughness.
-
stance_weak_list(list[HSRElement]) –List of elemental types that this monster is weak to (for toughness damage).
-
damage_type_resistances(list[DamageTypeResistance]) –List of resistances the monster has against specific elements.
-
skills(list[HSREnemySkill]) –List of skills this monster instance can use in combat.
Fields:
-
id(int) -
attack_modify_ratio(float) -
defence_modify_ratio(float) -
hp_modify_ratio(float) -
spd_modify_ratio(float) -
spd_modify_value(float | None) -
stance_modify_value(float) -
stance_weak_list(list[HSRElement]) -
damage_type_resistances(list[DamageTypeResistance]) -
skills(list[HSREnemySkill])
Validators:
-
__format_fields
DamageTypeResistance
pydantic-model
Represent the damage resistance of an enemy in HSR.
Attributes:
-
element(HSRElement) –The element of the resistance.
-
value(float) –The value of the resistance.
Fields:
-
element(HSRElement) -
value(float)
Validators:
-
__format_fields
Eidolon
pydantic-model
Represent a character's eidolon.
Attributes:
-
id(int) –The ID of the eidolon.
-
name(str) –The name of the eidolon.
-
description(str) –The description of the eidolon.
-
parameters(list[float]) –A list of parameters for the eidolon.
Fields:
-
id(int) -
name(str) -
description(str) -
parameters(list[float])
Validators:
-
__format_fields
EliteGroup
pydantic-model
Represent an EliteGroup in HSR.
All enemies in HSR follow the following formula for ATK, DEF, HP, and SPD: Base x BaseModifyRatio x EliteGroup Ratio x HardLevelGroup(Level) Ratio x (1 + HPMultiplier)
Attributes:
-
id(int) –The ID of the group.
-
attack_ratio(float) –The ratio to multiply to get final attack.
-
defence_ratio(float) –The ratio to multiply to get final defence.
-
hp_ratio(float) –The ratio to multiply to get final HP.
-
spd_ratio(float) –The ratio to multiply to get final speed.
Fields:
-
id(int) -
attack_ratio(float) -
defence_ratio(float) -
hp_ratio(float) -
spd_ratio(float) -
stance_ratio(float)
Validators:
-
__format_fields -
handle_missing_fields→attack_ratio,defence_ratio,hp_ratio,spd_ratio,stance_ratio
EndgameBaseModel
pydantic-model
Abstract base class for all HSR endgame modes.
Attributes:
-
id(int) –Unique ID of the endgame event.
-
name(str) –Display name of the event.
-
begin_time(str) –Event start timestamp.
-
end_time(str) –Event end timestamp.
-
stages(list[EndgameStage]) –List of stages in this endgame mode.
Fields:
Validators:
-
__format_fields -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages
EndgameBuffOptions
pydantic-model
EndgameHalf
pydantic-model
Represents one half of an endgame stage (first or second).
Attributes:
-
hlg_id(int) –ID of the HardLevelGroup used to determine difficulty scaling.
-
hlg_level(int) –Level of the HardLevelGroup (affects enemy stats).
-
eg_id(int) –ID of the EliteGroup (affects enemy traits).
-
waves(list[EndgameWave]) –List of enemy waves in this half.
Fields:
Validators:
-
__format_fields
EndgameStage
pydantic-model
Represents a stage in an endgame mode.
Attributes:
-
id(int) –Unique ID of the stage.
-
name(str) –Stage name.
-
first_half_weaknesses(list[HSRElement]) –Elements that enemies in the first half are weak to.
-
second_half_weaknesses(list[HSRElement]) –Elements that enemies in the second half are weak to.
-
first_half(EndgameHalf) –The first half of the stage.
-
second_half(EndgameHalf | None) –The second half of the stage.
Fields:
-
id(int) -
name(str) -
first_half_weaknesses(list[HSRElement]) -
second_half_weaknesses(list[HSRElement]) -
first_half(EndgameHalf) -
second_half(EndgameHalf | None)
Validators:
-
__format_fields -
__handle_missing_name→name -
__unwrap_event_lists
EndgameSummary
pydantic-model
Summary metadata for an HSR endgame event.
Attributes:
-
id(int) –ID of the endgame.
-
type(HSREndgameType) –The type/category of the endgame.
-
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) –Dictionary containing localized names in English (en), Chinese (cn), Korean (kr), and Japanese (jp).
-
name(str) –The selected name to display (populated during post-processing).
-
begin(str) –Event start timestamp.
-
end(str) –Event end timestamp.
Fields:
-
id(int) -
type(HSREndgameType) -
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) -
name(str) -
begin(str) -
end(str)
Validators:
-
__format_fields -
__transform_names
EndgameWave
pydantic-model
Represents a wave of enemies in an endgame half.
Attributes:
-
enemies(list[int]) –A list of enemy IDs.
-
hp_multiplier(float) –Multiplier applied to enemy HP in this wave.
Fields:
-
enemies(list[int]) -
hp_multiplier(float)
Validators:
-
__format_fields -
__handle_missing_hp→hp_multiplier -
__extract_monster_ids
FullApocDetail
pydantic-model
Apocalyptic Shadow event details with processed enemies.
Attributes:
-
buff(ApocBuff) –The static global buff applied in all stages.
-
buff_list_1(list[EndgameBuffOptions]) –Selectable buffs for first half.
-
buff_list_2(list[EndgameBuffOptions]) –Selectable buffs for second half.
Fields:
-
buff(ApocBuff) -
buff_list_1(list[EndgameBuffOptions]) -
buff_list_2(list[EndgameBuffOptions]) -
id(int) -
name(str) -
begin_time(str) -
end_time(str) -
stages(list[FullEndgameStage])
Validators:
-
__format_fields -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages
FullEndgameBaseModel
pydantic-model
Endgame base model with processed enemies.
Attributes:
-
id(int) –Unique ID of the endgame event.
-
name(str) –Display name of the event.
-
begin_time(str) –Event start timestamp.
-
end_time(str) –Event end timestamp.
-
stages(list[FullEndgameStage]) –List of stages in this endgame mode with processed enemies.
Fields:
Validators:
-
__format_fields -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages
FullEndgameHalf
pydantic-model
Represents one half of an endgame stage (first or second) with processed enemies.
Attributes:
-
hlg_id(int) –ID of the HardLevelGroup used to determine difficulty scaling.
-
hlg_level(int) –Level of the HardLevelGroup (affects enemy stats).
-
eg_id(int) –ID of the EliteGroup (affects enemy traits).
-
waves(list[FullEndgameWave]) –List of enemy waves in this half with processed enemies.
Fields:
Validators:
-
__format_fields
FullEndgameStage
pydantic-model
Represents a stage in an endgame mode with processed enemies.
Attributes:
-
first_half(FullEndgameHalf) –The first half of the stage with processed enemies.
-
second_half(FullEndgameHalf | None) –The second half of the stage with processed enemies.
Fields:
-
id(int) -
name(str) -
first_half_weaknesses(list[HSRElement]) -
second_half_weaknesses(list[HSRElement]) -
first_half(FullEndgameHalf) -
second_half(FullEndgameHalf | None)
Validators:
-
__format_fields -
__handle_missing_name→name -
__unwrap_event_lists
FullEndgameWave
pydantic-model
Represents a wave of processed enemies in an endgame half.
Attributes:
-
enemies(list[ProcessedEnemy]) –A list of processed enemy instances.
-
hp_multiplier(float) –Multiplier applied to enemy HP in this wave.
Fields:
Validators:
-
__format_fields -
__handle_missing_hp→hp_multiplier -
__extract_monster_ids
FullMOCDetail
pydantic-model
Memory of Chaos event details with processed enemies.
Attributes:
-
memory_turbulence(str) –Global modifier for the current MoC rotation.
Fields:
-
memory_turbulence(str) -
id(int) -
name(str) -
begin_time(str) -
end_time(str) -
stages(list[FullEndgameStage])
Validators:
-
__format_fields -
__transform_data -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages
FullPFDetail
pydantic-model
Pure Fiction event details with processed enemies.
Attributes:
-
buff_options(list[EndgameBuffOptions]) –First tier of optional buffs.
-
buff_suboptions(list[EndgameBuffOptions]) –Second tier of optional buffs.
Fields:
-
buff_options(list[EndgameBuffOptions]) -
buff_suboptions(list[EndgameBuffOptions]) -
id(int) -
name(str) -
begin_time(str) -
end_time(str) -
stages(list[FullEndgameStage])
Validators:
-
__format_fields -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages -
__transform_level_data
HSREnemySkill
pydantic-model
Represents an enemy skill's information.
Attributes:
-
id(int) –The id of the skill.
-
name(str) –The name of the skill
-
desc(str) –The description of what the skill does
-
damage_type(HSRElement | None) –The type of damage the skill does (out of the HSRElements or None)
Fields:
-
id(int) -
name(str) -
desc(str) -
damage_type(HSRElement | None)
Validators:
-
__format_fields -
default_empty_string→name,desc -
empty_string_to_none→damage_type
HardLevelGroup
pydantic-model
Represent a HardLevelGroup in HSR.
All enemies in HSR follow the following formula for ATK, DEF, HP, and SPD: Base x BaseModifyRatio x EliteGroup Ratio x HardLevelGroup(Level) Ratio x (1 + HPMultiplier)
Attributes:
-
id(int) –The ID of the group.
-
level(int) –The level of the enemy.
-
attack_ratio(float) –The ratio to multiply to get final attack.
-
defence_ratio(float) –The ratio to multiply to get final defence.
-
hp_ratio(float) –The ratio to multiply to get final HP.
-
spd_ratio(float) –The ratio to multiply to get final speed.
Fields:
-
id(int) -
level(int) -
attack_ratio(float) -
defence_ratio(float) -
hp_ratio(float) -
spd_ratio(float) -
stance_ratio(float) -
status_resistance(float)
Validators:
-
__format_fields -
handle_missing_fields→attack_ratio,defence_ratio,hp_ratio,spd_ratio,stance_ratio,status_resistance
LightCone
pydantic-model
Represent an HSR light cone.
Attributes:
-
id(int) –The ID of the light cone.
-
rarity(Literal[3, 4, 5]) –The rarity of the light cone.
-
description(str) –The description of the light cone.
-
path(HSRPath) –The path of the light cone.
-
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) –A dictionary of names in different languages.
-
name(str) –The name of the light cone.
Fields:
-
id(int) -
rarity(Literal[3, 4, 5]) -
description(str) -
path(HSRPath) -
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) -
name(str)
Validators:
-
__format_fields -
__handle_null_value→description -
__convert_icon→icon -
__convert_rarity→rarity -
__transform_names
LightConeDetail
pydantic-model
Represent an HSR light cone detail.
Attributes:
-
id(int) –The ID of the light cone.
-
name(str) –The name of the light cone.
-
description(str | None) –The description of the light cone.
-
path(HSRPath) –The path of the light cone.
-
rarity(Literal[3, 4, 5]) –The rarity of the light cone.
-
superimpose_info(SuperimposeInfo) –Superimpose information for the light cone.
-
ascension_stats(list[dict[str, Any]]) –A list of ascension stats for the light cone.
Fields:
-
id(int) -
name(str) -
description(str | None) -
path(HSRPath) -
rarity(Literal[3, 4, 5]) -
superimpose_info(SuperimposeInfo) -
ascension_stats(list[dict[str, Any]])
Validators:
-
__format_fields -
__convert_rarity→rarity -
__extract_id
MOCDetail
pydantic-model
Memory of Chaos event details.
Attributes:
-
memory_turbulence(str) –Global modifier for the current MoC rotation.
Fields:
-
memory_turbulence(str) -
id(int) -
name(str) -
begin_time(str) -
end_time(str) -
stages(list[EndgameStage])
Validators:
-
__format_fields -
__transform_data -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages
Monster
pydantic-model
Represent an enemy monster in HSR.
Attributes:
-
id(int) –The ID of the monster.
-
icon(str) –The icon URL of the monster.
-
children(list[int]) –A list of child monster IDs associated with this monster.
-
weaknesses(list[HSRElement]) –List of elements that this monster is weak to (used for breaking toughness).
-
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) –A dictionary of names in different languages.
-
description(str) –The English description of the monster.
-
name(str) –The English name of the monster.
Fields:
-
id(int) -
icon(str) -
children(list[int]) -
weaknesses(list[HSRElement]) -
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) -
description(str) -
name(str)
Validators:
-
__format_fields -
default_empty_string_listing→description -
__convert_icon→icon -
__transform_names
MonsterDetail
pydantic-model
Represent an enemy monster with details in HSR.
Attributes:
-
id(int) –Unique identifier for the monster.
-
name(str) –Name of the monster.
-
description(str) –The description of the monster.
-
attack_base(float) –The base attack stat for this monster.
-
defence_base(float) –The base defense stat.
-
hp_base(float) –The base HP value.
-
spd_base(float) –The base speed stat.
-
stance_base(float) –The base toughness value.
-
status_resistance_base(float) –The base status resistance (used for debuff resist chance).
-
monster_types(list[ChildMonster]) –A list of
ChildMonstervariants derived from this monster.
Fields:
-
id(int) -
rank(str) -
name(str) -
description(str) -
attack_base(float) -
defence_base(float) -
hp_base(float) -
spd_base(float) -
stance_base(float) -
status_resistance_base(float) -
monster_types(list[ChildMonster])
Validators:
-
__format_fields -
default_zero_if_none→attack_base,defence_base,hp_base,spd_base,stance_base,status_resistance_base -
default_empty_string→description
New
pydantic-model
Represent new Honkai Star Rail data.
Attributes:
-
character_ids(list[int]) –A list of character IDs.
-
light_cone_ids(list[int]) –A list of light cone IDs.
-
relic_set_ids(list[int]) –A list of relic set IDs.
-
monster_ids(list[int]) –A list of monster IDs.
-
item_ids(list[int]) –A list of item IDs.
-
version(str) –The current version.
Fields:
-
character_ids(list[int]) -
light_cone_ids(list[int]) -
relic_set_ids(list[int]) -
monster_ids(list[int]) -
item_ids(list[int]) -
version(str)
Validators:
-
__format_fields
PFDetail
pydantic-model
Pure Fiction event details.
Attributes:
-
buff_options(list[EndgameBuffOptions]) –First tier of optional buffs.
-
buff_suboptions(list[EndgameBuffOptions]) –Second tier of optional buffs.
Fields:
-
buff_options(list[EndgameBuffOptions]) -
buff_suboptions(list[EndgameBuffOptions]) -
id(int) -
name(str) -
begin_time(str) -
end_time(str) -
stages(list[EndgameStage])
Validators:
-
__format_fields -
__handle_missing_fields→name,begin_time,end_time -
__handle_invalid_stages→stages
ProcessedEnemy
pydantic-model
Represents a processed enemy instance in a HSR endgame stage.
Attributes:
-
id(int) –The unique monster ID.
-
name(str) –The name of the enemy.
-
weaknesses(list[HSRElement]) –A list of elements this enemy is weak to.
-
level(int) –The level of the enemy.
-
base_hp(int) –The calculated HP of the enemy after all multipliers.
-
speed(int | None) –The calculated speed value.
-
toughness(int | None) –The calculated toughness value.
-
effect_res(float | None) –Total status effect resistance value.
Fields:
-
id(int) -
name(str) -
weaknesses(list[HSRElement]) -
level(int) -
base_hp(int) -
speed(int | None) -
toughness(int | None) -
effect_res(float | None)
Validators:
-
__format_fields
Relic
pydantic-model
RelicSet
pydantic-model
Represent an HSR relic set.
Attributes:
-
id(int) –The ID of the relic set.
-
icon(str) –The icon URL of the relic set.
-
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) –A dictionary of names in different languages.
-
name(str) –The name of the relic set.
-
set_effect(RelicSetEffects) –The set effects of the relic set.
Fields:
-
id(int) -
icon(str) -
names(dict[Literal['en', 'zh', 'ko', 'ja'], str]) -
name(str) -
set_effect(RelicSetEffects)
Validators:
-
__format_fields -
__convert_icon→icon -
__assign_set_effect→set_effect -
__assign_names
RelicSetDetail
pydantic-model
Represent an HSR relic set detail.
Attributes:
-
name(str) –The name of the relic set.
-
icon(str) –The icon URL of the relic set.
-
parts(dict[str, Relic]) –A dictionary of relic parts.
-
set_effects(SetDetailSetEffects) –The set effects of the relic set.
Fields:
-
name(str) -
icon(str) -
parts(dict[str, Relic]) -
set_effects(SetDetailSetEffects)
Validators:
-
__format_fields -
__convert_icon→icon -
__assign_set_effects→set_effects -
__convert_parts→parts
RelicSetEffect
pydantic-model
Represent a relic set effect.
Attributes:
-
descriptions(dict[Literal['en', 'zh', 'ko', 'ja'], str]) –A dictionary of descriptions in different languages.
-
description(str) –The description of the relic set effect.
-
parameters(list[float]) –A list of parameters for the relic set effect.
Fields:
-
descriptions(dict[Literal['en', 'zh', 'ko', 'ja'], str]) -
description(str) -
parameters(list[float])
Validators:
-
__format_fields -
__assign_descriptions
RelicSetEffects
pydantic-model
Represent a relic set's set effects.
Attributes:
-
two_piece(RelicSetEffect) –The two-piece set effect.
-
four_piece(RelicSetEffect | None) –The four-piece set effect, if available.
Fields:
-
two_piece(RelicSetEffect) -
four_piece(RelicSetEffect | None)
Validators:
-
__format_fields
SetDetailSetEffect
pydantic-model
Represent a relic set detail's set effect.
Attributes:
-
description(str) –The description of the set effect.
-
parameters(list[float]) –A list of parameters for the set effect.
Fields:
-
description(str) -
parameters(list[float])
Validators:
-
__format_fields -
__format_parameters
SetDetailSetEffects
pydantic-model
Represent relic set detail's set effects.
Attributes:
-
two_piece(SetDetailSetEffect) –The two-piece set effect.
-
four_piece(SetDetailSetEffect | None) –The four-piece set effect, if available.
Fields:
-
two_piece(SetDetailSetEffect) -
four_piece(SetDetailSetEffect | None)
Validators:
-
__format_fields
Skill
pydantic-model
Represent a character's skill.
Attributes:
-
name(str) –The name of the skill.
-
description(str | None) –The description of the skill, if available.
-
type(str | None) –The type of the skill, if available.
-
tag(str) –The tag of the skill.
-
energy_generation(int | None) –The energy generation of the skill, if available.
-
level_info(dict[str, SkillLevelInfo]) –A dictionary of skill level information.
Fields:
-
name(str) -
description(str | None) -
type(str | None) -
tag(str) -
energy_generation(int | None) -
level_info(dict[str, SkillLevelInfo])
Validators:
-
__format_fields
SkillLevelInfo
pydantic-model
Represent a skill's level information.
Attributes:
-
level(int) –The level of the skill.
-
parameters(list[float]) –A list of parameters for the skill level.
Fields:
-
level(int) -
parameters(list[float])
Validators:
-
__format_fields
SuperimposeInfo
pydantic-model
Represent a light cone's superimpose information.
Attributes:
-
name(str) –The name of the superimpose information.
-
description(str) –The description of the superimpose information.
-
parameters(dict[str, list[float]]) –A dictionary of parameters for the superimpose information.
Fields:
-
name(str) -
description(str) -
parameters(dict[str, list[float]])
Validators:
-
__format_fields -
__flatten_parameters