mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4684] [MERGED] fix(game): make dice results display honestly #6466
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#6466
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/4684
Author: @Gunterlie
Created: 8/6/2026
Status: ✅ Merged
Merged: 8/8/2026
Merged by: @Gunterlie
Base:
staging← Head:roll-system-validation📝 Commits (6)
49bab9afix(game): make dice results display honestly76eb632fix(game): declare skill check resolution mode69b4373fix(game): address dice review findingsfcb80b0fix(game): distinguish invalid dice declarationsa6a7769fix(game): harden implicit d20 validationdb0e87efix(game): reject conflicting dice notation📊 Changes
14 files changed (+316 additions, -41 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
package.json(+2 -1)📝
packages/client/src/components/dice/AnimatedDiceRoll.tsx(+20 -3)📝
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(+12 -2)📝
packages/client/src/components/game/GameNarration.tsx(+2 -12)📝
packages/client/src/lib/game-tag-parser.ts(+81 -13)📝
packages/client/src/lib/slash-commands.ts(+7 -6)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/server/src/services/game/gm-prompts.ts(+2 -2)📝
packages/server/src/services/game/segment-edits.ts(+3 -0)📝
packages/server/src/services/game/skill-check.service.ts(+8 -0)📝
packages/shared/src/types/game.ts(+10 -0)📝
packages/shared/src/utils/skill-check-format.ts(+26 -2)➕
scripts/regressions/dice-display.regression.ts(+139 -0)📄 Description
Linked issue
Closes #4683
Why this change
Game Mode result cards previously guessed how a result was calculated by checking whether the numbers happened to add up. That made valid advantage rolls and non-sum dice pools look mathematically broken, and could mislabel a success count as a dice total. The result now declares its meaning explicitly so the UI can describe it faithfully.
What changed
resolution="sum"orresolution="successes"semantics through tags, summaries, narration logs, and the dice card.N success/N successes, without treating the count as arithmetic./rollinputs.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm regression:dicepasses, including the ambiguous[1, 1]/2 successescase.pnpm localization:checkpasses.pnpm checkremains blocked by existing Fastify/sharp TypeScript errors in untouched server files (packages/server/src/app.ts,packages/server/src/config/client-static-config.ts, andpackages/server/src/utils/sharp.ts).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)
The changed UI needs manual browser screenshots for the PR before it is marked ready for review.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.