From ef42002a94b88b50ea95e5a6a39b0cadcc63fa05 Mon Sep 17 00:00:00 2001 From: qwerdvd <2450899274@qq.com> Date: Fri, 30 Jun 2023 15:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=E4=BF=AE=E6=AD=A3=E4=B8=BB?= =?UTF-8?q?=E8=AF=8D=E6=9D=A1=E4=B8=BA=E9=80=9F=E5=BA=A6=E6=97=B6=E5=88=86?= =?UTF-8?q?=E6=95=B0=E8=BF=87=E9=AB=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StarRailUID/starrailuid_charinfo/draw_char_img.py | 5 ++++- poetry.lock | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/StarRailUID/starrailuid_charinfo/draw_char_img.py b/StarRailUID/starrailuid_charinfo/draw_char_img.py index 8f13451..a6b54cc 100644 --- a/StarRailUID/starrailuid_charinfo/draw_char_img.py +++ b/StarRailUID/starrailuid_charinfo/draw_char_img.py @@ -664,9 +664,12 @@ async def get_relic_score( if subProperty == 'HPAddedRatio': add_value = (subValue + 1) * 1.5 * weight_dict['HPAddedRatio'] * 10 relic_score += add_value - if subProperty == 'SpeedDelta': + if subProperty == 'SpeedDelta' and not is_main: add_value = subValue * 2.53 * weight_dict['SpeedDelta'] relic_score += add_value + elif subProperty == 'SpeedDelta' and is_main: + add_value = subValue * 2.53 * weight_dict['SpeedDelta'] * 0.1 + relic_score += add_value if subProperty == 'BreakDamageAddedRatioBase': add_value = ( (subValue + 1) diff --git a/poetry.lock b/poetry.lock index 3b8ca14..4bf188c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -950,14 +950,14 @@ test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6. [[package]] name = "typing-extensions" -version = "4.6.3" +version = "4.7.0" description = "Backported and Experimental Type Hints for Python 3.7+" category = "dev" optional = false python-versions = ">=3.7" files = [ - {file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"}, - {file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"}, + {file = "typing_extensions-4.7.0-py3-none-any.whl", hash = "sha256:5d8c9dac95c27d20df12fb1d97b9793ab8b2af8a3a525e68c80e21060c161771"}, + {file = "typing_extensions-4.7.0.tar.gz", hash = "sha256:935ccf31549830cda708b42289d44b6f74084d616a00be651601a4f968e77c82"}, ] [[package]]