summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-30 23:53:21 +0200
committerTor Andersson <tor@ccxvii.net>2025-03-30 23:56:39 +0200
commit6fefa6972325c161273a3ce8497ea9ee93c828db (patch)
tree34d28da8dfa608ddc7a05e394dd1ea4b3596d93d
parent380236845fb59a2a814300f0e6d3379d76037ad8 (diff)
downloadland-and-freedom-6fefa6972325c161273a3ce8497ea9ee93c828db.tar.gz
fix end of year bag draw
-rw-r--r--rules.js3
-rw-r--r--rules.ts4
2 files changed, 2 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index f08657f..e608c52 100644
--- a/rules.js
+++ b/rules.js
@@ -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;
diff --git a/rules.ts b/rules.ts
index cc1fb2d..04641c6 100644
--- a/rules.ts
+++ b/rules.ts
@@ -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'));