Allow Advanced Auditor inspection choice
Verify and publish checkpoint container / container (push) Successful in 11m25s

This commit is contained in:
Quintine committed 2026-10-29 05:52:58 +11:00
1 parent 0681529e8e
commit 7e6e8c2d12
9 files changed
+292 -31

No files matched your search

+28 -20
View File
@@ -25,7 +25,7 @@ export function AuditorDecision({
<p className="text-base leading-7">
{payment
? `Pay ${audit.count} spice to CHOAM to cancel the entire inspection, or allow it without payment.`
: `Your Auditor ${audit.survived ? 'survived' : 'died'}. You may inspect ${audit.count} random card${audit.count === 1 ? '' : 's'} from ${opponent?.name ?? 'your opponent'}’s hand. Cards used in this battle are excluded.`}
: `Your Auditor ${audit.survived ? 'survived' : 'died'}. You may inspect up to ${audit.count} random card${audit.count === 1 ? '' : 's'} from ${opponent?.name ?? 'your opponent'}’s hand. Cards used in this battle are excluded.`}
</p>
{!payment && (
<p className="text-base leading-7">
@@ -34,25 +34,33 @@ export function AuditorDecision({
</p>
)}
<div className="flex flex-wrap gap-2">
<Button
disabled={busy}
onClick={() =>
act(
payment
? {
type: 'decision',
event: audit.event,
pay: true,
count: audit.count,
}
: { type: 'decision', event: audit.event, audit: true },
)
}
>
{payment
? `Pay ${audit.count} spice · cancel audit`
: 'Audit opposing hand'}
</Button>
{payment ? (
<Button
disabled={busy}
onClick={() =>
act({
type: 'decision',
event: audit.event,
pay: true,
count: audit.count,
})
}
>
{`Pay ${audit.count} spice · cancel audit`}
</Button>
) : (
[1, 2].filter((count) => count <= audit.count).map((count) => (
<Button
key={count}
disabled={busy}
onClick={() =>
act({ type: 'decision', event: audit.event, audit: true, count })
}
>
{`Inspect ${count} card${count === 1 ? '' : 's'} · ${count} spice to cancel`}
</Button>
))
)}
<Button
variant="outline"
disabled={busy}