diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-03 02:25:54 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-07 19:05:52 +0200 |
commit | 07958fc43509c1210af598dd456024949e058f98 (patch) | |
tree | 444522de81ab0c2da0d88a28c2f08caaa260a1ff | |
parent | ed0f37f1142f468199ca9420552ff0979bdfe43d (diff) | |
download | time-of-crisis-07958fc43509c1210af598dd456024949e058f98.tar.gz |
Tweak final score.
-rw-r--r-- | rules.js | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -4910,9 +4910,12 @@ function max_emperor_turns(cutoff) { function award_emperor_turns(amount, cutoff) { let x = max_emperor_turns(cutoff) if (x > 0) { - for (let p = 0; p < get_player_count(); ++p) - if (game.emperor_turns[p] === x) - award_legacy(p, "Emperor Turns", amount) + for (let p = 0; p < get_player_count(); ++p) { + if (game.emperor_turns[p] === x) { + logi(PLAYER_NAME[p] + " +" + amount + " Legacy") + game.legacy[p] += amount + } + } } return x } @@ -4942,23 +4945,16 @@ function goto_game_end() { game.crisis[4] = 0 log_h3("Emperor Turns") - game.current = game.first - do { - logi(game.emperor_turns[game.current] + " " + PLAYER_NAME[game.current]) - game.current = next_player() - } while (game.current !== game.first) - - log_br() let cutoff = award_emperor_turns(10, 1000) cutoff = award_emperor_turns(6, cutoff) cutoff = award_emperor_turns(3, cutoff) award_emperor_turns(0, cutoff) - log_h3("Final Legacy") + log_h3("Final Score") game.current = game.first do { - logi(game.legacy[game.current] + " " + PLAYER_NAME[game.current]) + logi(PLAYER_NAME[game.current] + " " + game.legacy[game.current]) game.current = next_player() } while (game.current !== game.first) |