Hide deep's hand
This commit is contained in:
@@ -68,17 +68,16 @@
|
|||||||
<div class="private-column">
|
<div class="private-column">
|
||||||
{#if state.player.role === "deep"}
|
{#if state.player.role === "deep"}
|
||||||
<DeepControlPanel {state} />
|
<DeepControlPanel {state} />
|
||||||
{/if}
|
{:else}
|
||||||
|
|
||||||
<!-- Player Hand Card -->
|
<!-- Player Hand Card -->
|
||||||
<div class="card glass-panel hand-card">
|
<div class="card glass-panel hand-card">
|
||||||
<h3>🃏 Your Hand</h3>
|
<h3>🃏 Your Hand</h3>
|
||||||
<p class="section-desc">Keep your cards secret! {#if state.player.role !== "deep"}When the Deep challenges you (or you assist a crewmate), drag a card onto an applied obstacle to play it. Jokers can hit any obstacle, any time.{/if}</p>
|
<p class="section-desc">Keep your cards secret! When the Deep challenges you (or you assist a crewmate), drag a card onto an applied obstacle to play it. Jokers can hit any obstacle, any time.</p>
|
||||||
|
|
||||||
<div class="hand-flex">
|
<div class="hand-flex">
|
||||||
{#each hand as card}
|
{#each hand as card}
|
||||||
<Card {card} techs={playerTechs}
|
<Card {card} techs={playerTechs}
|
||||||
draggable={state.player.role !== "deep"}
|
draggable={true}
|
||||||
on:dragstart={(e) => {
|
on:dragstart={(e) => {
|
||||||
e.dataTransfer.setData('text/plain', card);
|
e.dataTransfer.setData('text/plain', card);
|
||||||
e.currentTarget.classList.add("dragging");
|
e.currentTarget.classList.add("dragging");
|
||||||
@@ -92,7 +91,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if state.player.role !== "deep"}
|
|
||||||
<CharacterSheet {state} />
|
<CharacterSheet {state} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user