From 2a6c928c755d5fcee31f4f2e4989db4e4d671854 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Mar 2026 13:08:47 +0000 Subject: [PATCH] feat: show Socializing activity in NPC info panel during interactions Co-Authored-By: Claude Opus 4.6 --- client/src/ui/NpcInfoPanel.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/src/ui/NpcInfoPanel.ts b/client/src/ui/NpcInfoPanel.ts index 1be2302..2da5dab 100644 --- a/client/src/ui/NpcInfoPanel.ts +++ b/client/src/ui/NpcInfoPanel.ts @@ -208,8 +208,13 @@ export class NpcInfoPanel { updateInfo(entity: EntityState): void { this.nameEl.textContent = entity.name ?? `NPC #${entity.id}`; - const goal = entity.npcBrain?.currentGoal; - this.activityEl.textContent = goal ? (ACTIVITY_LABELS[goal] ?? goal) : 'Idle'; + // Show social state if interacting + if (entity.socialState && entity.socialState.phase !== 'none') { + this.activityEl.textContent = 'Socializing'; + } else { + const goal = entity.npcBrain?.currentGoal; + this.activityEl.textContent = goal ? (ACTIVITY_LABELS[goal] ?? goal) : 'Idle'; + } if (entity.needs) { this.updateNeeds(entity.needs);