mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#8636
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/8497
Author: @kolacheee
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-mhcusi📝 Commits (5)
6d9b96bKeep or drop dice in a pool: 4d6kh3, 2d20kl1, 4d6dl19c611f1Explain keep and drop in the /roll docsb6a2af2Let the composer dice route take a pool, and refuse an oversized one90f03ebMerge remote-tracking branch 'origin/staging' into claude/project-thread-mhcusi252ae99Refuse an oversized pool in the composer route's schema📊 Changes
13 files changed (+262 additions, -36 deletions)
View changed files
📝
docs/chats/slash-commands.md(+2 -0)📝
packages/client/src/components/dice/AnimatedDiceRoll.tsx(+8 -4)📝
packages/client/src/lib/dice-roll-result.ts(+2 -0)📝
packages/client/src/lib/slash-commands.ts(+10 -6)📝
packages/server/src/routes/game.routes.ts(+2 -2)📝
packages/server/src/services/game/dice.service.ts(+34 -4)📝
packages/server/src/services/generation/roleplay-rolls.ts(+3 -3)📝
packages/server/src/services/multiplayer/player-commands.ts(+6 -3)📝
packages/server/src/services/tools/tool-executor.ts(+10 -7)📝
packages/shared/src/features/function-calls/tools/roll-dice/manifest.ts(+4 -1)📝
packages/shared/src/types/game.ts(+3 -0)📝
packages/shared/src/utils/dice-notation.ts(+93 -5)📝
scripts/regressions/dice-notation.regression.ts(+85 -1)📄 Description
Linked issue
Part of #8489. It follows #8495 and builds the dice pool model the issue's submitter described: a roll is a pool of dice, each die's face is fixed once thrown, and keep, drop and modifiers act on the pool rather than on the faces.
Why this change
Tabletop rollers read
4d6kh3(roll four, keep the highest three) and2d20kl1(disadvantage), but every Marinara roller refused anything pastNdM+K. Each roller would otherwise grow its own keep logic, which is the duplication #8489 asks us to remove.What changed
/roll, composer dice, theroll_dicetool, multiplayer/rolland Roleplay[roll:]commands accept keep and drop:kh/k(keep highest),kl(keep lowest),dl(drop lowest),dh(drop highest), with an optional modifier after it (4d6kh3+2).3, 6, ~~1~~, 5).4d6kh0,2d20kh3,4d6dl4), is refused like any other invalid notation.NdM(ruleset sheets, the GM's[dice:]and[skill_check:]tags,{{roll:}}) are unchanged.parseDicePool(in@marinara-engine/shared) is the pool reader the plain rollers use. A parsed notation can carrykeep, a rolled result can carrykept(the places of the counted dice), andkeptDice,formatKeptRollsandisKeptDiceare shared helpers.Validation
pnpm checkpasses locallyCONTRIBUTING.mdpnpm checkran clean locally before the rebase onto current staging. These regressions pass after the rebase: dice-notation, with new cases for the pool grammar, refusals, tie-breaking, the clamp, and the tool, composer and/rollpaths. Also run and passing: dice-display, game-dice-commands, game-mode-dice-tool, game-text-dice, roleplay-commands, game-tool-controls, one-request-dice-placeholders and -prompt, prompt, roleplay-roll-helpers, roleplay-function-calling, game-ruleset-checks, and the otherroll_diceregressions.Manual verification notes
/roll 4d6kh3posts a card with four dice, one dimmed, and a total of the three kept./roll 2d20kl1+3keeps the lower die./roll 4d6kh0shows "Invalid dice notation".Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/chats/slash-commands.mdgains one paragraph on keep and drop; it is added to the docs-i18n catch-up issue #8499.UI evidence (if applicable)
The dice card reuses its existing dimming for dice that didn't count, so there's no new layout.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.