summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-02 18:35:30 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-02 18:35:30 +0100
commitc2c07055d8ad64ae384c5997bfaa1b766d09f15d (patch)
treed46a62bc8ca866eb60ed09fd98c6ea91ce0ccef1 /rules.js
parent910f4ce43eb2ad1c0078473ff37d13eb7a46a331 (diff)
downloadvotes-for-women-c2c07055d8ad64ae384c5997bfaa1b766d09f15d.tar.gz
Tweak log headers.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js23
1 files changed, 10 insertions, 13 deletions
diff --git a/rules.js b/rules.js
index 6454ad8..85335e2 100644
--- a/rules.js
+++ b/rules.js
@@ -906,7 +906,6 @@ function goto_operations_phase() {
game.state = "operations_phase"
game.active = SUF
game.round = 1
- begin_player_round()
}
const THE_CIVIL_WAR = find_card("The Civil War")
@@ -1079,21 +1078,24 @@ states.operations_phase = {
},
card_campaigning(c) {
push_undo()
- log_h3(`C${c} - Campaigning`)
+ log_round("Campaigning")
+ log("C" + c)
log_br()
update_card_played(c)
goto_campaigning(c)
},
card_organizing(c) {
push_undo()
- log_h3(`C${c} - Organizing`)
+ log_round("Organizing")
+ log("C" + c)
log_br()
update_card_played(c)
goto_organizing(c)
},
card_lobbying(c) {
push_undo()
- log_h3(`C${c} - Lobbying`)
+ log_round("Lobbying")
+ log("C" + c)
log_br()
update_card_played(c)
goto_lobbying(c)
@@ -1104,17 +1106,14 @@ states.operations_phase = {
}
function play_card_event(c) {
- log_h3(`C${c} - Event`)
+ log_round("Event")
+ log("C" + c)
if (has_extra_event_cost())
decrease_player_buttons(1)
log_br()
goto_event(c)
}
-function begin_player_round() {
- log_round(`Round ${game.round}`)
-}
-
function end_player_round() {
clear_undo()
delete game.has_played_claimed
@@ -1128,10 +1127,8 @@ function end_player_round() {
game.round += 1
} else {
goto_cleanup_phase()
- return
}
}
- begin_player_round()
}
function discard_persistent_card(cards, c) {
@@ -3087,9 +3084,9 @@ function log_h3(msg) {
function log_round(msg) {
log_br()
if (game.active === SUF)
- log(".h3.suf " + msg)
+ log(".h3.suf " + game.round + " \u2013 " + msg)
else
- log(".h3.opp " + msg)
+ log(".h3.opp " + game.round + " \u2013 " + msg)
log_br()
}