mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8255] [Feature]: Tint Roleplay roll cards by outcome (success / failure, optional crits) #8206
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#8206
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?
Originally created by @ylli-selmani on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8255
Originally assigned to: @ylli-selmani on GitHub.
What problem does this solve?
When a Roleplay character uses the
rollcommand with a DC, the dice card always renders in the chat's accent color. A failed check (1d20+1 = 2vs DC 12) looks exactly like a clean success, so the outcome only shows up in small text or in the narration that follows.The skill-check card (
AnimatedSkillCheckResult) already solves this: it tints the same dice card green / red / gold / deep red by outcome. The[roll:]card just never receives a tone.Proposed solution
TONE_ACCENTcolors out ofAnimatedSkillCheckResult.tsxinto a shared dice helper. Both cards call it, so the two look identical for the same outcome.roll_dicealready returnssuccesswhenever a DC was given (tool-executor.ts). The card reads that field and never recomputestotal < dcitself. No DC means no tint (accent color, as today), and so does a success-counting pool without a verdict.Crits are opt-in on purpose. Not every table plays nat 1 / nat 20 rules, and the card shouldn't introduce a rule the user didn't choose.
Alternatives considered
total < dc: rejected. Systems differ (meet-or-beat, roll-under), and the server already decided.Additional context
Precedent:
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(tone mapping) wrapsAnimatedDiceRoll. The settings precedent is the "Who can roll dice" select inRoleplayCommandsSettings.tsx.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: