added conditions

This commit is contained in:
2025-06-21 21:26:55 +02:00
parent 09ab329c24
commit a6b4bfcc14
4 changed files with 17 additions and 2 deletions

View File

@@ -12,7 +12,6 @@ export interface DSAAttributes {
}
export interface DSAPersonalData {
id: string;
name: string;
species: string;
culture: string;

View File

@@ -55,6 +55,7 @@ export interface DSASpell {
}
export interface DSACharacter {
id: string;
personalData: DSAPersonalData;
experienceLevel: string;
attributes: DSAAttributes;

15
src/types/condition.ts Normal file
View File

@@ -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;
}

View File

@@ -17,7 +17,7 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"erasableSyntaxOnly": false,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},