mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8326] [MERGED] fix(game): health held into a tier sets back a choice that keeps it from moving #8274
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#8274
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/8326
Author: @kolacheee
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @kolacheee
Base:
staging← Head:fix/health-hold-method-reset📝 Commits (2)
d42ffa8fix(game): health held into a tier sets back a choice that keeps it from moving39fbe5efix(game): only a choice that stops health's field counting is set back📊 Changes
2 files changed (+164 additions, -26 deletions)
View changed files
📝
packages/shared/src/features/ruleset-combat/hold.ts(+92 -24)📝
scripts/regressions/game-ruleset-combat-creature-sheets.regression.ts(+72 -2)📄 Description
Linked issue
Closes #8325
Why this change
Before: when the Game Master wrote a sheet for an invented creature that also picked a way of counting health that never reads the typed number (5e's "Average" hit points), holding its health into the tier's band changed nothing. A mage stayed at 38 hit points under a band of 45 to 120, and the adjustment said health "was moved toward" the band.
After: when only that choice stands in the way, it goes back to the ruleset's default and health lands in the band. The adjustment line says which choice was set back.
What changed
holdRulesetSheetHealthsearches the field as before. If that cannot reach the band and the field does not count at all as written, it tries setting back each enum choice that the health pool's maximum reads and that the sheet set away from its default. It keeps the first one after which the field counts again and health lands in the band.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
scripts/regressions/game-ruleset-combat-creature-sheets.regression.tspasses, and fails on staging with "Health 28 was moved toward the 45 to 82 of CR 3 ... and is now 28."packages/sharedlint (registries +tsc --noEmit) and prettier are clean.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.