From 3f66249106d10dc4926b8e7242ed289e6a280276 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Mon, 13 May 2024 14:49:51 +0200 Subject: [PATCH] Feat: add ReadyState to player list Mitigates #10 --- components/GameBoard.vue | 2 +- components/PlayerSlot.vue | 1 + netcode/Player.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/GameBoard.vue b/components/GameBoard.vue index fa576f5..f83b1cf 100644 --- a/components/GameBoard.vue +++ b/components/GameBoard.vue @@ -2,7 +2,7 @@ import goStore from '~/netcode'; import type { Player } from '~/netcode/Player'; -const current_players = computed>(() => Array.from(goStore.players.values()).filter(p => p.team === goStore.current_game?.current_turn)) +const current_players = computed>(() => Array.from(goStore.current_game?.players ?? []).filter(p => p.team === goStore.current_game?.current_turn)) const discard_unwrapped = ref(false) diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index e8714fe..496461a 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -93,6 +93,7 @@ const prepare_champion = (target: Card) => run_effect(CardEffects.PREPARE, targe
+
READY