From bf83a10c1b79064cc7a636369cfca560e37b49a8 Mon Sep 17 00:00:00 2001 From: Lukas Obermann Date: Sat, 27 Dec 2025 15:52:30 +0100 Subject: [PATCH] feat: add fate points Closes #4 --- gen/types.d.ts | 2 ++ gen/types.schema.json | 6 +++++- src/character.ts | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gen/types.d.ts b/gen/types.d.ts index 78bdbdc..55b7820 100644 --- a/gen/types.d.ts +++ b/gen/types.d.ts @@ -169,6 +169,8 @@ export interface Character { movement: DerivedCharacteristic + fatePoints: DerivedCharacteristic + /** * This property is not present if the required focus rules are not activated. */ diff --git a/gen/types.schema.json b/gen/types.schema.json index 32e801e..b30d6f3 100644 --- a/gen/types.schema.json +++ b/gen/types.schema.json @@ -482,6 +482,9 @@ "movement": { "$ref": "#/$defs/DerivedCharacteristic" }, + "fatePoints": { + "$ref": "#/$defs/DerivedCharacteristic" + }, "woundThreshold": { "description": "This property is not present if the required focus rules are not activated.", "$ref": "#/$defs/DerivedCharacteristic" @@ -493,7 +496,8 @@ "toughness", "dodge", "initiative", - "movement" + "movement", + "fatePoints" ] }, "skills": { diff --git a/src/character.ts b/src/character.ts index 41951ac..a5337c1 100644 --- a/src/character.ts +++ b/src/character.ts @@ -153,6 +153,9 @@ export const Character = Entity(import.meta.filename, { movement: Required({ type: IncludeIdentifier(DerivedCharacteristic), }), + fatePoints: Required({ + type: IncludeIdentifier(DerivedCharacteristic), + }), woundThreshold: Optional({ comment: "This property is not present if the required focus rules are not activated.", type: IncludeIdentifier(DerivedCharacteristic),