mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8233] [MERGED] feat(rulesets): players choose their own symbol spends in symbol-pool fights #8198
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#8198
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/8233
Author: @kolacheee
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-o9hpq2📝 Commits (9)
7f51b9cfeat(rulesets): players choose their own symbol spends in symbol-pool fights8bbbb07fix(rulesets): a spend chooser handed to the Engine mid-throw gets the Engine's pickcb69672test(rulesets): the menu leads with a spend window's spends00d0204fix(rulesets): carry the spend choice only into a fight that can take itca76eabMerge staging into claude/project-thread-o9hpq225f1a40fix(rulesets): keep a spend carry pending until it lands, and skip a fight that is over08736a8Merge staging into claude/project-thread-o9hpq29563d41fix(rulesets): retry a lost spend carry, and hold a refused one to its revision17bd6bffix(rulesets): resend a lost spend carry only from a fresh view, and count only losses📊 Changes
22 files changed (+975 additions, -47 deletions)
View changed files
📝
docs/extending/writing-rulesets.md(+6 -2)📝
packages/client/src/components/game/DirectedCombatUI.tsx(+36 -2)📝
packages/client/src/components/game/GameCombatUI.tsx(+30 -16)📝
packages/client/src/components/game/RulesetCombatMenu.tsx(+6 -2)📝
packages/client/src/components/game/RulesetCombatScreen.tsx(+5 -0)➕
packages/client/src/components/game/RulesetSpendToggle.tsx(+61 -0)📝
packages/client/src/components/game/RulesetTurnOrder.tsx(+7 -0)📝
packages/client/src/hooks/use-directed-combat.ts(+18 -5)📝
packages/client/src/lib/ruleset-combat-log.ts(+4 -1)📝
packages/client/src/lib/ruleset-combat-menu.ts(+79 -5)📝
packages/client/src/localization/locales/en.json(+7 -0)📝
packages/server/src/routes/combat-director.routes.ts(+1 -0)📝
packages/server/src/services/game/ruleset-combat-director.service.ts(+43 -0)📝
packages/shared/src/features/combat-director.ts(+7 -1)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+45 -1)📝
packages/shared/src/features/ruleset-combat/index.ts(+3 -0)📝
packages/shared/src/features/ruleset-combat/options.ts(+55 -0)📝
packages/shared/src/features/ruleset-combat/resolve.ts(+157 -5)📝
packages/shared/src/features/ruleset-combat/symbols.ts(+64 -1)📝
packages/shared/src/features/ruleset-combat/types.ts(+43 -4)...and 2 more files
📄 Description
Linked issue
Closes #8232
Why this change
In a symbol-pool fight (Capability API 1.382) the Engine picks what every throw's leftover symbols buy, for players as well as for the AI. That keeps fights cheap, but a player who wants to spend their own advantage, triumph or threat had no way to. This adds that choice without changing the default.
What changed
spendwindow, before anything is spent. The window lists:max,when, and whether the spend would land.{ type: "spends", choose }. The view carriesspends.choose, and a spend window carrieswindow.spend(by,hit). The fight'saskSpendsfollows whoever the player plays.docs/extending/writing-rulesets.md.Defaults chosen (easy to change in review):
Validation
pnpm checkparts run locally: shared, server and client typecheck; client eslint on the changed files;format:check;localization:check;impeccable:checkCONTRIBUTING.mdManual verification notes
game-ruleset-combat-symbol-pool.regression.tsnow covers these cases:ruleset-combat-screen-client.regression.tscovers the menu order and the Engine-pick label.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation): tracked on #7512🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.