From a6b4bfcc1483582cf0b077736bf6d59a04bd79e0 Mon Sep 17 00:00:00 2001 From: Matthias Puchstein Date: Sat, 21 Jun 2025 21:26:55 +0200 Subject: [PATCH] added conditions --- src/types/baseCharacter.ts | 1 - src/types/character.ts | 1 + src/types/condition.ts | 15 +++++++++++++++ tsconfig.node.json | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/types/condition.ts diff --git a/src/types/baseCharacter.ts b/src/types/baseCharacter.ts index 86bdf02..da8d4e5 100644 --- a/src/types/baseCharacter.ts +++ b/src/types/baseCharacter.ts @@ -12,7 +12,6 @@ export interface DSAAttributes { } export interface DSAPersonalData { - id: string; name: string; species: string; culture: string; diff --git a/src/types/character.ts b/src/types/character.ts index f68191d..bf67d89 100644 --- a/src/types/character.ts +++ b/src/types/character.ts @@ -55,6 +55,7 @@ export interface DSASpell { } export interface DSACharacter { + id: string; personalData: DSAPersonalData; experienceLevel: string; attributes: DSAAttributes; diff --git a/src/types/condition.ts b/src/types/condition.ts new file mode 100644 index 0000000..423e8dc --- /dev/null +++ b/src/types/condition.ts @@ -0,0 +1,15 @@ +export enum DSAConditionType { + confusion = "confusion", + encumbrance = "encumbrance", + fear = "fear", + pain = "pain", + paralysis = "paralysis", + sleep = "sleep", + rapture = "rapture", + stupor = "stupor", +} + +export interface DSACondition { + condition: DSAConditionType; + level: number; +} \ No newline at end of file diff --git a/tsconfig.node.json b/tsconfig.node.json index 9728af2..fa3809c 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -17,7 +17,7 @@ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "erasableSyntaxOnly": true, + "erasableSyntaxOnly": false, "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true },