mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-21 15:00:18 +00:00
fix: linter warning PLR2004
This commit is contained in:
parent
b8136bf25f
commit
4e799034d7
@ -44,9 +44,9 @@ class PlayResultCalculators:
|
|||||||
if score < 0:
|
if score < 0:
|
||||||
raise ValueError("score cannot be negative")
|
raise ValueError("score cannot be negative")
|
||||||
|
|
||||||
if score >= 10000000:
|
if score >= ScoreLowerLimits.PM:
|
||||||
return Decimal(2)
|
return Decimal(2)
|
||||||
if score >= 9800000:
|
if score >= ScoreLowerLimits.EX:
|
||||||
return Decimal(1) + (Decimal(score - 9800000) / 200000)
|
return Decimal(1) + (Decimal(score - 9800000) / 200000)
|
||||||
return Decimal(score - 9500000) / 300000
|
return Decimal(score - 9500000) / 300000
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ from dataclasses import dataclass
|
|||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class ScoreLowerLimits:
|
class ScoreLowerLimits:
|
||||||
|
PM = 10000000
|
||||||
EX_PLUS = 9900000
|
EX_PLUS = 9900000
|
||||||
EX = 9800000
|
EX = 9800000
|
||||||
AA = 9500000
|
AA = 9500000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user