summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-01 11:58:31 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-01 11:58:31 +0000
commit1810f44f3d0e4684e1ac4b65b05190353f6f3310 (patch)
treee5713b987ffcddf1e20bb9cdda96a214d9a102da /rules.js
parent94d52e8ea1f8919d2e9c0931318c460360828944 (diff)
download1989-dawn-of-freedom-1810f44f3d0e4684e1ac4b65b05190353f6f3310.tar.gz
Restore vm_add_infl_free
Diffstat (limited to 'rules.js')
-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'