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 },