mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-05 19:23:45 +08:00
🚨修复遗器套装属性未生效的问题
This commit is contained in:
parent
33d52d6e6f
commit
c01eed2540
@ -12,9 +12,9 @@ from gsuid_core.utils.image.convert import convert_img
|
||||
from gsuid_core.utils.image.image_tools import draw_text_by_line
|
||||
|
||||
from .mono.Character import Character
|
||||
from ..utils.fonts.first_world import fw_font_120
|
||||
from ..utils.map.SR_MAP_PATH import RelicId2Rarity
|
||||
from ..utils.excel.read_excel import light_cone_ranks
|
||||
from ..utils.fonts.first_world import fw_font_28, fw_font_120
|
||||
from ..utils.map.name_covert import name_to_avatar_id, alias_to_char_name
|
||||
from ..utils.resource.RESOURCE_PATH import (
|
||||
RELIC_PATH,
|
||||
@ -121,7 +121,7 @@ async def draw_char_info_img(raw_mes: str, sr_uid: str, url: Optional[str]):
|
||||
|
||||
# 放uid
|
||||
char_img_draw.text(
|
||||
(995, 715), f'UID: {sr_uid}', white_color, sr_font_28, 'rm'
|
||||
(995, 715), f'UID: {sr_uid}', white_color, fw_font_28, 'rm'
|
||||
)
|
||||
|
||||
# 放属性列表
|
||||
|
@ -111,7 +111,7 @@ class Character:
|
||||
set_property = ''
|
||||
set_id = item[0]
|
||||
count = item[1]
|
||||
if count == 2 or count == 3:
|
||||
if count >= 2:
|
||||
set_property = RelicSetSkill[str(set_id)]['2']['Property']
|
||||
set_value = mp.mpf(RelicSetSkill[str(set_id)]['2']['Value'])
|
||||
if count == 4 and RelicSetSkill[str(set_id)]['4'] != {}:
|
||||
|
@ -10,4 +10,5 @@ def first_word_origin(size: int) -> ImageFont.FreeTypeFont:
|
||||
|
||||
|
||||
fw_font_12 = first_word_origin(12)
|
||||
fw_font_28 = first_word_origin(28)
|
||||
fw_font_120 = first_word_origin(34)
|
||||
|
Loading…
x
Reference in New Issue
Block a user