From ab3f02b4d0706ebdcde8ba6ba630469fe4d6c99e Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 4 Jan 2025 19:53:06 +0000 Subject: Add icons to Switch Influence --- rules.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 0cbf71c..c05bcd6 100644 --- a/rules.js +++ b/rules.js @@ -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() } -- cgit v1.2.3