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