mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-27 18:04:08 +00:00
add
This commit is contained in:
parent
f39712816f
commit
4514b05781
@ -14,6 +14,20 @@ from starrail_damage_cal.mono.Character import Character
|
|||||||
from starrail_damage_cal.to_data import api_to_dict
|
from starrail_damage_cal.to_data import api_to_dict
|
||||||
|
|
||||||
|
|
||||||
|
async def cal_char_info(char_data: Dict):
|
||||||
|
char: Character = Character(char_data)
|
||||||
|
await char.get_equipment_info()
|
||||||
|
await char.get_char_attribute_bonus()
|
||||||
|
await char.get_relic_info()
|
||||||
|
return char
|
||||||
|
|
||||||
|
|
||||||
|
async def cal_info(char_data: Dict):
|
||||||
|
char = await cal_char_info(char_data)
|
||||||
|
avatar = AvatarInstance(char)
|
||||||
|
return await avatar.get_damage_info()
|
||||||
|
|
||||||
|
|
||||||
class DamageCal:
|
class DamageCal:
|
||||||
@classmethod
|
@classmethod
|
||||||
async def cal_info(cls, char_data: Dict):
|
async def cal_info(cls, char_data: Dict):
|
||||||
|
Loading…
Reference in New Issue
Block a user