add more info to the cards

This commit is contained in:
Gavin McDonald
2025-04-13 18:00:21 -04:00
parent c866f86923
commit 91407a9fe1
3 changed files with 799 additions and 223 deletions

File diff suppressed because it is too large Load Diff

View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View File

@@ -12,7 +12,7 @@ export interface StandardGameCard extends StandardCard {
flipped: boolean; flipped: boolean;
} }
export interface TarokkaCard { export interface TarokkaBase {
id: string; id: string;
name: string; name: string;
card: string; card: string;
@@ -23,10 +23,45 @@ export interface TarokkaCard {
url: string; url: string;
} }
export interface TarokkaGameCard extends TarokkaCard { export interface TarokkaGameBase extends TarokkaBase {
flipped: boolean; flipped: boolean;
} }
export interface TarokkaHigh extends TarokkaBase {
prophecy: {
allies: {
ally: string;
dmText: string;
playerText: string;
}[];
strahd: {
dmText: string;
playerText: string;
};
};
}
export interface TarokkaGameHigh extends TarokkaHigh {
flipped: boolean;
}
export interface TarokkaLow extends TarokkaBase {
value: number;
prophecy: {
dmText: string;
location: string;
playerText: string;
};
}
export interface TarokkaGameLow extends TarokkaLow {
flipped: boolean;
}
export type TarokkaCard = TarokkaBase | TarokkaHigh | TarokkaLow;
export type TarokkaGameCard = TarokkaGameBase | TarokkaGameHigh | TarokkaGameLow;
export interface GameState { export interface GameState {
id: string; id: string;
players: Set<string>; players: Set<string>;