Progress on spells

This commit is contained in:
Clément Pons
2025-04-24 17:23:03 +02:00
parent e924fdfe38
commit 878bcc0a16
3 changed files with 774 additions and 7 deletions

12
types/character.d.ts vendored
View File

@@ -32,6 +32,18 @@ export type CharacterConfig = {
training: Record<MainStat, Record<TrainingLevel, TrainingOption[]>>;
abilities: Record<Ability, AbilityConfig>;
resistances: Record<Resistance, ResistanceConfig>;
spells: SpellConfig[];
};
export type SpellConfig = {
id: string;
name: string;
rank: 1 | 2 | 3;
type: SpellType;
cost: number;
speed: "action" | "reaction" | number;
elements: Array<"fire" | "ice" | "thunder" | "earth" | "arcana" | "air" | "nature" | "light" | "psyche">;
effect: string;
tags?: string[];
};
export type AbilityConfig = {
max: [MainStat, MainStat];