Various bug fixes and improvements.
This commit is contained in:
@@ -73,6 +73,7 @@ export function ShopPhase({ view, you, send }: Props) {
|
||||
const [useAvocado, setUseAvocado] = useState(false)
|
||||
const myTurn = view.turn === view.youSeat && !you.ready
|
||||
const avocados = you.avocados ?? 0
|
||||
const trumpets = you.trumpets ?? 0
|
||||
const freeBuy = !!you.firstBuyFree // Manta Ray: next buy costs no gold
|
||||
const canBuy = myTurn && (you.coins > 0 || avocados > 0 || freeBuy)
|
||||
// Nudge the player to pass once there's nothing left to buy.
|
||||
@@ -376,6 +377,11 @@ export function ShopPhase({ view, you, send }: Props) {
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{trumpets > 0 && (
|
||||
<div className="trumpet-indicator" title="Trumpets banked for your next battle">
|
||||
🎺 ×{trumpets}
|
||||
</div>
|
||||
)}
|
||||
</section>
|
||||
|
||||
{/* Actions */}
|
||||
|
||||
Reference in New Issue
Block a user