diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-08-03 02:01:58 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-08-03 02:03:52 +0200 |
commit | 6f2230d57630d51aaa3a1929c686f5e2a48d79d1 (patch) | |
tree | c2e44a4a07e2a73be75df542cfcc60e830f63e2b /rules.js | |
parent | 377d116fb63d9ab234e6cb872f9e8e029b98b911 (diff) | |
download | time-of-crisis-6f2230d57630d51aaa3a1929c686f5e2a48d79d1.tar.gz |
Increase support after killing figure by clicking support square.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -4701,17 +4701,21 @@ states.free_increase_support_level = { prompt() { prompt("Combat: Increase support level or keep counter to reduce cost of card?") view.color = POPULACE - gen_action_region(game.where) + gen_action_support(game.where, get_support(game.where) + 1) view.actions.keep = 1 }, - region(where) { + support() { push_undo() log("Increased support level.") - increase_support(where) + increase_support(game.where) let bit = find_next_killed_in_combat() game.combat.killed &= ~bit goto_free_increase_support_level() }, + region(where) { + push_undo() + this.support() + }, keep() { push_undo() let bit = find_next_killed_in_combat() |