From 6d551ab25dc72c534a7f90aebd060dbead4ac173 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 9 Jan 2024 17:08:39 +0800 Subject: [PATCH] :sparkles: Add score property to StarRailChallengeStoryFloor --- simnet/models/starrail/chronicle/challenge_story.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simnet/models/starrail/chronicle/challenge_story.py b/simnet/models/starrail/chronicle/challenge_story.py index d4940bb..3bea321 100644 --- a/simnet/models/starrail/chronicle/challenge_story.py +++ b/simnet/models/starrail/chronicle/challenge_story.py @@ -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."""