diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-01 20:07:17 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-01 20:07:17 +0200 |
commit | 0bbe63ec7088262922d04d79678029fcd33bce0c (patch) | |
tree | 7ddbb45de40aed18f4c6b7ab57edf6fc174a5118 | |
parent | 63186592400af0a10ca9b77f63f24b17a183d69b (diff) | |
download | land-and-freedom-0bbe63ec7088262922d04d79678029fcd33bce0c.tar.gz |
-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 |
4 files changed, 4 insertions, 1 deletions
@@ -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 = { |