diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-27 14:09:57 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-27 14:09:57 +0100 |
commit | 53e7c53467c9e6084356d651f877c85347f9d890 (patch) | |
tree | 4b4aeab6f6a4252056eee1f102b2a41547987e0e | |
parent | 6dde02078731db314e187238a40487447acbacbc (diff) | |
download | votes-for-women-53e7c53467c9e6084356d651f877c85347f9d890.tar.gz |
Create toggle for Purple / Yellow cube color selection
-rw-r--r-- | rules.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2278,12 +2278,13 @@ states.vm_add_cubes = { inactive: "add a cube.", prompt() { if (game.vm.cubes === PURPLE_OR_YELLOW) { - gen_action("purple") - gen_action("yellow") + view.actions.purple = (game.vm.cube_color !== PURPLE) + view.actions.yellow = (game.vm.cube_color !== YELLOW) // Alternatively allow a click on a campaigner to switch color for_each_player_campaigner(c => { - gen_action_campaigner(c) + if (game.vm.cube_color !== campaigner_color(c)) + gen_action_campaigner(c) }) } |