add more info to the cards
This commit is contained in:
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 137 KiB |
@@ -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>;
|
||||||
|
|||||||
Reference in New Issue
Block a user