From 836907a78398464724700cc992251888e5e047f7 Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Sat, 31 Oct 2026 10:55:45 +0100 Subject: [PATCH] feat: coins pay for villages, not noblemen: the academy's coin box shows coins minted, villages held and paid for beyond the first, the coins one more village needs in total, and warns in amber when the coins pay for no further village; loyalty and error wording follow; the mock keeps minted coins Co-Authored-By: Claude Opus 5.5 (1M context) --- app/components/village/CoinPanel.vue | 16 ++++++++++++---- app/mock/server.ts | 26 ++++++++++++++++++++++---- app/types/game.ts | 11 ++++++++--- i18n/locales/en.ts | 2 +- i18n/pages/village.ts | 16 ++++++++++------ 5 files changed, 53 insertions(+), 18 deletions(-) diff --git a/app/components/village/CoinPanel.vue b/app/components/village/CoinPanel.vue index 7153d80..9189eae 100644 --- a/app/components/village/CoinPanel.vue +++ b/app/components/village/CoinPanel.vue @@ -9,14 +9,16 @@ const count = ref(1) const affordable = computed(() => Math.floor(Math.min(...(['wood', 'clay', 'iron'] as const).map((r) => (props.conquest.coin_cost[r] ? props.resources[r] / props.conquest.coin_cost[r] : Infinity)))), ) +/** Coins pay for another village: noblemen at loyalty 0 take one. */ +const room = computed(() => props.conquest.slots > props.conquest.used) - +