;
function isNumericKnowledgeFact(fact: KnowledgeFact): fact is NumericKnowledgeFact {
- return fact.kind !== 'prediction' || fact.field === 'turn';
+ return fact.kind !== 'spicePeek' && (fact.kind !== 'prediction' || fact.field === 'turn');
}
export function KnowledgeFactFields({
@@ -20,7 +19,7 @@ export function KnowledgeFactFields({
onChange: (fact: KnowledgeFact) => void;
}) {
const id = useId();
- const isFaction = !isNumericKnowledgeFact(value);
+ const isFaction = value.kind === 'prediction' && value.field === 'faction';
const numericValue = isNumericKnowledgeFact(value) ? value : null;
const isTurn = numericValue?.kind === 'prediction' && numericValue.field === 'turn';
const min = isTurn ? 1 : numericValue?.kind === 'stormForecast' ? 1 : 0;
@@ -28,7 +27,19 @@ export function KnowledgeFactFields({
const invalid = knowledgeFactInputError(value);
return (
<>
- {isFaction ? (
+ {value.kind === 'spicePeek' ? (
+ <>
+
+ This asks about the card the target currently knows from their private Spice Blow peek. If no card is known, the answer is I don’t know. Only the answer is published.
+ >
+ ) : isFaction ? (