diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-26 07:54:12 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-26 07:54:12 +0100 |
commit | 04f3fce657af20407eb0e640d925e0fe79913aac (patch) | |
tree | cfc51e5382bfd744c52c245290a4b2acddcd5b08 /rules.js | |
parent | f08940b60cb3a873aead8db1c2b25445c6af5a1e (diff) | |
download | 1989-dawn-of-freedom-04f3fce657af20407eb0e640d925e0fe79913aac.tar.gz |
Working on no null space
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -201,7 +201,7 @@ exports.view = function(state, player) { view.drawn = game.vm.draw if (player === game.active) { - if (game.selected_space > 0 ) { + if (game.selected_space) { view.valid_spaces = [game.selected_space] } else { view.valid_spaces = game.valid_spaces @@ -748,6 +748,7 @@ states.finish_support_check_prep = { //return } else { view.prompt = `Select a space. ${pluralize(game.available_ops, 'support check')} remaining.` + console.log('valid_spaces', game.valid_spaces) for (let space_id of game.valid_spaces) { gen_action_space(space_id) } @@ -3806,6 +3807,7 @@ function new_turn() { game.com_tst_attempted_this_turn = 0 if (game.tst_7) {game.tst_7 = false} if (game.tst_8) {game.tst_8 = false} + delete game.selected_space //Remove events that only last one turn game.persistent_events = game.persistent_events.filter(n => n !== 25) /*Perestroika*/ |