summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-27 18:08:57 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:38 +0100
commit3d4ecd18804f41743d31cb99eecd962f5210c938 (patch)
treec11cdabb67ee1eb2be3389ca187dcd87667b2ae7 /rules.js
parent1a893cd45c1816a090c497b222f868c2d12a7cdb (diff)
downloadcrusader-rex-3d4ecd18804f41743d31cb99eecd962f5210c938.tar.gz
crusader: Use adjective form in some log messages.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js10
1 files changed, 7 insertions, 3 deletions
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 = [];