API Reference
utils
Functions:
-
calc_gi_chara_upgrade_stat_values–Calculate the stat values of a GI character at a certain level and ascension status.
-
calc_hsr_chara_upgrade_stat_values–Calculate the stat values of an HSR character at a certain level and ascension status.
-
calc_light_cone_upgrade_stat_values–Calculate the stat values of an HSR light cone at a certain level and ascension status.
-
calc_weapon_upgrade_stat_values–Calculate the stat values of a GI weapon at a certain level and ascension.
-
cleanup_text–Remove HTML tags and sprite presets from a string.
-
extract_sprite_presets–Extract sprite presets from a string.
-
format_num–Format a number to a string with a fixed number of digits after the decimal point.
-
format_stat_values–Format the stat values to a human-readable format.
-
get_ascension_from_level–Get the ascension from the level and ascended status.
-
get_max_level_from_ascension–Get the max level from the ascension.
-
get_skill_attributes–Get the skill attributes from the descriptions.
-
remove_ruby_tags–Remove ruby tags from a string.
-
replace_device_params–Replace device parameters in a string with the corresponding values.
-
replace_fight_prop_with_name–Replace the fight prop with the corresponding name.
-
replace_layout–Replace the layout in a string with the corresponding word.
-
replace_params–Replace parameters in a string with the corresponding values.
-
replace_placeholders–Replace placeholders in the given text with values from the parameter list.
Attributes:
-
T–
T
module-attribute
T = TypeVar('T')
-
API Reference
API Reference
utilsreplace_fight_prop_with_name
-
API Reference
API Reference
utilsreplace_fight_prop_with_name
calc_gi_chara_upgrade_stat_values
calc_gi_chara_upgrade_stat_values(
character: CharacterDetail, level: int, ascended: bool
) -> dict[str, float]
Calculate the stat values of a GI character at a certain level and ascension status.
Parameters:
-
(characterCharacterDetail) –The character to calculate the stats for.
-
(levelint) –The level of the character.
-
(ascendedbool) –Whether the character is ascended.
Returns:
calc_hsr_chara_upgrade_stat_values
calc_hsr_chara_upgrade_stat_values(
character: CharacterDetail, level: int, ascended: bool
) -> dict[str, float]
Calculate the stat values of an HSR character at a certain level and ascension status.
Parameters:
-
(characterCharacterDetail) –The character to calculate the stats for.
-
(levelint) –The level of the character.
-
(ascendedbool) –Whether the character is ascended.
Returns:
calc_light_cone_upgrade_stat_values
calc_light_cone_upgrade_stat_values(
light_cone: LightConeDetail, level: int, ascended: bool
) -> dict[str, float]
Calculate the stat values of an HSR light cone at a certain level and ascension status.
Parameters:
-
(light_coneLightConeDetail) –The light cone to calculate the stats for.
-
(levelint) –The level of the light cone.
-
(ascendedbool) –Whether the light cone is ascended.
Returns:
calc_weapon_upgrade_stat_values
cleanup_text
extract_sprite_presets
format_num
format_num(digits: int, calculation: float) -> str
format_stat_values
get_ascension_from_level
get_max_level_from_ascension
get_skill_attributes
remove_ruby_tags
replace_device_params
Replace device parameters in a string with the corresponding values.