[GH-ISSUE #6765] [Feature]: Rulesets can describe items: categories, rarities, stats, slots, currencies and item catalogs #3790

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

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

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

A ruleset cannot describe items. Armor, weapons, potions, scrolls, gear, ammunition and money can only be typed as rows of a sheet list. Those rows are tied to one character's sheet, and Game Mode's inventory knows nothing about them. So a 5e game has no Padded Armor with an Armor Class, a weight and a rarity, and a V20 game has no pistol with its range, rate of fire and clip. The 5e package ships no armor, gear, potions or magic items at all, and types Armor Class in as a number.

This is the first slice of the ruleset items plan. It is the data an item carries and the vocabulary a ruleset declares for its items. The inventory, the sheet and the fight read it in the slices after it.

Proposed solution

Capability API 1.49, for data files only:

  • An items block in the ruleset declares the vocabulary every item uses:
    • categories (armor, weapon, potion) and rarities (common to artifact, or the system's own tiers);
    • tags (properties), and stats: the numbers and words an item carries, declared like list columns (weight, base defense, concealability, range);
    • slots with counts (body armor 1, hands 2, rings 2), and a binding limit (attunement 3, investiture 10);
    • carry: which stat is weight, and what a character carries before being encumbered and at most, read off their sheet;
    • currencies: families of units that change into each other by value (copper to platinum). Two families never change into each other;
    • native and freeform: whether Game Mode's own untyped items are turned off in this ruleset's games, and what a player's typed-in item becomes.
  • A third catalog kind, holds: "items", beside rows and creatures. Each entry carries an item:
    • its category, rarity and tags, and its stat values;
    • the slots it takes, how many one stack holds, and its cost in a currency unit;
    • whether it has to be bound, and any restriction or curse.
  • Everything checked at import, the published JSON schema regenerated, the install gate, the author guide, and example items in Gravewatch and Ember Roads.

None of it names one game's words.

Alternatives considered

  • Items as sheet list rows, as today. Rows belong to one character's sheet and cannot live in Game Mode's inventory, move between characters or be looted.
  • Every item key at once, including worn effects, attacks, use effects and charges. Those arrive with the slices that make them do something, so a ruleset never declares a key the Engine does not yet act on.

Additional context

The plan was researched against SRD 5.1, V20 and the 16 systems in https://github.com/Kenhito/Marinara-RPG-Extension. The following slices build on this one:

  • per-character bags and the shared inventory view;
  • items the Game Master invents, held to the ruleset's rarity caps;
  • items on the sheet and in fights;
  • using items, charges, loot and money.

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/6765 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? A ruleset cannot describe items. Armor, weapons, potions, scrolls, gear, ammunition and money can only be typed as rows of a sheet list. Those rows are tied to one character's sheet, and Game Mode's inventory knows nothing about them. So a 5e game has no Padded Armor with an Armor Class, a weight and a rarity, and a V20 game has no pistol with its range, rate of fire and clip. The 5e package ships no armor, gear, potions or magic items at all, and types Armor Class in as a number. This is the first slice of the ruleset items plan. It is the data an item carries and the vocabulary a ruleset declares for its items. The inventory, the sheet and the fight read it in the slices after it. ## Proposed solution Capability API 1.49, for data files only: - **An `items` block** in the ruleset declares the vocabulary every item uses: - `categories` (armor, weapon, potion) and `rarities` (common to artifact, or the system's own tiers); - `tags` (properties), and `stats`: the numbers and words an item carries, declared like list columns (weight, base defense, concealability, range); - `slots` with counts (body armor 1, hands 2, rings 2), and a `binding` limit (attunement 3, investiture 10); - `carry`: which stat is weight, and what a character carries before being encumbered and at most, read off their sheet; - `currencies`: families of units that change into each other by value (copper to platinum). Two families never change into each other; - `native` and `freeform`: whether Game Mode's own untyped items are turned off in this ruleset's games, and what a player's typed-in item becomes. - **A third catalog kind, `holds: "items"`**, beside rows and creatures. Each entry carries an `item`: - its category, rarity and tags, and its stat values; - the slots it takes, how many one stack holds, and its cost in a currency unit; - whether it has to be bound, and any restriction or curse. - **Everything checked at import**, the published JSON schema regenerated, the install gate, the author guide, and example items in Gravewatch and Ember Roads. None of it names one game's words. ## Alternatives considered - **Items as sheet list rows**, as today. Rows belong to one character's sheet and cannot live in Game Mode's inventory, move between characters or be looted. - **Every item key at once**, including worn effects, attacks, use effects and charges. Those arrive with the slices that make them do something, so a ruleset never declares a key the Engine does not yet act on. ## Additional context The plan was researched against SRD 5.1, V20 and the 16 systems in https://github.com/Kenhito/Marinara-RPG-Extension. The following slices build on this one: - per-character bags and the shared inventory view; - items the Game Master invents, held to the ruleset's rarity caps; - items on the sheet and in fights; - using items, charges, loot and money. ## 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.
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#3790
No description provided.