{#if showLoot && $gameState} {/if}
{#if showAmds} {#if visible !== 'noOpen'} {#if visible === 'oneOpen' && canShowOneDeck && currentCharacter} onOpenAmd(currentCharacter.id)} onZoom={() => onZoom(currentCharacter.id, currentCharacter)} /> {:else} {#each charsWithPerks as char (char.id)} onOpenAmd(char.id)} onZoom={() => onZoom(char.id, char)} /> {/each} {/if} {/if} {/if} {#if showSharedDecks && $gameState && shouldShowAlliesDeck($gameState)} onOpenAmd('allies')} onZoom={() => onZoom('allies', null)} /> {/if} {#if showSharedDecks && $gameState} onOpenAmd('')} onZoom={() => onZoom('', null)} /> {/if}