summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-06 11:29:11 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-08 12:52:02 +0200
commit111988c6d409029a1a27e20ebb9a4e2c90bcfeab (patch)
treee0c9c98a9e8fe949bc44447df104d5afce1636e1 /rules.js
parent4a8d29b681c033596ef115583d0f6c5000f64f10 (diff)
downloadtime-of-crisis-111988c6d409029a1a27e20ebb9a4e2c90bcfeab.tar.gz
Put place governor actions and battles in colored boxes in log.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index cbc9b3f..f970bb6 100644
--- a/rules.js
+++ b/rules.js
@@ -2700,7 +2700,7 @@ states.damnatio_memoriae = {
},
card(c) {
push_undo()
- log("Damnatio Memoriae.")
+ log_h3("Damnatio Memoriae.")
set_add(game.used, c)
play_card_event(c)
},
@@ -3077,6 +3077,10 @@ states.replace_pretender_governor = {
}
function end_occupation_of_pretender_capital() {
+ if (game.combat) {
+ end_combat()
+ return
+ }
log_br()
resume_take_actions()
}
@@ -4523,8 +4527,7 @@ states.combat_victory = {
}
function goto_combat_victory() {
- log_br()
- log("RESULT")
+ log_h3("RESULT")
let de = is_defender_eliminated()
let ae = is_attacker_eliminated()
if (de && ae)