You've already forked obsidian-visualiser
Progress on abilities
This commit is contained in:
12
types/character.d.ts
vendored
12
types/character.d.ts
vendored
@@ -15,7 +15,7 @@ export type Progression = {
|
||||
progress?: DoubleIndex<Level>[];
|
||||
};
|
||||
level: number;
|
||||
abilities?: Partial<Record<Ability, number>>;
|
||||
abilities: Partial<Record<Ability, [number, number]>>; //First is the ability, second is the max increment
|
||||
spells?: string[]; //Spell ID
|
||||
modifiers?: Partial<Record<MainStat, number>>;
|
||||
aspect?: string;
|
||||
@@ -29,7 +29,13 @@ export type Character = {
|
||||
export type CharacterConfig = {
|
||||
peoples: Race[],
|
||||
training: Record<MainStat, Record<TrainingLevel, TrainingOption[]>>;
|
||||
ability: Record<Ability, AbilityConfig>;
|
||||
};
|
||||
export type AbilityConfig = {
|
||||
max: [MainStat, MainStat];
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
export type Race = {
|
||||
name: string;
|
||||
description: string;
|
||||
@@ -81,8 +87,8 @@ export type TrainingOption = {
|
||||
}>;
|
||||
mana?: number;
|
||||
health?: number;
|
||||
modifier?: [MainStat, number][];
|
||||
ability?: [Ability, number][];
|
||||
modifier?: number;
|
||||
ability?: number;
|
||||
speed?: false | number;
|
||||
initiative?: number;
|
||||
mastery?: keyof CompiledCharacter["mastery"];
|
||||
|
||||
Reference in New Issue
Block a user