summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js16
1 files changed, 15 insertions, 1 deletions
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'