'use client'; import { useId, useState } from 'react'; import type { Action } from '@/game/engine'; import type { EcazSpecialKaramaQuote } from '@/game/ecaz-special-karama'; import { Button } from './ui/button'; import { CardInspector } from './card-inspector'; /** The parent supplies this private quote only to its Ecaz owner. */ export function EcazSpecialKarama({ quote, act, busy, }: { quote: EcazSpecialKaramaQuote | null; act: (action: Action) => void; busy: boolean; }) { const id = useId(); const [selection, setSelection] = useState(''); if (!quote) return null; const karama = quote.cards.find((card) => card.id === selection) ?? quote.cards[0]; const reason = quote.blocked ?? (!quote.event ? 'No current battle event is available.' : !karama ? 'You need an available Karama card.' : null); return (
Ecaz special Karama: leader-disc difference

Before Battle Plans are revealed, spend one Karama to declare your once-per-game special power. Your Battle Plan must contain neither a weapon nor a defense. You may declare before sealing your plan.

Provisional prototype policy, not a publisher ruling: after reveal, the absolute difference between the printed or copied leader-disc values adds virtual dial strength. Other leader modifiers are excluded. This adds no physical forces, spice support payments or casualties. The bonus is not quoted from your opponent’s hidden plan.

{quote.declared ? ( Declared for this battle. Keep both your weapon and defense slots empty; the leader-disc bonus is determined after reveal. ) : ( <> {quote.cards.length > 0 && ( <> {karama && } )} {reason && (

{reason}

)} )}
); }