[PR #8328] [MERGED] fix(game): a fled foe comes back as it was, and the GM keeps to what the market and story offer #8565

Closed
opened 2026-11-07 16:45:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/game-mode-returning-foes


📝 Commits (3)

  • 2cb2b87 fix(game): the Game Master narrates only the shops and wares its market block lists
  • 44385a3 fix(game): the Game Master never offers the same choices turn after turn
  • f3c69c1 fix(combat): a foe that got away comes back as it was

📊 Changes

5 files changed (+158 additions, -5 deletions)

View changed files

📝 packages/server/src/routes/combat-director.routes.ts (+48 -3)
📝 packages/server/src/services/game/gm-prompts.ts (+2 -2)
📝 packages/server/src/services/game/ruleset-combat-director.service.ts (+48 -0)
📝 scripts/regressions/game-ruleset-markets.regression.ts (+3 -0)
📝 scripts/regressions/ruleset-combat-director-route.regression.ts (+57 -0)

📄 Description

Linked issue

Closes #8327

Why this change

Before: an enemy that fled a ruleset fight was rebuilt from scratch the next time a fight named it, so it could come back at a higher tier with double the health. The Game Master could also narrate shops and wares the MARKET block did not list, and re-offer a set of choices the player had already passed over.

After: a foe that got away comes back with the same creature, tier, sheet and rolled health, and the fight's adjustments say " is the same one that got away before." The Game Master describes only the sellers and wares the market lists, and offers choices that fit where the story is now.

What changed

  • When a ruleset fight ends, each enemy that fled is remembered in the chat by name, as it was made (creature, tier, proposed sheet, and its rolled health when it has no sheet). An enemy beaten there is forgotten. A later fight that names it builds it from that record.
  • The GM prompt's place line says a shop, stall or shelf the MARKET block does not list is nothing anyone can buy, so it is never narrated as for sale.
  • The GM prompt's choices line says each set fits where the story is now: never re-offer choices the player passed over, nor the same set turn after turn.

Validation

  • New route regression in ruleset-combat-director-route.regression.ts: a fight in which one enemy flees and one is beaten stores only the one that fled, and the next fight that names it has the same maximum health and the adjustment line.
  • game-ruleset-markets.regression.ts pins the new market wording.
  • Server typecheck and prettier are clean. The 53 regressions that touch the combat director or ruleset fights all pass locally.

Manual verification notes

Found in laptop playtests on the 5e ruleset: a Cult Mage fled and came back stronger, the GM described a shop with no wares behind it, and the GM repeated an old choice set.

Docs and release impact

No docs changes. Release note: a foe that flees a ruleset fight comes back the same, and the Game Master keeps to the market's own wares and to choices that fit the story's current moment.


🔄 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/8328 **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/game-mode-returning-foes` --- ### 📝 Commits (3) - [`2cb2b87`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2cb2b879f397879adcb81028c702e6d82061434a) fix(game): the Game Master narrates only the shops and wares its market block lists - [`44385a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/44385a3e17d625b2ce992dd64a7c96fda8f6588c) fix(game): the Game Master never offers the same choices turn after turn - [`f3c69c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f3c69c14579e4b8100b9648e2d0f47cc15f677a5) fix(combat): a foe that got away comes back as it was ### 📊 Changes **5 files changed** (+158 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/combat-director.routes.ts` (+48 -3) 📝 `packages/server/src/services/game/gm-prompts.ts` (+2 -2) 📝 `packages/server/src/services/game/ruleset-combat-director.service.ts` (+48 -0) 📝 `scripts/regressions/game-ruleset-markets.regression.ts` (+3 -0) 📝 `scripts/regressions/ruleset-combat-director-route.regression.ts` (+57 -0) </details> ### 📄 Description ## Linked issue Closes #8327 ## Why this change Before: an enemy that fled a ruleset fight was rebuilt from scratch the next time a fight named it, so it could come back at a higher tier with double the health. The Game Master could also narrate shops and wares the MARKET block did not list, and re-offer a set of choices the player had already passed over. After: a foe that got away comes back with the same creature, tier, sheet and rolled health, and the fight's adjustments say "<name> is the same one that got away before." The Game Master describes only the sellers and wares the market lists, and offers choices that fit where the story is now. ## What changed - When a ruleset fight ends, each enemy that fled is remembered in the chat by name, as it was made (creature, tier, proposed sheet, and its rolled health when it has no sheet). An enemy beaten there is forgotten. A later fight that names it builds it from that record. - The GM prompt's place line says a shop, stall or shelf the MARKET block does not list is nothing anyone can buy, so it is never narrated as for sale. - The GM prompt's choices line says each set fits where the story is now: never re-offer choices the player passed over, nor the same set turn after turn. ## Validation - New route regression in `ruleset-combat-director-route.regression.ts`: a fight in which one enemy flees and one is beaten stores only the one that fled, and the next fight that names it has the same maximum health and the adjustment line. - `game-ruleset-markets.regression.ts` pins the new market wording. - Server typecheck and prettier are clean. The 53 regressions that touch the combat director or ruleset fights all pass locally. ## Manual verification notes Found in laptop playtests on the 5e ruleset: a Cult Mage fled and came back stronger, the GM described a shop with no wares behind it, and the GM repeated an old choice set. ## Docs and release impact No docs changes. Release note: a foe that flees a ruleset fight comes back the same, and the Game Master keeps to the market's own wares and to choices that fit the story's current moment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:36 +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#8565
No description provided.