summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-12-10 22:25:55 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-12-10 22:25:55 +0000
commita8217d42830a75151686701cd306072bc687e532 (patch)
treeea5b86d886ca3c1e2668a55566ce75d35765d2c6
parent20d88e5c423b53ff91cf08c4d2c84b96b4376db5 (diff)
download1989-dawn-of-freedom-a8217d42830a75151686701cd306072bc687e532.tar.gz
Fix typo
-rw-r--r--rules.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index bc68c47..8b8dce8 100644
--- a/rules.js
+++ b/rules.js
@@ -5147,24 +5147,28 @@ function vm_remove_all_infl() {
function vm_do_remove_all_infl(space) {
push_undo()
-
+ let starting_control = check_control(space)
if (game.remove_opponent_infl === true) {
if (game.active === COM) {
- log(`Removed all Democratic SP from %${space}.`)
game.demInfl[space] = 0
+ let end_control = check_control(space)
+ log(`Removed all Democratic SP from %${space}${get_icons(starting_control, end_control)}`)
} else {
- log(`Removed all Communist SP from %${space}.`)
game.comInfl[space] = 0
+ let end_control = check_control(space)
+ log(`Removed all Communist SP from %${space}${get_icons(starting_control, end_control)}`)
}
check_tyrant()
} else {
if (game.active === COM) {
- log(`Removed all Communist SP from %${space}.`)
game.comInfl[space] = 0
+ let end_control = check_control(space)
+ log(`Removed all Communist SP from %${space}${get_icons(starting_control, end_control)}`)
} else {
- log(`Removed all Democratic SP from %${space}.`)
game.demInfl[space] = 0
+ let end_control = check_control(space)
+ log(`Removed all Democratic SP from %${space}${get_icons(starting_control, end_control)}`)
}
check_tyrant()
}