mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 03:55:28 +00:00
✨ Add score property to StarRailChallengeStoryFloor
This commit is contained in:
parent
9f7d581f07
commit
6d551ab25d
@ -58,6 +58,11 @@ class StarRailChallengeStoryFloor(APIModel):
|
|||||||
is_fast: bool
|
is_fast: bool
|
||||||
maze_id: int
|
maze_id: int
|
||||||
|
|
||||||
|
@property
|
||||||
|
def score(self) -> int:
|
||||||
|
"""Get the score."""
|
||||||
|
return self.node_1.score + self.node_2.score
|
||||||
|
|
||||||
|
|
||||||
class StarRailChallengeStory(APIModel):
|
class StarRailChallengeStory(APIModel):
|
||||||
"""Challenge story in a season."""
|
"""Challenge story in a season."""
|
||||||
|
Loading…
Reference in New Issue
Block a user