diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-30 23:53:21 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-30 23:56:39 +0200 |
commit | 6fefa6972325c161273a3ce8497ea9ee93c828db (patch) | |
tree | 34d28da8dfa608ddc7a05e394dd1ea4b3596d93d | |
parent | 380236845fb59a2a814300f0e6d3379d76037ad8 (diff) | |
download | land-and-freedom-6fefa6972325c161273a3ce8497ea9ee93c828db.tar.gz |
fix end of year bag draw
-rw-r--r-- | rules.js | 3 | ||||
-rw-r--r-- | rules.ts | 4 |
2 files changed, 2 insertions, 5 deletions
@@ -2321,10 +2321,9 @@ function end_of_year() { false, false, ]; - const player_order = get_player_order(); const engine = []; for (let i = 0; i < glory_to_draw[game.year]; ++i) { - engine.push(create_state_node('draw_glory', player_order[i % 3])); + engine.push(create_state_node('draw_glory', game.initiative)); } engine.push(create_function_node('end_of_year_cleanup')); game.engine = engine; @@ -2821,12 +2821,10 @@ function end_of_year() { false, ]; - const player_order = get_player_order(); - const engine = []; for (let i = 0; i < glory_to_draw[game.year]; ++i) { - engine.push(create_state_node('draw_glory', player_order[i % 3])); + engine.push(create_state_node('draw_glory', game.initiative)); } engine.push(create_function_node('end_of_year_cleanup')); |