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#8639
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/8503
Author: @kolacheee
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-mhcusi📝 Commits (2)
481b2e3Throw a symbol-pool ruleset's dice by name in the composer and roll_dicef4b983fTell the GM when symbol dice ignore its modifier or DC📊 Changes
13 files changed (+546 additions, -58 deletions)
View changed files
📝
docs/extending/writing-rulesets.md(+1 -0)📝
docs/game/dice-and-skill-checks.md(+6 -0)📝
packages/client/src/components/dice/AnimatedDiceRoll.tsx(+88 -50)📝
packages/client/src/components/game/GameInput.tsx(+11 -1)📝
packages/client/src/lib/dice-roll-result.ts(+2 -0)📝
packages/server/src/routes/game.routes.ts(+14 -5)📝
packages/server/src/services/game/dice.service.ts(+31 -0)📝
packages/server/src/services/tools/tool-executor.ts(+44 -1)📝
packages/shared/src/features/function-calls/tools/roll-dice/manifest.ts(+2 -1)➕
packages/shared/src/features/rulesets/symbol-dice-notation.ts(+163 -0)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/types/game.ts(+7 -0)➕
scripts/regressions/ruleset-symbol-dice-notation.regression.ts(+176 -0)📄 Description
Linked issue
Part of #8489 (named dice in the plain rollers, item 2 of the plan in the issue comments). The issue stays open for the last step, ruleset combat on the shared roller.
Why this change
roll_dicetool still only tookNdM, so a player or the GM could not just roll "2 ability 1 proficiency vs 2 difficulty" and see the symbols.What changed
parseSymbolDiceNotation/rollSymbolDiceNotation(packages/shared/src/features/rulesets/symbol-dice-notation.ts). It reads the ruleset's own dice by id or label in any case, with an optional plural "s", and separators of spaces, commas,+,vsandagainst. It counts and cancels symbols the same way asrollSymbolPoolCheck, and reports net successes and success against the ruleset'ssuccess.needed.sheet-math.tsis untouched, and a regression proves both give the same result for the same faces.POST /game/dice/roll: plainNdMnotation still goes throughrollDice. Otherwise, in a game chat whose ruleset is symbol-pool, the notation is read as named dice and thrown with the shared secure roller. Anything else is still a 400.roll_dicetool: the same fallback, reading the ruleset from the chat's metadata, with a short symbol summary in the tool text. The tool description now mentions named dice.DiceRollResultgains optionalthrown,symbolFaces,symbolsandsymbolLabels.isDiceRollResultandparseRollDiceToolResultaccept them only when all four are present and well formed.AnimatedDiceRollshows a chip per die with its symbols and a footer with the net symbols and success or failure, reusing existing locale keys. The composer writes[dice: notation = symbols; success|failure]into the message./rollis not part of this: slash commands only run in conversation and roleplay chats, which have no game ruleset.Validation
pnpm checkpasses locally (server and clienttsc, Prettier on the changed files, and the regressions below)CONTRIBUTING.mdManual verification notes
ruleset-symbol-dice-notation, plusdice-notation,game-ruleset-symbol-pool,game-dice-commands,game-mode-dice-tool,dice-display,extension-dice-formatsandroleplay-commands.Docs and release impact
docs/game/dice-and-skill-checks.md(new "Symbol dice by name" subsection) anddocs/extending/writing-rulesets.md(one bullet in the symbol-pool section)docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened: added to #8499UI evidence (if applicable)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.