Mitigates #10
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import goStore from '~/netcode';
|
import goStore from '~/netcode';
|
||||||
import type { Player } from '~/netcode/Player';
|
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)
|
const discard_unwrapped = ref<boolean>(false)
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ const prepare_champion = (target: Card) => run_effect(CardEffects.PREPARE, targe
|
|||||||
<div id="player_stats">
|
<div id="player_stats">
|
||||||
<PlayerStats :player="props.player"></PlayerStats>
|
<PlayerStats :player="props.player"></PlayerStats>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="props.player.ready && !goStore.current_game?.started">READY</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="current_player_board">
|
<div id="current_player_board">
|
||||||
<button @click.stop="damage_team(props.player.team)"
|
<button @click.stop="damage_team(props.player.team)"
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export interface PlayerNetcode extends GameObjectNetcode {
|
|||||||
turn: string
|
turn: string
|
||||||
discord_id?: string
|
discord_id?: string
|
||||||
image?: string
|
image?: string
|
||||||
|
ready: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user