From 5d4a154685f03885fb1017f8208b8ea3fb66ddb9 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 1 Nov 2024 11:58:31 +0000 Subject: Restore vm_add_infl_free --- rules.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 8344fdb..ea99c2c 100644 --- a/rules.js +++ b/rules.js @@ -848,7 +848,7 @@ states.add_influence = { view.prompt = 'Place SPs: done.' if (!game.vm_event_to_do) { gen_action("end_round") - } else {add_influence + } else { gen_action('done') } } else { @@ -4273,6 +4273,20 @@ function vm_take_control(space) { log(`Took control of %${space}`) } +function vm_do_add_infl_free(space) { + push_undo() + log_summary(`Added £ SP in %${space}.`) + + // Update influence values + if (game.active === COM) { + game.comInfl[space]++ + } else { + game.demInfl[space]++ + } + game.vm_available_ops-- + check_tyrant() +} + function vm_add_infl() { if (vm_operand(1)) {game.vm_available_ops = vm_operand(1)} game.state = 'vm_add_infl' -- cgit v1.2.3