mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8264] [MERGED] fix(game): keep the draft's sheet spends when the GM rewrites after the dice #8255
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#8255
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/8264
Author: @kolacheee
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @kolacheee
Base:
staging← Head:fix/dice-rewrite-keeps-costs📝 Commits (3)
c155c98fix(game): keep the draft's sheet spends when the GM rewrites after the dice65b913cfix(game): match an unnamed cost to the player, and skip a discarded branch's23f6918fix(game): a party cost that names somebody never stands in for the draft's📊 Changes
3 files changed (+138 additions, -1 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+14 -1)➕
packages/server/src/services/game/dice-rewrite-costs.ts(+63 -0)➕
scripts/regressions/game-dice-rewrite-costs.regression.ts(+61 -0)📄 Description
Linked issue
Closes #8263
Why this change
spendorusethe draft wrote. In a playtest it dropped Wild Shape and Bardic Inspiration, so neither was ever paid.What changed
[sheet: op="spend" ...]or[sheet: op="use" ...]in the GM's draft was paid only if the rewrite after the dice copied it, and nothing said when it didn't.[generate/game/raw], next to the draft.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
scripts/regressions/game-dice-rewrite-costs.regression.tscovers: a dropped spend is put back, a repeated one is kept once whatever its case or attribute order, ausecounts as a cost, a failed rewrite still pays, and a draft with no costs leaves the rewrite unchanged.tsc --noEmiton the server is clean, and prettier was run on the changed files.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.