summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-08-03 02:01:58 +0200
committerTor Andersson <tor@ccxvii.net>2023-08-03 02:03:52 +0200
commit6f2230d57630d51aaa3a1929c686f5e2a48d79d1 (patch)
treec2e44a4a07e2a73be75df542cfcc60e830f63e2b
parent377d116fb63d9ab234e6cb872f9e8e029b98b911 (diff)
downloadtime-of-crisis-6f2230d57630d51aaa3a1929c686f5e2a48d79d1.tar.gz
Increase support after killing figure by clicking support square.
-rw-r--r--rules.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 39f1372..3c1e44b 100644
--- a/rules.js
+++ b/rules.js
@@ -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()