diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-09 17:40:50 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-09 17:40:50 +0000 |
commit | 563b03dd4260fe8f39629f49de698753999ef74e (patch) | |
tree | 24f7ae11168729ddf7d5b16c649d9b0a90fc0db4 | |
parent | 65d2a2e3f45193ebf6f6c1777af80655af44e1ee (diff) | |
download | 1989-dawn-of-freedom-563b03dd4260fe8f39629f49de698753999ef74e.tar.gz |
Add Claim Award button
-rw-r--r-- | play.js | 1 | ||||
-rw-r--r-- | rules.js | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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") @@ -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) }, |