From 5d536412e0271f66ffcd98ae36dbe4487a64a962 Mon Sep 17 00:00:00 2001 From: seriaati Date: Tue, 10 Sep 2024 11:22:59 +0800 Subject: [PATCH] Add Natlan tribe reputations --- genshin/models/genshin/chronicle/stats.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/genshin/models/genshin/chronicle/stats.py b/genshin/models/genshin/chronicle/stats.py index 6e04830c..f27edb3a 100644 --- a/genshin/models/genshin/chronicle/stats.py +++ b/genshin/models/genshin/chronicle/stats.py @@ -27,6 +27,8 @@ "Stats", "Teapot", "TeapotRealm", + "NatlanReputation", + "NatlanTribe", ] @@ -91,6 +93,22 @@ def explored(self) -> float: return self.raw_explored / 10 +class NatlanTribe(APIModel): + """Natlan tribe data.""" + + icon: str + image: str + name: str + id: int + level: int + + +class NatlanReputation(APIModel): + """Natlan reputation data.""" + + tribes: typing.Sequence[NatlanTribe] + + class Exploration(APIModel): """Exploration data.""" @@ -112,6 +130,7 @@ class Exploration(APIModel): offerings: typing.Sequence[Offering] boss_list: typing.Sequence[BossKill] area_exploration_list: typing.Sequence[AreaExploration] + natlan_reputation: typing.Optional[NatlanReputation] = Aliased("natan_reputation", default=None) @property def explored(self) -> float: