mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-05 03:03:45 +08:00
🚨修正主词条为速度时分数过高的问题
This commit is contained in:
parent
325d2891c0
commit
ef42002a94
@ -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)
|
||||
|
6
poetry.lock
generated
6
poetry.lock
generated
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user