This commit is contained in:
2025-12-08 18:50:51 +01:00
20 changed files with 1499 additions and 311 deletions

View File

@@ -30,7 +30,7 @@ export type Character = {
name: string; //Free text
people?: string; //People ID
level: number;
aspect?: number;
aspect?: string; //Aspect ID
notes?: { public?: string, private?: string }; //Free text
training: Record<MainStat, Partial<Record<TrainingLevel, number>>>;
@@ -68,8 +68,8 @@ type ItemState = {
export type CharacterConfig = {
peoples: Record<string, RaceConfig>;
training: Record<MainStat, Record<TrainingLevel, FeatureID[]>>;
spells: SpellConfig[];
aspects: AspectConfig[];
spells: Record<string, SpellConfig>;
aspects: Record<string, AspectConfig>;
features: Record<FeatureID, Feature>;
enchantments: Record<string, EnchantementConfig>; //TODO
items: Record<string, ItemConfig>;
@@ -142,6 +142,7 @@ export type RaceConfig = {
options: Record<Level, FeatureID[]>;
};
export type AspectConfig = {
id: string;
name: string;
description: string; //TODO -> TextID
stat: MainStat | 'special';