From 1a5bcbc0293208cd2837a95c2cdd573cf461d960 Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Fri, 3 Jan 2025 20:03:13 +0100 Subject: fixed several bugs --- data.js | 2 +- data.ts | 2 +- play.html | 6 +++--- play.js | 2 +- play.ts | 2 +- rules.js | 2 +- rules.ts | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/data.js b/data.js index e54efe7..7769d5c 100644 --- a/data.js +++ b/data.js @@ -633,10 +633,10 @@ const data = { { id: 42, effects: [ + create_effect('function', 'card42_event3', 0), create_effect('track', LIBERTY, 2), create_effect('front', ARAGON, 2), create_effect('front', MADRID, 1), - create_effect('function', 'card42_event3', 0), ], icons: ['liberty', 'add_to_front'], strength: 2, diff --git a/data.ts b/data.ts index dba608e..e73148f 100644 --- a/data.ts +++ b/data.ts @@ -655,10 +655,10 @@ const data: StaticData = { { id: 42, effects: [ + create_effect('function', 'card42_event3', 0), create_effect('track', LIBERTY, 2), create_effect('front', ARAGON, 2), create_effect('front', MADRID, 1), - create_effect('function', 'card42_event3', 0), ], icons: ['liberty', 'add_to_front'], strength: 2, diff --git a/play.html b/play.html index bcb36ac..c9fc7cd 100644 --- a/play.html +++ b/play.html @@ -102,15 +102,15 @@
-
Anarchist
+
Anarchist Tableau
-
Communist
+
Communist Tableau
-
Moderate
+
Moderate Tableau
diff --git a/play.js b/play.js index 19ad4f0..f5e004f 100644 --- a/play.js +++ b/play.js @@ -377,7 +377,7 @@ function on_update() { action_button('draw_cards', 'Draw cards'); action_button('play_for_ap', 'Play card for Action Points'); action_button('play_for_event', 'Play card for Event'); - action_button('add_glory', 'Add Glory'); + action_button('add_glory', 'Add to Bag of Glory'); action_button('up', 'Up'); action_button('down', 'Down'); action_button('next', 'Next'); diff --git a/play.ts b/play.ts index 18dfe36..d8e135f 100644 --- a/play.ts +++ b/play.ts @@ -488,7 +488,7 @@ function on_update() { action_button('play_for_ap', 'Play card for Action Points'); action_button('play_for_event', 'Play card for Event'); - action_button('add_glory', 'Add Glory'); + action_button('add_glory', 'Add to Bag of Glory'); action_button('up', 'Up'); action_button('down', 'Down'); action_button('next', 'Next'); diff --git a/rules.js b/rules.js index 30dc65e..6c9187b 100644 --- a/rules.js +++ b/rules.js @@ -1956,7 +1956,7 @@ function get_max_value_for_track(track_id) { function get_min_value_for_track(track_id) { switch (track_id) { case data_1.GOVERNMENT: - const min_gov = game.tracks[data_1.SOVIET_SUPPORT] >= 8 ? 4 : 1; + const min_gov = game.tracks[data_1.SOVIET_SUPPORT] >= 8 ? 1 : 4; return Math.min(min_gov, game.tracks[data_1.GOVERNMENT]); case data_1.LIBERTY: case data_1.COLLECTIVIZATION: diff --git a/rules.ts b/rules.ts index e620ad8..d306cf5 100644 --- a/rules.ts +++ b/rules.ts @@ -2423,7 +2423,7 @@ function get_max_value_for_track(track_id: number) { function get_min_value_for_track(track_id: number) { switch (track_id) { case GOVERNMENT: - const min_gov = game.tracks[SOVIET_SUPPORT] >= 8 ? 4 : 1; + const min_gov = game.tracks[SOVIET_SUPPORT] >= 8 ? 1 : 4; return Math.min(min_gov, game.tracks[GOVERNMENT]); case LIBERTY: case COLLECTIVIZATION: -- cgit v1.2.3