🚨修复抽卡记录错误,更新圣遗物背景

This commit is contained in:
qwerdvd 2023-05-13 19:58:31 +08:00
parent f38b753d9e
commit 882d96c7bf
5 changed files with 2 additions and 2 deletions

View File

@ -424,7 +424,8 @@ async def draw_char_info_img(raw_mes: str, sr_uid: str, url: Optional[str]):
char_info.paste(weapon_rank_bg, (690, 880), weapon_rank_bg)
for relic in char.char_relic:
relic_img = Image.open(TEXT_PATH / 'yq_bg3.png')
rarity = RelicId2Rarity[str(relic["relicId"])]
relic_img = Image.open(TEXT_PATH / f'yq_bg{rarity}.png')
if str(relic["SetId"])[0] == '3':
relic_piece_img = Image.open(
RELIC_PATH / f'{relic["SetId"]}_{relic["Type"] - 5}.png'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -88,7 +88,6 @@ async def _draw_card(
item_pic = (
Image.open(CHAR_ICON_PATH / f'{_id}.png')
.convert('RGBA')
.crop((0, 0, 112, 112))
.resize((105, 105))
)
else: