From 9be78e3f8c1a2e744faf1b301034d7bdd4ea7667 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Mar 2026 20:51:10 +0000 Subject: [PATCH] fix: add 'thirst' to MemoryEvent.need type union Co-Authored-By: Claude Opus 4.6 --- shared/dist/types.d.ts | 6 +----- shared/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/shared/dist/types.d.ts b/shared/dist/types.d.ts index 1e1aaeb..6c6183f 100644 --- a/shared/dist/types.d.ts +++ b/shared/dist/types.d.ts @@ -11,7 +11,7 @@ export interface MemoryEvent { detail: string; oldTier?: string; newTier?: string; - need?: 'hunger' | 'energy' | 'productivity'; + need?: 'hunger' | 'thirst' | 'energy' | 'productivity'; oldGoal?: string; newGoal?: string; } @@ -142,10 +142,6 @@ export interface WorldState { worldHeight: number; tileSize: number; obstacles: Position[]; - pointsOfInterest: { - type: 'food'; - position: Position; - }[]; terrain: number[]; decorations: number[]; trunkDecorations: number[]; diff --git a/shared/src/types.ts b/shared/src/types.ts index 8bfc1ca..ae0c10d 100644 --- a/shared/src/types.ts +++ b/shared/src/types.ts @@ -25,7 +25,7 @@ export interface MemoryEvent { detail: string; oldTier?: string; newTier?: string; - need?: 'hunger' | 'energy' | 'productivity'; + need?: 'hunger' | 'thirst' | 'energy' | 'productivity'; oldGoal?: string; newGoal?: string; }