[GH-ISSUE #6758] [Issue]: Game Mode docs describe loot drops on victory that nothing produces #3783

Closed
opened 2026-10-21 06:07:14 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Sep 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6758

Originally assigned to: @kolacheee on GitHub.

Summary

The docs say enemies drop loot when you win a fight, with rarity tiers from common to legendary, and more rare drops on harder difficulties. Nothing in the app produces those drops. The loot service and its two routes still exist on the server, but no client code has called them since the client hook was removed as unused.

Expected behavior

Either winning a fight drops loot as described, or the docs (and Mari's knowledge of Game Mode) describe what actually happens.

Actual behavior

  • No loot is generated on victory. Items only reach the inventory when the Game Master adds them in narration with [inventory: action="add" ...].
  • packages/server/src/services/game/loot.service.ts (weighted tables by rarity and difficulty) and its routes POST /game/combat/loot and POST /game/loot/generate (packages/server/src/routes/game.routes.ts:10068-10090) have no caller.
  • The client hook that called /game/combat/loot, useCombatLoot, was removed in 232aae8af ("Clean up unused code and dependencies", 2026-07-22). docs/development/code-cleanup-audit.md:182 already listed it, and useLootGenerate, as unused hooks.
  • CombatEncounterSummary.loot (packages/shared/src/types/game.ts:753) is read for journal text but never written.

The docs that still describe loot drops:

  • docs/game/combat.md:123-125 ("Boss mechanics and loot": "When you win a fight, the enemies drop loot. Each item has a rarity...").
  • packages/server/src/db/seed-mari.ts:310, Mari's Game Mode knowledge ("Loot drops generated on victory via POST /game/combat/loot").

Steps to reproduce

  1. Start a Game Mode game and win a classic or tactical fight.
  2. Look at the inventory and the victory screen: no drops are added or shown.
  3. Search the client for /game/combat/loot or /game/loot/generate: nothing calls either route.

Environment

  • Marinara Engine version: staging 5d123e609
  • Install type: source
  • OS + version: any
  • Browser or app shell: any

Logs, screenshots, or video

None needed; the evidence is the code paths above.

Additional context

A decision for the maintainer: wire the loot service back into victory (the docs describe that design), or remove the dead service, routes and summary field and correct docs/game/combat.md and Mari's seed. The planned ruleset items work gives rulesets their own loot tables either way, and a ruleset can switch native loot off, so it does not depend on which way this goes.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6758 Originally assigned to: @kolacheee on GitHub. ## Summary The docs say enemies drop loot when you win a fight, with rarity tiers from common to legendary, and more rare drops on harder difficulties. Nothing in the app produces those drops. The loot service and its two routes still exist on the server, but no client code has called them since the client hook was removed as unused. ## Expected behavior Either winning a fight drops loot as described, or the docs (and Mari's knowledge of Game Mode) describe what actually happens. ## Actual behavior - No loot is generated on victory. Items only reach the inventory when the Game Master adds them in narration with `[inventory: action="add" ...]`. - `packages/server/src/services/game/loot.service.ts` (weighted tables by rarity and difficulty) and its routes `POST /game/combat/loot` and `POST /game/loot/generate` (`packages/server/src/routes/game.routes.ts:10068-10090`) have no caller. - The client hook that called `/game/combat/loot`, `useCombatLoot`, was removed in 232aae8af ("Clean up unused code and dependencies", 2026-07-22). `docs/development/code-cleanup-audit.md:182` already listed it, and `useLootGenerate`, as unused hooks. - `CombatEncounterSummary.loot` (`packages/shared/src/types/game.ts:753`) is read for journal text but never written. The docs that still describe loot drops: - `docs/game/combat.md:123-125` ("Boss mechanics and loot": "When you win a fight, the enemies drop loot. Each item has a rarity..."). - `packages/server/src/db/seed-mari.ts:310`, Mari's Game Mode knowledge ("Loot drops generated on victory via `POST /game/combat/loot`"). ## Steps to reproduce 1. Start a Game Mode game and win a classic or tactical fight. 2. Look at the inventory and the victory screen: no drops are added or shown. 3. Search the client for `/game/combat/loot` or `/game/loot/generate`: nothing calls either route. ## Environment - Marinara Engine version: staging 5d123e609 - Install type: source - OS + version: any - Browser or app shell: any ## Logs, screenshots, or video None needed; the evidence is the code paths above. ## Additional context A decision for the maintainer: wire the loot service back into victory (the docs describe that design), or remove the dead service, routes and summary field and correct `docs/game/combat.md` and Mari's seed. The planned ruleset items work gives rulesets their own loot tables either way, and a ruleset can switch native loot off, so it does not depend on which way this goes. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:07:14 +07:00
Author
Owner

@kolacheee commented on GitHub (Sep 30, 2026):

@kolacheee is working on this in slice I7-1 of the ruleset items plan (loot tables and victory loot). The decision is to make the docs true rather than trim them: a won fight will drop loot in every Game Mode game. Without a ruleset the loot comes from the native tables that loot.service.ts already has (classic, tactical and ruleset fights alike). A ruleset that declares loot tables drops its own items instead, and one that turns its native items off gets no native drops. The recap sent to the Game Master will list what dropped, and Mari's instructions will be brought in line. The I7-1 PR will close this issue.

<!-- gh-comment-id:5912253526 --> @kolacheee commented on GitHub (Sep 30, 2026): @kolacheee is working on this in slice I7-1 of the ruleset items plan (loot tables and victory loot). The decision is to make the docs true rather than trim them: a won fight will drop loot in every Game Mode game. Without a ruleset the loot comes from the native tables that `loot.service.ts` already has (classic, tactical and ruleset fights alike). A ruleset that declares loot tables drops its own items instead, and one that turns its native items off gets no native drops. The recap sent to the Game Master will list what dropped, and Mari's instructions will be brought in line. The I7-1 PR will close this issue.
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#3783
No description provided.