diff --git a/backend/tests/test_api.py b/backend/tests/test_api.py index aad0937..2903211 100644 --- a/backend/tests/test_api.py +++ b/backend/tests/test_api.py @@ -55,8 +55,9 @@ def test_invalid_action_is_400(client): def test_state_shape(client): state = client.post("/api/game", params={"seed": 5}).json() for key in ("round", "player", "board", "bench", "shop", "traits", - "opponents", "items", "over", "log"): + "opponents", "items", "over", "log", "shop_odds", "shop_locked"): assert key in state + assert sum(state["shop_odds"]) == 100 assert state["player"]["score"] == 0.0 assert all(o["board"] is not None for o in state["opponents"]) diff --git a/backend/tft/api/app.py b/backend/tft/api/app.py index 908af4f..c7a2d53 100644 --- a/backend/tft/api/app.py +++ b/backend/tft/api/app.py @@ -173,6 +173,7 @@ def serialize(game: Game) -> dict: for api in game.shop ], "shop_locked": game.shop_locked, + "shop_odds": game.cfg["shop"]["odds"][game.level - 1], "traits": traits_panel, "augment_offer": [ {"api_name": a, "name": static["augments"].get(a, {}).get("name", a), diff --git a/frontend/src/App.vue b/frontend/src/App.vue index eb19252..ad46606 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -20,10 +20,6 @@ const kindLabel = { pvp: 'PvP', pve: 'PvE', carousel: 'Carousel' }
Runde {{ s.round.label }} · {{ kindLabel[s.round.kind] }} ❤️ {{ s.player.hp }} - - Lvl {{ s.player.level }} - - Boardstärke {{ s.player.score }}