[PR #8274] [MERGED] fix(game): a raised defense names its base and each bonus once; the GM says a place before a buy #8259

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

📋 Pull Request Information

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

Base: staging ← Head: fix/guarded-defense-place-first


📝 Commits (3)

  • 3abfd78 fix(game): a raised defense names its base and each bonus once; the GM says a place before a buy
  • 402ba2c fix(game): the base a guarded defense rose from is carried on the event
  • 8e801b1 Merge remote-tracking branch 'origin/staging' into fix/guarded-defense-place-first

📊 Changes

9 files changed (+67 additions, -23 deletions)

View changed files

📝 packages/client/src/lib/ruleset-combat-log.ts (+27 -18)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/server/src/services/game/gm-prompts.ts (+1 -1)
📝 packages/shared/src/features/ruleset-combat/options.ts (+3 -2)
📝 packages/shared/src/features/ruleset-combat/resolve.ts (+3 -1)
📝 packages/shared/src/features/ruleset-combat/types.ts (+4 -0)
📝 scripts/regressions/game-ruleset-combat-conditions.regression.ts (+1 -1)
📝 scripts/regressions/game-ruleset-combat-hit.regression.ts (+22 -0)
📝 scripts/regressions/game-ruleset-markets.regression.ts (+5 -0)

📄 Description

Linked issue

Closes #8273

Why this change

  • Before: a defense raised by a reaction read "Against Armor Class 17 (Parrying (+2) + 2)": no base, and the bonus twice when the condition's name carries it. A buy before any [place:] tag was refused with no-place, and nothing in the GM's instructions said the place must come first.
  • After: it reads "Against Armor Class 17 (from 15: Parrying (+2))", and the GM is told to say the place before the first buy or sell.

What changed

  • Combat log: a guarded defense shows the number rolled against, the base it rose from, and each bonus once. A bonus whose name already carries its number ("Parrying (+2)") is not given it again; "Shielded + 5" stays as it was.
  • GM format reminder: the [place:] line says a place must be said before the first buy or sell there, since with none every buy and sell is refused.

Validation

  • Regressions pass locally: game-ruleset-combat-hit (new Parrying case), game-ruleset-combat-conditions, game-ruleset-markets (prompt line)
  • Client typecheck, prettier
  • 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

  • Found in an end-to-end Game Mode pass against an SRD ruleset; covered here by regressions.

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/8274 **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/guarded-defense-place-first` --- ### 📝 Commits (3) - [`3abfd78`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3abfd78c087c706aad9b36eb2b66687427c52c2b) fix(game): a raised defense names its base and each bonus once; the GM says a place before a buy - [`402ba2c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/402ba2cacaeaa1b64da8c34e2a603f937c974fe9) fix(game): the base a guarded defense rose from is carried on the event - [`8e801b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8e801b1b5f7741f33b1f8a2aa0f45c75a4092f66) Merge remote-tracking branch 'origin/staging' into fix/guarded-defense-place-first ### 📊 Changes **9 files changed** (+67 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/lib/ruleset-combat-log.ts` (+27 -18) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/server/src/services/game/gm-prompts.ts` (+1 -1) 📝 `packages/shared/src/features/ruleset-combat/options.ts` (+3 -2) 📝 `packages/shared/src/features/ruleset-combat/resolve.ts` (+3 -1) 📝 `packages/shared/src/features/ruleset-combat/types.ts` (+4 -0) 📝 `scripts/regressions/game-ruleset-combat-conditions.regression.ts` (+1 -1) 📝 `scripts/regressions/game-ruleset-combat-hit.regression.ts` (+22 -0) 📝 `scripts/regressions/game-ruleset-markets.regression.ts` (+5 -0) </details> ### 📄 Description ## Linked issue Closes #8273 ## Why this change - Before: a defense raised by a reaction read "Against Armor Class 17 (Parrying (+2) + 2)": no base, and the bonus twice when the condition's name carries it. A buy before any `[place:]` tag was refused with `no-place`, and nothing in the GM's instructions said the place must come first. - After: it reads "Against Armor Class 17 (from 15: Parrying (+2))", and the GM is told to say the place before the first buy or sell. ## What changed - Combat log: a guarded defense shows the number rolled against, the base it rose from, and each bonus once. A bonus whose name already carries its number ("Parrying (+2)") is not given it again; "Shielded + 5" stays as it was. - GM format reminder: the `[place:]` line says a place must be said before the first buy or sell there, since with none every buy and sell is refused. ## Validation - [x] Regressions pass locally: `game-ruleset-combat-hit` (new Parrying case), `game-ruleset-combat-conditions`, `game-ruleset-markets` (prompt line) - [x] Client typecheck, prettier - [ ] 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 - Found in an end-to-end Game Mode pass against an SRD ruleset; covered here by regressions. ## 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:11 +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#8259
No description provided.