Add score property to StarRailChallengeStoryFloor

This commit is contained in:
xtaodada 2024-01-09 17:08:39 +08:00
parent 9f7d581f07
commit 6d551ab25d
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -58,6 +58,11 @@ class StarRailChallengeStoryFloor(APIModel):
is_fast: bool
maze_id: int
@property
def score(self) -> int:
"""Get the score."""
return self.node_1.score + self.node_2.score
class StarRailChallengeStory(APIModel):
"""Challenge story in a season."""