diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-03 13:53:00 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-03 13:53:00 +0100 |
commit | 466d44c32f99ed5a5c4d8699cd10844cd39fedfb (patch) | |
tree | 0873b257d58822ae6c36ebfe03a070da58df5f16 | |
parent | 0379e9f9be907cc1f879aa85eb7d9850e27198b2 (diff) | |
download | 1989-dawn-of-freedom-466d44c32f99ed5a5c4d8699cd10844cd39fedfb.tar.gz |
Added separate state for Common European Home
-rw-r--r-- | rules.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6106,13 +6106,13 @@ states.vm_support_check_prep = { states.vm_ceh_support_check_prep = {
inactive: 'do support checks.',
prompt () {
- if (game.available_ops === 0) {
+ if (game.vm_available_ops === 0) {
view.prompt = 'Support checks: done.'
gen_action('done')
//return
}
- if (game.available_ops > 0) {
- view.prompt = `Select a space. ${pluralize(game.available_ops, 'support check')} remaining.`
+ if (game.vm_available_ops > 0) {
+ view.prompt = `Select a space. ${pluralize(game.vm_available_ops, 'support check')} remaining.`
for (let space_id of game.valid_spaces) {
gen_action_sc(spaces[space_id].name_unique)
@@ -6150,6 +6150,7 @@ states.vm_ceh_do_support_check = { roll() {
clear_undo()
do_sc(spaces[game.selected_space].name_unique)
+
game.vm_available_ops--
if (game.vm_available_ops === 0) {
game.valid_spaces = []
|