mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8202] [MERGED] Game Mode: AI reasons in the fight log with Debug on; fight setup that isn't cut off; starting gear keeps every kit #8182
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#8182
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/8202
Author: @kolacheee
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @kolacheee
Base:
staging← Head:claude/game-mode-cloud-nx3wjf📝 Commits (10+)
97784c2Ruleset combat: the AI's reasons in the log with Debug on4520e59Merge Pasta-Devs staging into claude/game-mode-cloud-nx3wjf3f43bccRuleset combat: reasons never cost the fight an event; name whom a walk closed on169251bStarting gear: taking a kit again keeps the first in the recorde9dd2d4Combat setup: say when the model's answer was cut off, and leave it room to finisha00d904Combat setup: think at medium at most, one setup at a time, and a failed one waits for Retry4f6773fMerge Pasta-Devs staging into claude/game-mode-cloud-nx3wjf886a104Starting gear: the marker keeps a bag's newest forty kits, never dropping the one just takencce4472Merge remote-tracking branch 'up/staging' into claude/game-mode-cloud-nx3wjf9c1ab7cCombat setup test: the setup asks for its own 12000-token floor, not the connection's smaller size📊 Changes
21 files changed (+823 additions, -58 deletions)
View changed files
📝
packages/client/src/components/game/GameNarration.tsx(+6 -1)📝
packages/client/src/components/game/GameSurface.tsx(+33 -1)📝
packages/client/src/components/game/RulesetCombatLog.tsx(+8 -2)📝
packages/client/src/components/game/RulesetCombatStatus.tsx(+3 -1)📝
packages/client/src/components/game/StartingGearPicker.tsx(+1 -1)➕
packages/client/src/lib/combat-setup-failures.ts(+55 -0)📝
packages/client/src/lib/ruleset-combat-log-rich.ts(+14 -1)📝
packages/client/src/lib/ruleset-combat-log.ts(+34 -0)📝
packages/client/src/localization/locales/en.json(+19 -0)📝
packages/server/src/routes/encounter.routes.ts(+120 -9)📝
packages/server/src/services/game/combat-boss.service.ts(+2 -1)📝
packages/server/src/services/game/game-starting-gear.service.ts(+4 -2)📝
packages/server/src/services/game/ruleset-combat-director.service.ts(+129 -16)📝
packages/server/src/services/generation/agent-generation-parameters.ts(+26 -0)📝
packages/shared/src/features/combat-ai.ts(+62 -16)📝
packages/shared/src/features/combat-director.ts(+28 -1)📝
scripts/regressions/combat-boss-provider.regression.ts(+2 -1)📝
scripts/regressions/game-ruleset-classic-items.regression.ts(+71 -2)📝
scripts/regressions/game-ruleset-starting-gear.regression.ts(+8 -2)📝
scripts/regressions/ruleset-combat-director.regression.ts(+154 -0)...and 1 more files
📄 Description
Linked issue
Closes #8201
Closes #8204
Closes #8207
Why this change
What changed
rankCombatCandidatesscores every candidate exactly aschooseCombatCandidatedoes, and also returns what each part added.chooseRankedCombatCandidatereturns the pick with those parts.chooseCombatCandidateis unchanged for its callers.reasoningevent after each step its picker takes, including window answers. It holds up to three of the largest parts of the score, the walk taken to act from where it did, or that it closed on an opponent. That opponent is the one nearest by the walk left to reach any cell they fill, as the closing move measures. The wording is ruleset-neutral.RULESET_COMBAT_EVENT_LIMIT, reasons go first, so they never cost a player an event of the fight.reasoningevents out./encounter/init):reason: "cut-off", and the screen's banner says the setup was cut off and how to give it more room.gameStartingGearTakeninstead of replacing the earlier one of its kind. Writer and reader both keep a bag's newest forty, so the kit just taken is never the one dropped.game.combat.ruleset.event.reasoning,game.combat.ruleset.event.reason.*,ui.game.gamenarration.combatGenerationCutOff.Validation
pnpm, so these were run directly).ruleset-combat-director: full AI fights on two rulesets, a walk past a walled-in foe, and reasons trimmed first.ruleset-combat-screen-clientcombat-aigame-ruleset-classic-items: cut-off detection; a cut-off setup is named, a thinking connection gets medium room and then a thinking-off retry, and two requests at once make one model call.combat-boss-provider: the setup keeps its own 12000-token floor over a connection's 4096.game-ruleset-starting-gear(the newest forty kept),game-ruleset-starting-coins,game-ruleset-strict-starting-gear,game-ruleset-sheet-builder,multiplayer-game-personaworld-kit-battlefields,world-kit-elementsCONTRIBUTING.mdManual verification notes
finish=stopand the board showed.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.