diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-11 19:39:37 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-11 19:39:37 +0000 |
commit | 337ce4a7442ef18fed5bacea3011d27090cad8b8 (patch) | |
tree | 20fab8fb5d9b203f0ab2fc32c42e8e563572de7b | |
parent | a815b2ed87eebc8422a04bb3dc851c81a88d968c (diff) | |
download | 1989-dawn-of-freedom-337ce4a7442ef18fed5bacea3011d27090cad8b8.tar.gz |
Fix Tyrant with no spaces for Ceausescus
-rw-r--r-- | rules.js | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -7834,11 +7834,16 @@ states.vm_the_chinese_solution = { states.vm_the_tyrant_is_gone = { prompt() { - view.prompt = 'The Tyrant is Gone: Select a space in Romania for the Ceausescus to flee to.' - for (let space_id of game.valid_spaces) { - if (!space_id) - continue - gen_action_space(space_id) + if (game.valid_spaces.length === 0) { + view.prompt = 'The Tyrant is Gone: No space available.' + gen_action('pass') + } else { + view.prompt = 'The Tyrant is Gone: Select a space in Romania for the Ceausescus to flee to.' + for (let space_id of game.valid_spaces) { + if (!space_id) + continue + gen_action_space(space_id) + } } }, space(space) { @@ -7848,6 +7853,10 @@ states.vm_the_tyrant_is_gone = { game.valid_spaces = [] vm_next() }, + pass() { + push_undo() + vm_next() + } } states.vm_the_wall_must_go = { |