summaryrefslogtreecommitdiff
path: root/types.d.ts
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@franss-mbp.home>2024-12-30 12:30:26 +0100
committerFrans Bongers <fransbongers@franss-mbp.home>2024-12-30 12:30:26 +0100
commitb952d532d4b84c136e3c3a6893a63b0ed5b5ece3 (patch)
treef7667fdb7f8e771c7b63fccc6760b5cb37a95376 /types.d.ts
parent23beb82e0344d895106351fe6d98f40c8ee50dc5 (diff)
downloadland-and-freedom-b952d532d4b84c136e3c3a6893a63b0ed5b5ece3.tar.gz
peek at fascist card event effect
Diffstat (limited to 'types.d.ts')
-rw-r--r--types.d.ts17
1 files changed, 13 insertions, 4 deletions
diff --git a/types.d.ts b/types.d.ts
index b2b7aae..50d6819 100644
--- a/types.d.ts
+++ b/types.d.ts
@@ -28,7 +28,7 @@ export interface Game {
result?: string;
victory?: string;
// Game specific
- active_abilities: number[];
+ active_abilities: number[];
turn: number;
year: number;
bag_of_glory: FactionId[];
@@ -37,9 +37,11 @@ export interface Game {
current_events: CardId[];
discard: Record<FactionId | 'f', number[]>;
engine: EngineNode[];
- // Set to faction whos turn it is or null if not player turn
- // Used to determine who can spend Hero Points. Could be the case
- // a faction is active in another factions turn.
+ /**
+ * Set to faction whos turn it is or null if not player turn
+ * Used to determine who can spend Hero Points. Could be the case
+ * a player becomes active in another players turn.
+ */
faction_turn: FactionId | null;
fronts: {
a: Front;
@@ -54,7 +56,13 @@ export interface Game {
medallions: Record<FactionId, number[]> & { pool: Array<number | null> };
played_card: CardId | null;
selected_cards: Record<FactionId, CardId[]>;
+ selectable_cards: CardId[]; // used for specific events
tableaus: Record<FactionId, CardId[]>;
+ /**
+ * Used for event effect that allows Anarchist to put an event
+ * card on top of the deck
+ */
+ top_of_events_deck: CardId | null;
tracks: number[];
trash: Record<FactionId, CardId[]>;
triggered_track_effects: number[];
@@ -80,6 +88,7 @@ export interface View {
initiative: Game['initiative'];
medallions: Game['medallions'];
played_card: Game['played_card'];
+ selectable_cards: Game['selectable_cards'];
tableaus: Game['tableaus'];
tracks: number[];
triggered_track_effects: Game['triggered_track_effects'];