[PR #8320] [MERGED] fix(game): called creatures fit where they are set down, and held health lands in its tier #8271

Closed
opened 2026-10-26 04:04:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8320
Author: @kolacheee
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @kolacheee

Base: staging ← Head: fix/called-room-and-health-hold


📝 Commits (1)

  • 2daa979 fix(game): called creatures fit where they are set down, and health lands in its tier

📊 Changes

4 files changed (+295 additions, -6 deletions)

View changed files

📝 packages/shared/src/features/ruleset-combat/calls.ts (+24 -1)
📝 packages/shared/src/features/ruleset-combat/hold.ts (+29 -5)
➕ scripts/regressions/game-ruleset-combat-call-room.regression.ts (+153 -0)
📝 scripts/regressions/game-ruleset-combat-creature-sheets.regression.ts (+89 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8319

Why this change

  • Before: a Large creature brought by a call (a Conjure Animals Draft Horse) could be set down on top of the foe it was called to fight, or on the party beside its caller. An invented creature whose health was held into its tier could end up with far less health than the tier asks (27 became 5 instead of 32).
  • After: called creatures stand where their whole size fits, clear of everybody. Held health lands inside the tier's band.

What changed

  • A call now sets down each creature it brings where its whole footprint fits, the biggest first, clear of everybody already in the fight. Creatures of one cell come to the nearest open cell as before.
  • Holding health into a tier no longer assumes health follows its field one for one. It moves the field by what is still short a few times, tries the target itself, and keeps the closest result.

Validation

  • New game-ruleset-combat-call-room regression: four Large creatures called beside a caller in a crowd stand clear of everybody and each other. It fails on the old code.
  • game-ruleset-combat-creature-sheets regression: health that is "typed, else fixed" is pulled from 28 into the 45 to 82 band and lands on 45. It failed on the old code with 17.
  • game-ruleset-combat-calls still passes; shared typecheck passes locally; CI runs the full check.
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Both were found in playtest fights and are covered by the regressions above.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8320 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `fix/called-room-and-health-hold` --- ### 📝 Commits (1) - [`2daa979`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2daa979a4d7cf6ffd37aa8b4714ff198ff38c6da) fix(game): called creatures fit where they are set down, and health lands in its tier ### 📊 Changes **4 files changed** (+295 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/shared/src/features/ruleset-combat/calls.ts` (+24 -1) 📝 `packages/shared/src/features/ruleset-combat/hold.ts` (+29 -5) ➕ `scripts/regressions/game-ruleset-combat-call-room.regression.ts` (+153 -0) 📝 `scripts/regressions/game-ruleset-combat-creature-sheets.regression.ts` (+89 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #8319 ## Why this change - Before: a Large creature brought by a call (a Conjure Animals Draft Horse) could be set down on top of the foe it was called to fight, or on the party beside its caller. An invented creature whose health was held into its tier could end up with far less health than the tier asks (27 became 5 instead of 32). - After: called creatures stand where their whole size fits, clear of everybody. Held health lands inside the tier's band. ## What changed - A call now sets down each creature it brings where its whole footprint fits, the biggest first, clear of everybody already in the fight. Creatures of one cell come to the nearest open cell as before. - Holding health into a tier no longer assumes health follows its field one for one. It moves the field by what is still short a few times, tries the target itself, and keeps the closest result. ## Validation - [x] New `game-ruleset-combat-call-room` regression: four Large creatures called beside a caller in a crowd stand clear of everybody and each other. It fails on the old code. - [x] `game-ruleset-combat-creature-sheets` regression: health that is "typed, else fixed" is pulled from 28 into the 45 to 82 band and lands on 45. It failed on the old code with 17. - [x] `game-ruleset-combat-calls` still passes; shared typecheck passes locally; CI runs the full check. - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Both were found in playtest fights and are covered by the regressions above. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 04:04:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8271
No description provided.