diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-09-30 19:55:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:42:59 +0100 |
commit | 9a94552581067b504593300a3c5926ee7c46c39e (patch) | |
tree | c2318b6cd63af80c6c48c1c3cfd7ca215c80c747 | |
parent | 768b8358a2882d544d81d611517c2462ff61ab03 (diff) | |
download | 300-earth-and-water-9a94552581067b504593300a3c5926ee7c46c39e.tar.gz |
300: Fix interpretation issue of The Royal Road.
The new translation makes clear you can place 1-3 units if the city
is unoccupied by Greek troops.
-rw-r--r-- | rules.js | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -2166,7 +2166,7 @@ function play_the_great_king() { function can_play_the_royal_road_in(city) { if (count_greek_armies(city) > 0) return true; - if (count_persian_armies(RESERVE) > 0 && count_persian_armies(city) === 0) + if (count_persian_armies(RESERVE) > 0) return true; return false; } @@ -2197,6 +2197,7 @@ states.the_royal_road_select = { } else { game.where = city; game.state = 'the_royal_road_place'; + game.royal_road_count = 0; } }, } @@ -2206,20 +2207,22 @@ states.the_royal_road_place = { if (is_inactive_player(current)) return view.prompt = "The Royal Road."; view.prompt = "The Royal Road: Place 1-3 armies in " + game.where + "."; - if (count_persian_armies(game.where) < 3 && count_persian_armies(RESERVE) > 0) + if (game.royal_road_count < 3 && count_persian_armies(RESERVE) > 0) gen_action(view, 'city', game.where); - if (count_persian_armies(game.where) > 0) + if (game.royal_road_count > 0) gen_action(view, 'next'); gen_action_undo(view); }, city: function (city) { push_undo(); move_persian_army(RESERVE, city, 1); + game.royal_road_count += 1; }, next: function () { - log("Persia places " + count_persian_armies(game.where) + " armies in " + game.where + "."); + log("Persia places " + game.royal_road_count + " armies in " + game.where + "."); clear_undo(); game.where = null; + delete game.royal_road_count; end_persian_operation(); }, undo: pop_undo, |