diff options
author | Frans Bongers <fransbongers@franss-mbp.home> | 2024-12-22 22:15:57 +0100 |
---|---|---|
committer | Frans Bongers <fransbongers@franss-mbp.home> | 2024-12-22 22:15:57 +0100 |
commit | f321c249f5b9b4f8abc4f519a3666cdda94fad7a (patch) | |
tree | d59a5fe2bdb988a7f155407cd13060333818c0d5 /types.d.ts | |
parent | fa18a313b5a57b106a8c41a542f08ba4697435ca (diff) | |
download | land-and-freedom-f321c249f5b9b4f8abc4f519a3666cdda94fad7a.tar.gz |
use medallions
Diffstat (limited to 'types.d.ts')
-rw-r--r-- | types.d.ts | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -43,11 +43,13 @@ export interface Game { hands: Record<FactionId, CardId[]>; hero_points: Record<FactionId | 'pool', number>; initiative: FactionId; - medaillons: Array<number | null>; + medallions: Record<FactionId, number[]> & { pool: Array<number | null> }; tableaus: Record<FactionId, CardId[]>; tracks: number[]; trash: Record<FactionId, number[]>; - triggered_track_effects: number[][]; + triggered_track_effects: number[]; + used_medallions: number[]; + result?: string; victory?: string; @@ -80,10 +82,11 @@ export interface View { hand: CardId[]; hero_points: Game['hero_points']; initiative: Game['initiative']; - medaillons: Game['medaillons']; + medallions: Game['medallions']; tableaus: Game['tableaus']; tracks: number[]; triggered_track_effects: Game['triggered_track_effects']; + used_medallions: Game['used_medallions']; year: number; } @@ -162,7 +165,7 @@ export interface Effect { | 'bonus' | 'hero_points' | 'front' - | 'medaillon' + | 'medallion' | 'draw_card' | 'play_card' | 'swap_card_tableau_hand' @@ -171,6 +174,7 @@ export interface Effect { | 'return_card'; target: string | number; value: number; + faction?: FactionId | 'i'; } export interface StaticData { @@ -181,7 +185,7 @@ export interface StaticData { left: number; top: number; }>; - medaillons: Array<{ + medallions: Array<{ id: number; name: string; }>; |