@@ -9,9 +9,10 @@ const isTurn = computed(() => goStore.self && goStore.current_game?.started && (
|
||||
|
||||
<template>
|
||||
<div id="market">
|
||||
<CardPreview :card_id="undefined"></CardPreview>
|
||||
<CardPreview :tilted="false" :card_id="undefined"></CardPreview>
|
||||
<div class="separator"></div>
|
||||
<CardPreview :card_id="c?.card_id" v-for="c in goStore.current_game?.market" @click="c && buy(c)">
|
||||
<CardPreview :tilted="false" :card_id="c?.card_id" v-for="c in goStore.current_game?.market"
|
||||
@click="c && buy(c)">
|
||||
<template
|
||||
v-if="isTurn && goStore.self?.turn && c && c.cost && (goStore.self?.turn.gold_reserve ?? 0) >= c.cost">
|
||||
<button @click.stop="buy(c)">BUY</button>
|
||||
@@ -29,7 +30,7 @@ const isTurn = computed(() => goStore.self && goStore.current_game?.started && (
|
||||
</template>
|
||||
</CardPreview>
|
||||
<div class="separator"></div>
|
||||
<CardPreview :card_id="goStore.current_game?.gem_stack.at(-1)?.card_id"
|
||||
<CardPreview :tilted="false" :card_id="goStore.current_game?.gem_stack.at(-1)?.card_id"
|
||||
@click="buy(goStore.current_game?.gem_stack.at(-1)!)">
|
||||
<template
|
||||
v-if="isTurn && goStore.self?.turn && goStore.current_game?.gem_stack.length && goStore.current_game?.gem_stack.length > 0 && (goStore.self?.turn.gold_reserve ?? 0) >= (goStore.current_game?.gem_stack.at(-1)?.cost ?? Infinity)">
|
||||
|
||||
Reference in New Issue
Block a user