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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user