mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8622] [MERGED] Keep each party member's temperament for the whole game #8709
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8622
Author: @kolacheee
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-3xt87u📝 Commits (3)
8831000Keep each party member's temperament for the whole game2413faaFind a fighter's game card by a variant of their name toob51bbf7Leave card-less fighters to their own draw, guide regenerated sheets📊 Changes
10 files changed (+571 additions, -170 deletions)
View changed files
📝
packages/client/src/components/game/GameSurface.tsx(+11 -0)📝
packages/client/src/lib/game-character-name-match.ts(+1 -134)📝
packages/server/src/routes/encounter.routes.ts(+27 -1)📝
packages/server/src/routes/game.routes.ts(+54 -33)📝
packages/server/src/services/game/gm-prompts.ts(+24 -2)➕
packages/server/src/services/game/party-temperament.service.ts(+95 -0)📝
packages/shared/src/features/combat-ai.ts(+72 -0)📝
packages/shared/src/index.ts(+1 -0)➕
packages/shared/src/utils/game-character-name-match.ts(+137 -0)➕
scripts/regressions/party-temperament.regression.ts(+149 -0)📄 Description
Requested by Alyssa · project thread
Linked issue
None open. This is design groundwork for the Classic Marinara class overhaul, where a character's secondary class tree will come from their starting temperament.
Why this change
A player character's or companion's combat temperament was drawn again at the start of every fight (
assignCombatTacticswith a fresh seed, for the party as well as foes). Even a temperament the fight setup named won only about 40 to 46% of draws, so the same companion could fight Supportive in one battle and Reckless in the next. Party temperaments should stay the same across fights and change only for story reasons.What changed
temperament(the one they fight with) andtemperamentInitial(the one they started the game with, which never changes and which the secondary class tree will read).temperament, read from the character's Description and personality, not from the class or the scene.aiHints.keptflag makesassignCombatTacticsuse the temperament as is, with no weighted draw./encounter/initapplies the card's temperament to every party member over the setup's hint. A card with none yet (older games, fallback cards) takes the hint this fight's setup read for them, or else one drawn once per game from the chat id and name (never cowardly, supportive or a named-only one), and writes it onto the card. The Classic[combat:]tag path does the same client-side. Enemies still roll each fight.temperamentonly when the session clearly changed how the character fights. A card written back without one keeps its old one, an invalid one is ignored, andtemperamentInitialis never rewritten. Regenerating a malformed sheet keeps the existing temperament.COMBAT_PARTY_TEMPERAMENTS: the ten ordinary temperaments plus arrogant, cruel and honourable. Fanatical, territorial and hungry stay for foes.Validation
pnpm checkpasses locally (I ran the server and shared lint, i.e. their typechecks, clienttsc --noEmit, eslint onGameSurface.tsx, and prettier on the changed files, not the fullpnpm check)CONTRIBUTING.mdManual verification notes
scripts/regressions/party-temperament.regression.tspasses. It checks that a kept temperament wins over 400 seeds, that an enemy's hint still only leans, the allowed party set, that the fallback is stable, that session-end changes keep the initial temperament, and that a fight keeps card temperaments and writes new ones.Docs and release impact
Generated by Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.