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);