mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-09 17:40:17 +00:00
impr(calc): negative result of play_rating_from_step
This commit is contained in:
parent
0c292fc3be
commit
3867b273c7
@ -172,4 +172,4 @@ def calculate_play_rating_from_step(
|
||||
play_rating_sqrt = (Decimal(50) * step - Decimal("2.5") * partner_step_value) / (
|
||||
Decimal("2.45") * partner_step_value
|
||||
)
|
||||
return play_rating_sqrt**2
|
||||
return play_rating_sqrt**2 if play_rating_sqrt >= 0 else -(play_rating_sqrt**2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user