Remove redundant cancel button from diplomatic attack warning

This commit is contained in:
coyotte508 2026-10-08 23:30:33 +02:00
commit b4dba345b2
4 changed files with 5 additions and 8 deletions

View file

@ -73,3 +73,5 @@ Viewer 0.1.36 and engine 0.4.45 fix collecting multiple resources from a single
Viewer 0.1.37 and engine 0.4.46 skip the payment prompt when New Ideas or Synergies researches a resource-free advance, including Math, Astronomy and Priesthood discounts. Research bonuses still resolve, New Ideas still grants 2 ideas, and Priesthood's once-per-turn use is recorded. The research confirmation says Free for these choices. Already-saved zero-cost payment prompts remain valid and are labelled Free. Publish the matching viewer and engine together.
Viewer 0.1.38 and engine 0.4.47 explicitly confirm attacks that break Great Diplomat agreements, explaining the 2-culture cost and card discard with resource icons. Capturing an undefended city or settlers now ends the agreement and discards its owner's Great Diplomat, just like a battle with defenders. Empty cities also require the diplomatic payment. Attacks involving a third party preserve the agreement. All supported locales include the confirmation. Publish the matching viewer and engine together.
Viewer 0.1.39 removes the redundant Cancel button from the diplomatic attack warning. The existing movement controls cancel the move; the warning and explicit attack confirmation remain. Engine 0.4.47 is unchanged.

View file

@ -1,12 +1,12 @@
{
"name": "@boardgamers/clash-web-client",
"version": "0.1.38",
"version": "0.1.39",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@boardgamers/clash-web-client",
"version": "0.1.38",
"version": "0.1.39",
"dependencies": {
"@boardgamers/protocol": "0.9.0",
"lucide-svelte": "^0.577.0",

View file

@ -1,6 +1,6 @@
{
"name": "@boardgamers/clash-web-client",
"version": "0.1.38",
"version": "0.1.39",
"private": true,
"type": "module",
"scripts": {

View file

@ -209,11 +209,6 @@
text="This attack costs 2 culture tokens, ends your diplomatic agreement and discards Great Diplomat."
/>
</p>
<button
class="secondary"
disabled={$session.pending}
onclick={() => controller.patch({ moveTarget: null, moveDestination: null })}>Cancel</button
>
</div>
{/if}
{#if destination}<div class="settler-confirm">