mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-05 19:23:45 +08:00
🚨 pre-commit-ci
修复格式错误
This commit is contained in:
parent
f6be3ee238
commit
b72331eae8
@ -422,7 +422,12 @@ async def draw_char_img(char_data: Dict, sr_uid: str, msg: str):
|
||||
desctexty = 115
|
||||
for desctext in desclist:
|
||||
desctexty = draw_text_by_line(
|
||||
weapon_bg, (210, desctexty), desctext, sr_font_24, '#F9F9F9', 370
|
||||
weapon_bg,
|
||||
(210, desctexty),
|
||||
desctext,
|
||||
sr_font_24,
|
||||
'#F9F9F9',
|
||||
370,
|
||||
)
|
||||
desctexty += 28
|
||||
char_info.paste(weapon_bg, (0, 855), weapon_bg)
|
||||
|
@ -1680,6 +1680,7 @@ class Thisbodyisasword(BaseWeapon):
|
||||
|
||||
return attribute_bonus
|
||||
|
||||
|
||||
# 如泥酣眠
|
||||
class SleepLiketheDead(BaseWeapon):
|
||||
weapon_base_attributes: Dict
|
||||
@ -1707,6 +1708,7 @@ class SleepLiketheDead(BaseWeapon):
|
||||
)
|
||||
return attribute_bonus
|
||||
|
||||
|
||||
class Weapon:
|
||||
@classmethod
|
||||
def create(cls, weapon: DamageInstanceWeapon):
|
||||
|
@ -20,8 +20,6 @@ from ..utils.map.SR_MAP_PATH import (
|
||||
EquipmentID2Rarity,
|
||||
rankId2Name,
|
||||
avatarId2Name,
|
||||
avatarId2EnName,
|
||||
avatarId2DamageType,
|
||||
)
|
||||
|
||||
WEAPON_TO_INT = {
|
||||
@ -109,7 +107,11 @@ async def get_char_args(
|
||||
continue
|
||||
|
||||
if '遗器' in part:
|
||||
char_data = await get_fake_char_data(char_data, part.replace('遗器', '').replace(changeuid, ''), changeuid)
|
||||
char_data = await get_fake_char_data(
|
||||
char_data,
|
||||
part.replace('遗器', '').replace(changeuid, ''),
|
||||
changeuid,
|
||||
)
|
||||
if isinstance(char_data, str):
|
||||
return char_data
|
||||
else:
|
||||
@ -241,6 +243,7 @@ async def get_rank_list(
|
||||
rank_temp.append(rankTemp)
|
||||
return rank_temp
|
||||
|
||||
|
||||
async def get_char(
|
||||
char_data: dict,
|
||||
weapon: Optional[str] = None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user