From cd41012454d4faa35d3a159e266c61e690451f64 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Sun, 29 Dec 2024 09:41:52 +0100 Subject: [PATCH] Small Improvements (#2) - fix card age duration display - add debug mode - improve intro, setup and difficulty level descriptions - persist tech card drafting --- src/components/round/DebugInfo.vue | 71 ++++++++++++++++++++++++++ src/components/round/TechCard.vue | 7 ++- src/components/round/TechCardDraft.vue | 30 +++++++---- src/locales/en.json | 18 ++++--- src/store/state.ts | 2 + src/util/NavigationState.ts | 32 +++++++++--- src/views/PhaseADrafting.vue | 6 ++- src/views/PhaseBProsperity.vue | 6 ++- src/views/PhaseCIncome.vue | 6 ++- src/views/PhaseDConstruction.vue | 6 ++- src/views/PhaseEActions.vue | 6 ++- src/views/PhaseFWar.vue | 9 +++- src/views/PhaseGUpkeep.vue | 6 ++- src/views/SetupBot.vue | 1 + 14 files changed, 171 insertions(+), 35 deletions(-) create mode 100644 src/components/round/DebugInfo.vue diff --git a/src/components/round/DebugInfo.vue b/src/components/round/DebugInfo.vue new file mode 100644 index 0000000..6065c2b --- /dev/null +++ b/src/components/round/DebugInfo.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/src/components/round/TechCard.vue b/src/components/round/TechCard.vue index 11b6ded..87ce402 100644 --- a/src/components/round/TechCard.vue +++ b/src/components/round/TechCard.vue @@ -18,7 +18,7 @@
-
{{age}}
+
{{duration + round - 1}}
@@ -46,6 +46,11 @@ export default defineComponent({ required: true } }, + computed: { + round() : number { + return this.navigationState.round + } + }, methods: { isArmy(tech: Tech) : boolean { return tech == Tech.ARMY diff --git a/src/components/round/TechCardDraft.vue b/src/components/round/TechCardDraft.vue index 79801d9..07cea92 100644 --- a/src/components/round/TechCardDraft.vue +++ b/src/components/round/TechCardDraft.vue @@ -59,9 +59,9 @@