[GH-ISSUE #6934] Game Mode rulesets: market days, rare stock, limited items and selling back #3883

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

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

Originally assigned to: @kolacheee on GitHub.

What happens now

Since #6917 (Capability API 1.65) a Game Mode ruleset can have a market: price levels, place sizes, what each place sells and kinds of seller, with the Game Master's buy. But a place's shelves never change and never run out (every place of a size sells the same things, as many as anyone wants), nothing rare turns up, and the party cannot sell anything back.

What should happen

Slice I9-2 of the ruleset items plan (section 4.11, Markets), at Capability API 1.66:

  • A market day. A stay at a place lasts until the Game Master names another place; the Game Master starts a new day at the same place by saying the place again with day="new" (the user's ruling, 2026-10-01). Everything below is per day, worked out from the messages the player sees, so swipes, regenerations and branches stay right with nothing stored.
  • Rare stock. A seller may name one of the ruleset's loot tables as its stock: rolled once a day, seeded by the day, so the same day always shows the same shelf. What it rolls is for sale from that seller only, as many as rolled, whatever the place would otherwise sell.
  • Limited. A sold rule or an item's own sold may say a place keeps only a few on hand (a number or dice, rolled per day); once they are bought, there are no more that day.
  • Selling back. items.market.buyBack is the share of the default price a seller pays; a place size may carry a purse, the most its sellers pay out in a day. The Game Master's [inventory: action="sell" item count seller who] takes the item out of the bag and pays the coins in, or refuses (nobody here buys it, the purse is spent, a bound cursed item, an item with no price).
  • Said. The MARKET block adds what each seller has in stock today and how many limited items are left, and what the sellers here pay and how much of today's purse is left; the instructions teach sell and day="new".
  • The docs, lanes, an e2e and the Gravewatch example say it.

Plan: slice I9-2 in the ruleset items plan. Follows #6917 (stacked on #6921).

Originally created by @kolacheee on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6934 Originally assigned to: @kolacheee on GitHub. ## What happens now Since #6917 (Capability API 1.65) a Game Mode ruleset can have a market: price levels, place sizes, what each place sells and kinds of seller, with the Game Master's `buy`. But a place's shelves never change and never run out (every place of a size sells the same things, as many as anyone wants), nothing rare turns up, and the party cannot sell anything back. ## What should happen Slice I9-2 of the ruleset items plan (section 4.11, Markets), at Capability API 1.66: - **A market day.** A stay at a place lasts until the Game Master names another place; the Game Master starts a new day at the same place by saying the place again with `day="new"` (the user's ruling, 2026-10-01). Everything below is per day, worked out from the messages the player sees, so swipes, regenerations and branches stay right with nothing stored. - **Rare stock.** A seller may name one of the ruleset's loot tables as its stock: rolled once a day, seeded by the day, so the same day always shows the same shelf. What it rolls is for sale from that seller only, as many as rolled, whatever the place would otherwise sell. - **Limited.** A `sold` rule or an item's own `sold` may say a place keeps only a few on hand (a number or dice, rolled per day); once they are bought, there are no more that day. - **Selling back.** `items.market.buyBack` is the share of the default price a seller pays; a place size may carry a `purse`, the most its sellers pay out in a day. The Game Master's `[inventory: action="sell" item count seller who]` takes the item out of the bag and pays the coins in, or refuses (nobody here buys it, the purse is spent, a bound cursed item, an item with no price). - **Said.** The MARKET block adds what each seller has in stock today and how many limited items are left, and what the sellers here pay and how much of today's purse is left; the instructions teach `sell` and `day="new"`. - The docs, lanes, an e2e and the Gravewatch example say it. Plan: slice I9-2 in the ruleset items plan. Follows #6917 (stacked on #6921).
Author
Owner

@kolacheee commented on GitHub (Oct 2, 2026):

Re-opening after version bump

<!-- gh-comment-id:5962705809 --> @kolacheee commented on GitHub (Oct 2, 2026): Re-opening after version bump
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#3883
No description provided.