diff options
-rw-r--r-- | data.js | 2 | ||||
-rw-r--r-- | data.ts | 2 | ||||
-rw-r--r-- | play.js | 2 | ||||
-rw-r--r-- | rules.js | 1 | ||||
-rw-r--r-- | rules.ts | 1 | ||||
-rw-r--r-- | types.d.ts | 1 |
6 files changed, 6 insertions, 3 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, @@ -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, @@ -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) @@ -1818,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) { @@ -2214,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) { @@ -121,6 +121,7 @@ export interface View { used_medallions: Game['used_medallions']; year: number; fascist?: number; + show_trash?: boolean; } export type States = { |