summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-21 19:50:50 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-21 20:18:54 +0200
commitc95fec01fb2dd141650995105d930b87eb4b8967 (patch)
treeb12078452315fc613f52459629052b4a57421213 /rules.js
parenta25ffdc4eb68feb805bdb112ae62d3486ba055c2 (diff)
downloadmaria-c95fec01fb2dd141650995105d930b87eb4b8967.tar.gz
x
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js23
1 files changed, 17 insertions, 6 deletions
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"
},