Feature: add town systems, saves, recovery, and level progression

This commit is contained in:
Keith Solomon
2026-03-18 19:37:01 -05:00
parent a4d2890cd9
commit 8600f611a6
22 changed files with 2434 additions and 16 deletions
+1
View File
@@ -52,6 +52,7 @@ export type ManoeuvreDefinition = {
id: string;
name: string;
weaponCategories: WeaponCategory[];
minimumLevel?: number;
shiftCost?: number;
disciplineModifier?: number;
precisionModifier?: number;
+20
View File
@@ -205,6 +205,23 @@ export type CombatState = {
combatLog: LogEntry[];
};
export type CombatOutcomeState = {
result: "victory" | "defeat";
at: string;
summary: string;
enemyNames: string[];
xpAwarded?: number;
};
export type LevelUpState = {
previousLevel: number;
newLevel: number;
at: string;
hpGained: number;
unlockedManoeuvreIds: string[];
summary: string;
};
export type RunState = {
id: string;
campaignId: string;
@@ -217,6 +234,9 @@ export type RunState = {
dungeon: DungeonState;
adventurerSnapshot: AdventurerState;
activeCombat?: CombatState;
lastCombatOutcome?: CombatOutcomeState;
lastLevelUp?: LevelUpState;
townState: TownState;
defeatedCreatureIds: string[];
xpGained: number;
log: LogEntry[];