Homebrew manager completed !

This commit is contained in:
Clément Pons
2025-08-26 15:27:47 +02:00
parent 80a94bee86
commit da93fcd82d
14 changed files with 1173 additions and 244 deletions

View File

@@ -16,7 +16,7 @@ export type Character = {
id: number;
name: string;
people?: number;
people?: string;
level: number;
aspect?: number;
notes?: string | null;
@@ -44,7 +44,7 @@ export type CharacterVariables = {
equipment: Array<string>;
};
export type CharacterConfig = {
peoples: RaceConfig[];
peoples: Record<string, RaceConfig>;
resistances: Record<Resistance, { name: string, statistic: MainStat }>;
training: Record<MainStat, Record<TrainingLevel, FeatureID[]>>;
abilities: Record<Ability, AbilityConfig>;
@@ -72,6 +72,7 @@ export type AbilityConfig = {
description: string;
};
export type RaceConfig = {
id: string;
name: string;
description: string;
options: Record<Level, FeatureID[]>;
@@ -126,7 +127,7 @@ export type CompiledCharacter = {
name: string;
health: number; //Max
mana: number; //Max
race: number;
race: string;
spellslots: number; //Max
artslots: number; //Max
spellranks: Record<SpellType, 0 | 1 | 2 | 3>;