diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-10 15:51:56 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-10 15:51:56 +0000 |
commit | 1c830e2f6092bd777d4c70bc6282f5162473050d (patch) | |
tree | e780a4b30f582d9cfc1fb06276d0df6ef3f551e5 /rules.js | |
parent | 95c3179873db314979f55b8a25a8d23a706e3c23 (diff) | |
download | 1989-dawn-of-freedom-1c830e2f6092bd777d4c70bc6282f5162473050d.tar.gz |
Fix stuck when unable to place influence
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -888,7 +888,14 @@ states.add_influence = { inactive: 'place SPs', prompt() { if (game.available_ops <= 0) { - view.prompt = 'Place SPs done.' + view.prompt = 'Place SPs: Done.' + if (!game.vm_event_to_do) { + gen_action("end_round") + } else { + gen_action('done') + } + } else if (game.valid_spaces.length === 0) { + view.prompt = 'Place SPs: no spaces remaining.' if (!game.vm_event_to_do) { gen_action("end_round") } else { |