From 3d4ecd18804f41743d31cb99eecd962f5210c938 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 27 Jun 2021 18:08:57 +0200 Subject: crusader: Use adjective form in some log messages. --- rules.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 1302d62..c3ac89c 100644 --- a/rules.js +++ b/rules.js @@ -79,6 +79,10 @@ function log(...args) { game.log.push(s); } +function active_adjective() { + return (game.active == FRANKS ? "Frank" : "Saracen"); +} + function log_move_start(from) { game.move_buf = [ from ]; } @@ -1266,7 +1270,7 @@ function reveal_cards() { function start_player_turn() { log(""); - log("Start " + game.active + " turn."); + log("Start " + active_adjective() + " turn."); reset_road_limits(); game.main_road = {}; let card = CARDS[game.active == FRANKS ? game.f_card : game.s_card]; @@ -3069,7 +3073,7 @@ states.draw_phase = { town: function (where) { let type = block_type(game.who); - log(game.active + " draw to " + where + "."); + log(game.active + " place drawn block in " + where + "."); game.location[game.who] = where; if (type == 'outremers' || type == 'emirs' || type == 'nomads') { @@ -3313,7 +3317,7 @@ states.winter_replacements = { } function end_winter_replacements() { - print_summary(game.active + " replace:"); + print_summary(active_adjective() + " replacements:"); if (game.active == FRANKS) { game.active = SARACENS; game.summary = []; -- cgit v1.2.3