✨Feature: add town systems, saves, recovery, and level progression
This commit is contained in:
@@ -52,6 +52,7 @@ export type ManoeuvreDefinition = {
|
||||
id: string;
|
||||
name: string;
|
||||
weaponCategories: WeaponCategory[];
|
||||
minimumLevel?: number;
|
||||
shiftCost?: number;
|
||||
disciplineModifier?: number;
|
||||
precisionModifier?: number;
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user