Skip to content

Commit

Permalink
Add Natlan tribe reputations
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Sep 10, 2024
1 parent fd20177 commit 5d53641
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions genshin/models/genshin/chronicle/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"Stats",
"Teapot",
"TeapotRealm",
"NatlanReputation",
"NatlanTribe",
]


Expand Down Expand Up @@ -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."""

Expand All @@ -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:
Expand Down

0 comments on commit 5d53641

Please sign in to comment.