From 205b743d410fecada85c85f1bb30cb13ec779843 Mon Sep 17 00:00:00 2001 From: Spappz <34202141+Spappz@users.noreply.github.com> Date: Sun, 18 Feb 2024 01:51:13 +0000 Subject: [PATCH] add legacy source tag --- schema/source.json | 4 ++++ zod/source.ts | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/schema/source.json b/schema/source.json index 907325e..707f838 100644 --- a/schema/source.json +++ b/schema/source.json @@ -242,6 +242,10 @@ "misc": { "type": "object", "properties": { + "Legacy": { + "const": true, + "description": "This source targets the original Pathfinder 2e ruleset, as published in the Core Rulebook (2019), and not as published in Player Core (2023)." + }, "Official": { "const": true, "description": "This source was created and published by Paizo as 'official' Pathfinder 2e content (that is, it's official insofar that something can be 'official')." diff --git a/zod/source.ts b/zod/source.ts index d01d9b2..3f35db5 100644 --- a/zod/source.ts +++ b/zod/source.ts @@ -145,6 +145,12 @@ export const sourceTags = z .optional(), misc: z .object({ + Legacy: z + .literal(true) + .describe( + "This source targets the original Pathfinder 2e ruleset, as published in the Core Rulebook (2019), and not as published in Player Core (2023).", + ) + .optional(), Official: z .literal(true) .describe(