You've already forked obsidian-visualiser
Homebrew manager completed !
This commit is contained in:
7
types/character.d.ts
vendored
7
types/character.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user