RPG Event Generator v3.1.0 - v3.1.1
    Preparing search index...

    Class RelationshipSystem

    Implements

    • IRelationshipSystem
    Index

    Constructors

    Methods

    • Add an NPC to the relationship system

      Parameters

      • npcConfig: Omit<NPC, "relationships">

      Returns void

    • Update relationship between two NPCs

      Parameters

      • npcId: string
      • targetId: string
      • change: number
      • reason: string

      Returns void

    • Apply a relationship rule

      Parameters

      • npcId: string
      • targetId: string
      • ruleId: string

      Returns void

    • Remove an NPC from the relationship system

      Parameters

      • npcId: string

      Returns boolean

    • Generate contextual relationship effects for events

      Parameters

      Returns {
          availableNPCs: string[];
          relationshipModifiers: { [npcId: string]: number };
          socialContext: string[];
      }

    • Get relationship system statistics

      Returns {
          totalNPCs: number;
          totalRelationships: number;
          averageRelationshipsPerNPC: number;
          relationshipTypes: { [type: string]: number };
      }