From 563b03dd4260fe8f39629f49de698753999ef74e Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sun, 9 Feb 2025 17:40:50 +0000 Subject: Add Claim Award button --- play.js | 1 + rules.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/play.js b/play.js index 290c9b1..60c80fa 100644 --- a/play.js +++ b/play.js @@ -874,6 +874,7 @@ function on_update() { ui.spaces[s].classList.toggle("systematization", view.systematization === s) } + action_button("claim", "Claim Award") action_button("east_germany", "East Germany") action_button("poland", "Poland") action_button("czechoslovakia", "Czechoslovakia") diff --git a/rules.js b/rules.js index 00c31fc..a1a89ee 100644 --- a/rules.js +++ b/rules.js @@ -941,13 +941,13 @@ states.tiananmen_square_attempt_success = { prompt() { if (game.vm_event > 200) { // TODO magic number view.prompt = 'Tiananmen Square Attempt: Successful. Claim award.' - gen_action('done') + gen_action('claim') } else { view.prompt = 'Tiananmen Square Attempt: Successful.' gen_action('end_round') } }, - done() { + claim() { push_undo() goto_vm(game.vm_event) }, -- cgit v1.2.3