补充新遗器的速度加成

This commit is contained in:
qwerdvd 2023-09-24 09:52:33 +08:00
parent 9541350493
commit ca138cf1d1

View File

@ -238,7 +238,10 @@ async def draw_char_img(char_data: Dict, sr_uid: str, msg: str):
) )
# 速度 # 速度
speed = int(char.base_attributes['speed']) speed = int(char.base_attributes['speed'])
add_speed = int(char.add_attr.get('SpeedDelta', 0)) add_speed = int(
char.add_attr.get('SpeedDelta', 0)
+ speed * char.add_attr.get('SpeedAddedRatio', 0)
)
attr_bg_draw.text( attr_bg_draw.text(
(413, 31 + 48 * 3), (413, 31 + 48 * 3),
f'{speed + add_speed}', f'{speed + add_speed}',