mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-05 19:23:45 +08:00
🚨修复抽卡记录错误,更新圣遗物背景
This commit is contained in:
parent
f38b753d9e
commit
882d96c7bf
@ -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)
|
char_info.paste(weapon_rank_bg, (690, 880), weapon_rank_bg)
|
||||||
|
|
||||||
for relic in char.char_relic:
|
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':
|
if str(relic["SetId"])[0] == '3':
|
||||||
relic_piece_img = Image.open(
|
relic_piece_img = Image.open(
|
||||||
RELIC_PATH / f'{relic["SetId"]}_{relic["Type"] - 5}.png'
|
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 |
@ -88,7 +88,6 @@ async def _draw_card(
|
|||||||
item_pic = (
|
item_pic = (
|
||||||
Image.open(CHAR_ICON_PATH / f'{_id}.png')
|
Image.open(CHAR_ICON_PATH / f'{_id}.png')
|
||||||
.convert('RGBA')
|
.convert('RGBA')
|
||||||
.crop((0, 0, 112, 112))
|
|
||||||
.resize((105, 105))
|
.resize((105, 105))
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user