feat: Add Relationship Dynamics extension#491
Open
KenStarwind wants to merge 1 commit intoabeiro:unstablefrom
Open
feat: Add Relationship Dynamics extension#491KenStarwind wants to merge 1 commit intoabeiro:unstablefrom
KenStarwind wants to merge 1 commit intoabeiro:unstablefrom
Conversation
Emotional engine for NPC-player relationships. Separates permanent bonds (Affinity/Speed) from volatile attraction (Passion/RPM). Core features: - RPM/Speed/Gears model: passion drives affinity gain multiplier - 5 love languages with primary/secondary detection - 13 temperaments with passion/reunion/jealousy multipliers - 11 interest categories with per-NPC weights - Environmental resonance via vector similarity (MiniMe/txtai) - Combat passion with temperament-specific bleedout drain - Diminishing returns (exponential session decay) - Reunion system (time-apart spikes gated by affinity) - Jealousy from observed flirting + conflict/repair cycle - 3 relationship stages (early/established/deep) - Demisexual/asexual type constraint filtering - Sharmat bridge (passion -> sex_disposal, gated by class_exists) - Full settings UI with per-subsystem toggles - Per-NPC editor panel (love languages, interests, temperament) All external dependencies soft-gated: - Sharmat NsfwNpcData: class_exists() - MinAI conf_opts: try/catch - Oghma table: try/catch - MiniMe embeddings: HTTP with fallback to keyword matching Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
ext/relationship_dynamicsextension — an emotional engine for NPC-player relationships that separates permanent bonds (Affinity/Speed) from volatile attraction (Passion/RPM).What it does
Integration
All external dependencies are soft-gated — no hard requirements:
NsfwNpcData:class_exists()checkconf_opts:try/catchtry/catchFiles changed
.gitignore— added exception forext/relationship_dynamicsext/relationship_dynamics/— 9 new PHP files (core class, context builder, pre/post request hooks, settings, NPC editor section, install, API, debug)ui/core/config_hub.php— register extension in config hubui/core/npc_master.php— hook NPC editor panelTest plan
[RelDyn-POST])🤖 Generated with Claude Code