summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-19 17:03:16 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commitf778826847895a3bea0e31eb577204646fd20469 (patch)
treeb4c028112a66908648e4f8252a3eebc4d5537629 /rules.js
parent639a9a6edb68adb9b6b7e09a7abf95a3b409d2ef (diff)
downloadcrusader-rex-f778826847895a3bea0e31eb577204646fd20469.tar.gz
Prettier logs with formatting and colors.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0e33e12..98fe00d 100644
--- a/rules.js
+++ b/rules.js
@@ -1242,6 +1242,7 @@ states.play_card = {
}
function reveal_cards() {
+ log("");
log("Franks play " + CARDS[game.f_card].name + ".");
log("Saracens play " + CARDS[game.s_card].name + ".");
game.show_cards = true;
@@ -1595,6 +1596,10 @@ states.confirm_end_move_phase = {
gen_action(view, 'end_move_phase');
},
end_move_phase: function () {
+ if (game.moves === 1)
+ log(game.active + " do nothing with " + game.moves + " move.");
+ else
+ log(game.active + " do nothing with " + game.moves + " moves.");
game.moves = 0;
end_move_phase();
},
@@ -2191,8 +2196,6 @@ function start_combat() {
}
function end_combat() {
- log("~ Combat Ends ~");
-
lift_siege(game.where);
if (game.jihad === game.where)
@@ -3235,6 +3238,7 @@ function goto_draw_phase() {
delete game.combat_list;
if (game.year > 1187 && !is_winter()) {
game.active = game.p1;
+ log("");
start_draw_phase();
} else {
end_game_turn();
@@ -3342,6 +3346,7 @@ function end_game_turn() {
function goto_winter_1() {
log("");
log("Start Winter of " + game.year + ".");
+ log("");
if (game.winter_campaign)
goto_winter_siege_attrition();
else