diff options
-rw-r--r-- | data.js | 6 | ||||
-rw-r--r-- | data.ts | 6 | ||||
-rw-r--r-- | play.css | 2 | ||||
-rw-r--r-- | play.js | 2 | ||||
-rw-r--r-- | rules.js | 9 | ||||
-rw-r--r-- | rules.ts | 11 | ||||
-rw-r--r-- | types.d.ts | 1 |
7 files changed, 24 insertions, 13 deletions
@@ -1267,7 +1267,7 @@ const data = { effects: [ create_effect('attack', CLOSEST_TO_DEFEAT, -4, INITIATIVE_PLAYER), create_effect('attack', CLOSEST_TO_VICTORY, -4, INITIATIVE_PLAYER), - create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1784,12 +1784,12 @@ const data = { { id: PROPAGANDA_MEDALLION_ID, name: 'Propaganda', - tooltip: '+1 card when drawing from your deck & keep +1 in hand at End of the Year.' + tooltip: "Gain 2 extra Hero points form each Successful Test (even if you didn't support)." }, { id: INTELLIGENCE_MEDALLION_ID, name: 'Intelligence', - tooltip: "Gain 2 extra Hero points form each Successful Test (even if you didn't support)." + tooltip: '+1 card when drawing from your deck & keep +1 in hand at End of the Year.' }, { id: VOLUNTEERS_MEDALLION_ID, @@ -1305,7 +1305,7 @@ const data: StaticData = { effects: [ create_effect('attack', CLOSEST_TO_DEFEAT, -4, INITIATIVE_PLAYER), create_effect('attack', CLOSEST_TO_VICTORY, -4, INITIATIVE_PLAYER), - create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1857,12 +1857,12 @@ const data: StaticData = { { id: PROPAGANDA_MEDALLION_ID, name: 'Propaganda', - tooltip: '+1 card when drawing from your deck & keep +1 in hand at End of the Year.' + tooltip: "Gain 2 extra Hero points form each Successful Test (even if you didn't support)." }, { id: INTELLIGENCE_MEDALLION_ID, name: 'Intelligence', - tooltip: "Gain 2 extra Hero points form each Successful Test (even if you didn't support)." + tooltip: '+1 card when drawing from your deck & keep +1 in hand at End of the Year.' }, { id: VOLUNTEERS_MEDALLION_ID, @@ -174,7 +174,7 @@ body.Observer #toggle_trash { } #hero_point_pool .token { - margin-bottom: -25px; + margin-bottom: -30px; } .front_container { @@ -496,7 +496,7 @@ function on_update() { // eslint-disable-line no-unused-vars ui.trash.replaceChildren() place_cards(ui.trash, view.trash) - if (view.actions && view.actions.trash) + if (view.show_trash) ui.trash_panel.classList.remove("hide") else ui.trash_panel.classList.toggle("hide", trash_toggle) @@ -1145,6 +1145,11 @@ states.choose_medallion = { }; states.confirm_turn = { inactive: 'confirm their move', + auto_resolve() { + if (game.fascist === 1) + return true; + return false; + }, prompt() { if (game.fascist === 2) view.prompt = 'Fascist Test: Done.'; @@ -1813,6 +1818,7 @@ states.return_card = { const faction = get_active_faction(); gen_spend_hero_points(); view.prompt = 'Return a card to your hand.'; + view.show_trash = true; let possible = false; for (let c of game.trash[faction]) { if (c !== game.played_card) { @@ -2321,10 +2327,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; @@ -1443,6 +1443,12 @@ states.choose_medallion = { states.confirm_turn = { inactive: 'confirm their move', + auto_resolve() { + // don't pause to confirm actions during fascist event + if (game.fascist === 1) + return true + return false + }, prompt() { if (game.fascist === 2) view.prompt = 'Fascist Test: Done.' @@ -2208,6 +2214,7 @@ states.return_card = { const faction = get_active_faction(); gen_spend_hero_points(); view.prompt = 'Return a card to your hand.'; + view.show_trash = true; let possible = false; for (let c of game.trash[faction]) { if (c !== game.played_card) { @@ -2821,12 +2828,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')); @@ -121,6 +121,7 @@ export interface View { used_medallions: Game['used_medallions']; year: number; fascist?: number; + show_trash?: boolean; } export type States = { |