🚨修正主词条为速度时分数过高的问题

This commit is contained in:
qwerdvd 2023-06-30 15:59:49 +08:00
parent 325d2891c0
commit ef42002a94
2 changed files with 7 additions and 4 deletions

View File

@ -664,9 +664,12 @@ async def get_relic_score(
if subProperty == 'HPAddedRatio': if subProperty == 'HPAddedRatio':
add_value = (subValue + 1) * 1.5 * weight_dict['HPAddedRatio'] * 10 add_value = (subValue + 1) * 1.5 * weight_dict['HPAddedRatio'] * 10
relic_score += add_value relic_score += add_value
if subProperty == 'SpeedDelta': if subProperty == 'SpeedDelta' and not is_main:
add_value = subValue * 2.53 * weight_dict['SpeedDelta'] add_value = subValue * 2.53 * weight_dict['SpeedDelta']
relic_score += add_value 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': if subProperty == 'BreakDamageAddedRatioBase':
add_value = ( add_value = (
(subValue + 1) (subValue + 1)

6
poetry.lock generated
View File

@ -950,14 +950,14 @@ test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6.
[[package]] [[package]]
name = "typing-extensions" name = "typing-extensions"
version = "4.6.3" version = "4.7.0"
description = "Backported and Experimental Type Hints for Python 3.7+" description = "Backported and Experimental Type Hints for Python 3.7+"
category = "dev" category = "dev"
optional = false optional = false
python-versions = ">=3.7" python-versions = ">=3.7"
files = [ files = [
{file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"}, {file = "typing_extensions-4.7.0-py3-none-any.whl", hash = "sha256:5d8c9dac95c27d20df12fb1d97b9793ab8b2af8a3a525e68c80e21060c161771"},
{file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"}, {file = "typing_extensions-4.7.0.tar.gz", hash = "sha256:935ccf31549830cda708b42289d44b6f74084d616a00be651601a4f968e77c82"},
] ]
[[package]] [[package]]