summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-09 20:26:44 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commit8126ceb4758f3b78c7e84b180a5d9b07f864d16b (patch)
treefb3cd34d6b1979f0fc4220627775c370ef3172dd
parentc2ab0eb70d1c309b716dfd69678a31d41b2257ca (diff)
downloadpax-pamir-8126ceb4758f3b78c7e84b180a5d9b07f864d16b.tar.gz
Fix log messages.
-rw-r--r--rules.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 56026b3..c2f6585 100644
--- a/rules.js
+++ b/rules.js
@@ -2154,8 +2154,7 @@ states.cleanup_hand = {
function do_discard_event(row, c) {
game.market_cards[row][0] = 0;
logbr();
- log(`Discarded ${cards[c].if_discarded}.`);
- logbr();
+ log(`Discarded #${c}.`);
if (is_dominance_check(c)) {
do_dominance_check();
if (game.state === 'game_over')
@@ -2245,6 +2244,7 @@ function goto_refill_market() {
const events_if_discarded = {
"Military" () {
+ logi("Favored suit to Military.");
game.favor = Military;
goto_discard_events();
},
@@ -2260,31 +2260,37 @@ const events_if_discarded = {
},
"Failure to Impress" () {
+ logi("Discarded all loyalty prizes.");
for (let p = 0; p < game.players.length; ++p)
game.players[p].prizes = 0;
goto_discard_events();
},
"Riots in Punjab" () {
+ logi("Removed all tribes and armies in Punjab.");
remove_all_tribes_and_armies(Punjab);
goto_discard_events();
},
"Riots in Herat" () {
+ logi("Removed all tribes and armies in Herat.");
remove_all_tribes_and_armies(Herat);
goto_discard_events();
},
"No effect" () {
+ logi("No effect.");
goto_discard_events();
},
"Riots in Kabul" () {
+ logi("Removed all tribes and armies in Kabul.");
remove_all_tribes_and_armies(Kabul);
goto_discard_events();
},
"Riots in Persia" () {
+ logi("Removed all tribes and armies in Persia.");
remove_all_tribes_and_armies(Persia);
goto_discard_events();
},
@@ -2296,11 +2302,13 @@ const events_if_discarded = {
},
"Intelligence" () {
+ logi("Favored suit to Intelligence.");
game.favored = Intelligence;
goto_discard_events();
},
"Political" () {
+ logi("Favored suit to Political.");
game.favored = Political;
goto_discard_events();
},