[GH-ISSUE #6814] Game Mode: the Game Master invents a ruleset's items, checked and capped by rarity #3821

Closed
opened 2026-10-21 06:07:54 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

In a game with a ruleset, the Game Master can only hand out items that are in the ruleset's catalogs, or plain items with no ruleset data at all. A story often needs something new: a named blade, a strange charm. Today such an item has no category, rarity, stats or slots, so it cannot be worn, weighed or shown like the ruleset's own items. And nothing stops an invented item from being far stronger than its rarity allows.

Proposed solution

Slice I3-1 of the ruleset items arc (plan section 4.10):

  • The Game Master can propose an item of the ruleset in its inventory tag: [inventory: action="add" item="Mourning Edge" like="outfitter/hand-axe" category="weapon" rarity="uncommon" stats="damage=1d8" slots="hands=1" summary="..."]. like= starts from one of the ruleset's items, and anything else given replaces that part.
  • The Engine reads the proposal against the ruleset's items: its categories, rarities, tags, stats, slots and binding. What the ruleset does not have is dropped, and a rarity it does not have becomes its lowest.
  • A new items.rarityCaps sets the largest value of each number stat for each rarity. An invented item is held to it; the ruleset's own catalog items are not.
  • The item is kept on the game, so every later tag, the inventory screen, the Game Master's inventory block and the next session read the same item. A new proposal with the name of one nobody holds any more (a retold turn) replaces it.
  • Every change the Engine made is said in the answered tag and shown in the item's details.
  • items.propose: false forbids invention in a ruleset.
  • Capability API 1.51 for the new keys, with the install gate, the generated schema, the author guide and the plan.

Next slice, I3-2: native: false switches off untyped Game Master items and the fight-start item guess. It comes after this one, so the Game Master can always invent when native items are off.

Alternatives considered

Letting the Game Master add untyped items only. That keeps invented items out of wearing, carrying and every later slice (items on the sheet, weapons in fights), and leaves their power unchecked.

Additional context

Plan: rulesets-items-plan.md sections 4.1 (rarityCaps), 4.10 and 7 (slice I3). Builds on #6810 (wearing and carrying).

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6814 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? In a game with a ruleset, the Game Master can only hand out items that are in the ruleset's catalogs, or plain items with no ruleset data at all. A story often needs something new: a named blade, a strange charm. Today such an item has no category, rarity, stats or slots, so it cannot be worn, weighed or shown like the ruleset's own items. And nothing stops an invented item from being far stronger than its rarity allows. ## Proposed solution Slice I3-1 of the ruleset items arc (plan section 4.10): - The Game Master can propose an item of the ruleset in its inventory tag: `[inventory: action="add" item="Mourning Edge" like="outfitter/hand-axe" category="weapon" rarity="uncommon" stats="damage=1d8" slots="hands=1" summary="..."]`. `like=` starts from one of the ruleset's items, and anything else given replaces that part. - The Engine reads the proposal against the ruleset's items: its categories, rarities, tags, stats, slots and binding. What the ruleset does not have is dropped, and a rarity it does not have becomes its lowest. - A new `items.rarityCaps` sets the largest value of each number stat for each rarity. An invented item is held to it; the ruleset's own catalog items are not. - The item is kept on the game, so every later tag, the inventory screen, the Game Master's inventory block and the next session read the same item. A new proposal with the name of one nobody holds any more (a retold turn) replaces it. - Every change the Engine made is said in the answered tag and shown in the item's details. - `items.propose: false` forbids invention in a ruleset. - Capability API 1.51 for the new keys, with the install gate, the generated schema, the author guide and the plan. Next slice, I3-2: `native: false` switches off untyped Game Master items and the fight-start item guess. It comes after this one, so the Game Master can always invent when native items are off. ## Alternatives considered Letting the Game Master add untyped items only. That keeps invented items out of wearing, carrying and every later slice (items on the sheet, weapons in fights), and leaves their power unchecked. ## Additional context Plan: `rulesets-items-plan.md` sections 4.1 (`rarityCaps`), 4.10 and 7 (slice I3). Builds on #6810 (wearing and carrying). ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#3821
No description provided.