Skip to content

fix(storyteller): isolate Altar chat cooldown & scenario, fix Fallback scope/events, and clean dead code - #25

Merged
mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup
Nov 23, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Phase 2 full-codebase cleanup & Water-Dispenser refactor verified locally across 1.6 & 1.7 builds and full test suite.

…k scope/events, and clean dead code

refactor: consolidate storyteller identities, policies, and localization

Extract shared identity constants into StorytellerRequestIds (OwnerModId,
ChatModId, ChatScenarioId, DefaultNpcId, IncidentOutputSchemaKey/Json) and
replace scattered literals across agent, coordinator, notification, and UI.

Split Altar chat onto its own StorytellerChat scenario and ChatModId so
interactive turns bypass the incident MTB cooldown, and drop the
IsStorytellerChat hint plumbing in favor of explicit scenario guards.

Centralize tension deltas and fallback profiles in IncidentSelectionPolicy
with a FallbackProfile/ChooseCategorySlot model, and restrict the fallback
comp to Map_PlayerHome via XML and runtime target checks.

Publish StorytellerStateChangedEvent from every memory mutation, add
CancelCurrent so cancellations skip the failure backoff, and replace the
autotest's destructive dialogue clear with a scoped removal.

Route all UI and context text through RimMindAPI.Text.TrOr with English
fallbacks, prefer the live difficultyDef label, and add contract tests
covering schema registration, chat isolation, and zero raw .Translate().

Remove the unused PawnLookup helpers, ISkipCheck registration, and the
in-csproj deploy target; rewrite deploy-single.ps1 for multi-version builds
with runtime DLL exclusions and drop the redundant shell script.
@mcocdaa
mcocdaa merged commit de37b98 into main Nov 23, 2026
@mcocdaa
mcocdaa deleted the refactor/phase2-cleanup branch November 23, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant