From 9d0630a33e0358f943e68008823f355bceb71be1 Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Fri, 27 Dec 2024 19:45:21 +0100 Subject: setup for event effects --- types.d.ts | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'types.d.ts') diff --git a/types.d.ts b/types.d.ts index 06f4125..33e8456 100644 --- a/types.d.ts +++ b/types.d.ts @@ -7,7 +7,7 @@ export type Brand = T & { export type Player = Brand; export type CardId = Brand; -export type FactionId = Brand; +export type FactionId = 'a' | 'c' | 'm'; export type FrontId = 'a' | 'm' | 'n' | 's'; export interface Front { @@ -17,14 +17,18 @@ export interface Front { } export interface Game { + // TODO: why is this needed? [index: number]: any; - seed: number; + // RTT + active: Player | 'None' | null; log: string[]; + seed: number; + state: string | null; undo: Game[]; + // Game specific + active_abilities: number[]; turn: number; year: number; - active: Player | 'None' | null; - state: string | null; bag_of_glory: FactionId[]; blank_markers: number[][]; bonuses: number[]; @@ -166,14 +170,17 @@ export interface Effect { | 'bonus' | 'hero_points' | 'front' + | 'function' // Use for unqique effects | 'medallion' | 'draw_card' | 'play_card' | 'swap_card_tableau_hand' - | 'add_to_tableau' + | 'state' + | 'add_card_to_tableau' | 'remove_blank_marker' - | 'return_card'; - target: string | number; + | 'return_card' + | 'take_hero_points'; + target: string | number | FactionId; value: number; faction?: FactionId | 'i'; } -- cgit v1.2.3