mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8258] [MERGED] feat(roleplay): tint roll cards by outcome #8251
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#8251
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/8258
Author: @ylli-selmani
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/roll-result-tone📝 Commits (2)
50e4361feat(roleplay): tint roll cards by outcome5fe89fefix(roleplay): keep the roll audience warning under its select📊 Changes
11 files changed (+179 additions, -29 deletions)
View changed files
📝
packages/client/src/components/chat/ChatMessage.tsx(+7 -0)📝
packages/client/src/components/chat/RoleplayCommandResults.tsx(+11 -2)📝
packages/client/src/components/chat/RoleplayCommandsSettings.tsx(+22 -0)📝
packages/client/src/components/dice/AnimatedDiceRoll.tsx(+6 -6)📝
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(+2 -20)➕
packages/client/src/components/dice/dice-tone.ts(+56 -0)📝
packages/client/src/lib/dice-roll-result.ts(+2 -1)📝
packages/client/src/localization/locales/en.json(+4 -0)📝
packages/shared/src/types/chat.ts(+2 -0)📝
packages/shared/src/types/game.ts(+2 -0)➕
scripts/regressions/roll-result-tone.regression.ts(+65 -0)📄 Description
Linked issue
Closes #8255
Why this change
1d20+1 = 2vs DC 12) looks exactly like a success, so the outcome is only in small text or the narration after it.[roll:]card just never got a tone.What changed
Shared tone (reuse, not a rebuild)
Tone,TONE_ACCENTcolors and tone choice move unchanged intocomponents/dice/dice-tone.ts.AnimatedSkillCheckResultand the roll card both use it, so the same outcome looks the same on both. Precedent:AnimatedSkillCheckResult.tsx.AnimatedDiceRolltakes an optionaltone. An explicitaccentColorstill wins, so the skill-check card renders exactly as before.Roll verdict
successfield, whichroll_dicealready returns whenever a DC is given. The client never recomputestotal < dc, because systems differ (meet-or-beat, roll-under). A roll without a DC stays in the accent color.DiceRollResultgains an optionalsuccess, andisDiceRollResultaccepts it only as a boolean.Per-chat setting
Proof
scripts/regressions/roll-result-tone.regression.tscovers:successValidation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
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)
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.