diff --git a/src/lib/game/store.ts b/src/lib/game/store.ts index f86f1b8..7e83416 100755 --- a/src/lib/game/store.ts +++ b/src/lib/game/store.ts @@ -504,6 +504,12 @@ function makeInitial(overrides: Partial = {}): GameState { blueprints: {}, + // Loot inventory + lootInventory: { + materials: {}, + blueprints: [], + }, + schedule: [], autoSchedule: false, studyQueue: [], @@ -1707,6 +1713,8 @@ export const useGameStore = create()( designProgress: state.designProgress, preparationProgress: state.preparationProgress, applicationProgress: state.applicationProgress, + // Loot inventory + lootInventory: state.lootInventory, }), } ) diff --git a/src/lib/game/types.ts b/src/lib/game/types.ts index 79b21a6..921dc88 100755 --- a/src/lib/game/types.ts +++ b/src/lib/game/types.ts @@ -252,6 +252,12 @@ export interface BlueprintDef { learned: boolean; } +// Loot inventory for materials and blueprints +export interface LootInventory { + materials: Record; // materialId -> count + blueprints: string[]; // blueprint IDs discovered +} + export type GameAction = 'meditate' | 'climb' | 'study' | 'craft' | 'repair' | 'convert' | 'design' | 'prepare' | 'enchant'; export interface ScheduleBlock { @@ -342,6 +348,9 @@ export interface GameState { // Blueprints blueprints: Record; + // Loot Inventory + lootInventory: LootInventory; + // Schedule schedule: ScheduleBlock[]; autoSchedule: boolean;