Feat: add ReadyState to player list
release-tag / release-image (push) Successful in 1m2s

Mitigates #10
This commit is contained in:
2024-05-13 14:49:51 +02:00
parent dc80228668
commit 3f66249106
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
import goStore from '~/netcode';
import type { Player } from '~/netcode/Player';
const current_players = computed<Array<Player>>(() => Array.from(goStore.players.values()).filter(p => p.team === goStore.current_game?.current_turn))
const current_players = computed<Array<Player>>(() => Array.from(goStore.current_game?.players ?? []).filter(p => p.team === goStore.current_game?.current_turn))
const discard_unwrapped = ref<boolean>(false)
</script>
+1
View File
@@ -93,6 +93,7 @@ const prepare_champion = (target: Card) => run_effect(CardEffects.PREPARE, targe
<div id="player_stats">
<PlayerStats :player="props.player"></PlayerStats>
</div>
<div v-if="props.player.ready && !goStore.current_game?.started">READY</div>
</div>
<div id="current_player_board">
<button @click.stop="damage_team(props.player.team)"
+1
View File
@@ -13,6 +13,7 @@ export interface PlayerNetcode extends GameObjectNetcode {
turn: string
discord_id?: string
image?: string
ready: boolean
}