From 6fefa6972325c161273a3ce8497ea9ee93c828db Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 30 Mar 2025 23:53:21 +0200 Subject: fix end of year bag draw --- rules.js | 3 +-- rules.ts | 4 +--- 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')); -- cgit v1.2.3