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#8699
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/8608
Author: @kolacheee
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-mhcusi📝 Commits (1)
e789ce2Ruleset combat rolls through the shared seeded die roller📊 Changes
5 files changed (+74 additions, -5 deletions)
View changed files
📝
packages/server/src/services/game/ruleset-combat-director.service.ts(+2 -1)📝
packages/shared/src/features/ruleset-combat/dice.ts(+2 -3)📝
packages/shared/src/features/ruleset-combat/types.ts(+2 -1)📝
packages/shared/src/utils/dice-notation.ts(+16 -0)➕
scripts/regressions/seeded-die-roller.regression.ts(+52 -0)📄 Description
Linked issue
Closes #8489 (the last step of the plan in its comments: ruleset combat on the shared roller, after the SRD ruleset work landed).
Why this change
What changed
packages/shared/src/utils/dice-notation.ts) gainsseededDieRoller(seed, cursor), the replayable roller ruleset combat used (onederiveSubSeedtick per die, mulberry32), anddieRollerFrom(rng)for a caller that already holds a [0,1) stream.RulesetCombatRolleris now the sharedDieRollertype, andrulesetCombatRoller(seed, cursor)returnsseededDieRoller(seed, cursor). Every caller (encounters, turns, the director, item use, loot, markets) is unchanged.dieRollerFrominstead of an inline formula.parseRulesetCombatDiceand thesidesfields are untouched, and no Capability API version.rollDieSecurely.Validation
pnpm checkpasses locally (server and clienttsc, Prettier on the changed files, and the regressions below)CONTRIBUTING.mdManual verification notes
seeded-die-rollerregression: the shared roller andrulesetCombatRollerthrow exactly the old formula's faces across many seeds, cursors and die sizes, one tick per die, anddieRollerFrommatches the hand formula. Also passing: all 477ruleset-combatregressions, the 24diceregressions,game-ruleset-item-use(3),game-ruleset-lootandmarket.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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.