Feat : add tokens, handle mutex effects

This commit is contained in:
2024-07-07 10:45:55 +02:00
parent 12d6de5074
commit db7959d7f1
110 changed files with 627 additions and 798 deletions
+12
View File
@@ -112,3 +112,15 @@ export async function buyCard(game: string, cardId: string) {
}
);
}
export async function lockEffect(game: string, effectId: string) {
const config = useRuntimeConfig();
await $fetch(
new URL(`games/${game}/turn/lockEffect/${effectId}`, config.public.endpoint)
.href,
{
method: "POST",
credentials: "include",
}
);
}
+2 -1
View File
@@ -5,7 +5,8 @@ export interface GameObject {
export interface PlayingTurn {
currentTeam: string;
cardsLocked: string[];
effectsUsed: string[];
lockedEffects: string[];
tokens: Effect[];
damage: number;
gold: number;
}