diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-27 18:08:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:38 +0100 |
commit | 3d4ecd18804f41743d31cb99eecd962f5210c938 (patch) | |
tree | c11cdabb67ee1eb2be3389ca187dcd87667b2ae7 /rules.js | |
parent | 1a893cd45c1816a090c497b222f868c2d12a7cdb (diff) | |
download | crusader-rex-3d4ecd18804f41743d31cb99eecd962f5210c938.tar.gz |
crusader: Use adjective form in some log messages.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 = []; |