Skip to main content

Function: updateRelationshipsFromReactions()

updateRelationshipsFromReactions(agents, reactions): void

Defined in: apps/paracosm/src/runtime/agent-memory.ts:132

Update relationship sentiment between agents after shared crisis experience. Agents who react with similar moods to the same crisis become closer.

Parameters

agents

Agent[]

reactions

AgentReaction[]

Returns

void