feat: show Socializing activity in NPC info panel during interactions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-07 13:08:47 +00:00
parent cabb129fdf
commit 2a6c928c75
+7 -2
View File
@@ -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);