From c95fec01fb2dd141650995105d930b87eb4b8967 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 21 Oct 2024 19:50:50 +0200 Subject: x --- rules.js | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 1cbe2a4..b7a3d19 100644 --- a/rules.js +++ b/rules.js @@ -4,9 +4,10 @@ /* TODO -renumber - major powers 0-4 - minor powers 5-6 +show who controls which power in player list + +austria/pragmatic move order on flanders (start with pragmatic) + only stack if agree (undo/move to previous space) winter scoring @@ -15,7 +16,10 @@ tc draw -- advanced -- +silesia home country for prussia + tc subsidies + minor when major fortress enemy occupied subsidy contracts arenberg supply exception @@ -1163,12 +1167,19 @@ function draw_tc(n) { } function goto_tactical_cards() { - // TODO: pause to decide subsidy (france/bavaria) // TODO: no TC (even subsidy) if major fortress is enemy controlled - draw_tc(tc_per_turn()) + if (game.power === P_BAVARIA && is_enemy_controlled_fortress(MUNCHEN)) { + log("S" + MUNCHEN + " is enemy controlled.") + game.draw = [] + } else if (game.power === P_SAXONY && is_enemy_controlled_fortress(DRESDEN)) { + log("S" + DRESDEN + " is enemy controlled.") + game.draw = [] + } else { + draw_tc(tc_per_turn()) + } game.state = "tactical_cards_show" } @@ -3359,7 +3370,7 @@ states.setup_general = { view.actions.value.push(i) }, value(v) { - game.troops[game.selected] += v + game.troops[game.selected] = v game.selected = -1 game.state = "setup" }, -- cgit v1.2.3