From 45689191321b9fe89a42149235f4cf1171a97279 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Sat, 19 Oct 2024 20:35:13 +0200 Subject: [PATCH] reset, resource count --- src/components/turn/DebugInfo.vue | 3 +- src/components/turn/SideBar.vue | 53 +++++++++++++++++++++++-- src/services/BotActions.ts | 14 +++++++ src/store/state.ts | 1 + src/util/NavigationState.ts | 17 +++++--- src/views/TurnBot.vue | 23 +++++++++-- tests/unit/helper/mockTurn.ts | 4 +- tests/unit/util/NavigationState.spec.ts | 4 +- 8 files changed, 102 insertions(+), 17 deletions(-) diff --git a/src/components/turn/DebugInfo.vue b/src/components/turn/DebugInfo.vue index a2ece0e..98d5353 100644 --- a/src/components/turn/DebugInfo.vue +++ b/src/components/turn/DebugInfo.vue @@ -4,7 +4,8 @@

cardDeck: {{cardDeck.toPersistence()}}
currentCard: {{cardDeck.currentCard}}
- rolls: action={{navigationState.actionRoll}}, territory={{navigationState.territoryRoll}}, beacon={{navigationState.beaconRoll}}
+ rolls: action={{navigationState.actionRoll}}, territory={{navigationState.territoryRoll}}, beacon={{navigationState.beaconRoll}}, + difficultyLevel: {{navigationState.difficultyLevel}}

diff --git a/src/components/turn/SideBar.vue b/src/components/turn/SideBar.vue index a69f562..0907d52 100644 --- a/src/components/turn/SideBar.vue +++ b/src/components/turn/SideBar.vue @@ -1,17 +1,39 @@