diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -5256,11 +5256,13 @@ function vm_support_check_modified() { game.state = 'vm_support_check_prep' } -function vm_switch_infl(id) { +function vm_switch_infl(space) { push_undo() - game.demInfl[id] -= game.vm_available_ops - game.comInfl[id] += game.vm_available_ops - log(`Replaced ${pluralize(game.vm_available_ops,'SP')} in %${id}.`) + let starting_control = check_control(space) + game.demInfl[space] -= game.vm_available_ops + game.comInfl[space] += game.vm_available_ops + let end_control = check_control(space) + log(`Replaced ${pluralize(game.vm_available_ops,'SP')} in %${space}. ${get_icons(starting_control,end_control)}`) game.vm_available_ops = 0 check_tyrant() } |