Skip to content

Commit

Permalink
🐛 Support new starrail avatar path Remembrance
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jan 5, 2025
1 parent 7f4f6c7 commit fa37bc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions simnet/models/starrail/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
5: StarRailDestiny.XuWu,
6: StarRailDestiny.CunHu,
7: StarRailDestiny.FengRao,
8: StarRailDestiny.JiYi,
}


Expand Down
1 change: 1 addition & 0 deletions simnet/models/starrail/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class StarRailDestiny(str, Enum):
FengRao = "丰饶"
TongXie = "同谐"
XuWu = "虚无"
JiYi = "记忆"


class StarRailElement(str, Enum):
Expand Down
1 change: 1 addition & 0 deletions tests/test_starrail_calculator_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async def calculator_client(
class TestCalculatorClient:
@staticmethod
async def test_character_details(calculator_client: "StarrailCalculatorClient"):
await calculator_client.get_calculator_characters(tab_from="TabAll")
characters = await calculator_client.get_calculator_characters()
character_details = await calculator_client.get_character_details(characters[-1].id)
assert len(character_details.skills) == 4
Expand Down

0 comments on commit fa37bc0

Please sign in to comment.