[GH-ISSUE #6917] Game Mode rulesets: markets (price levels, place sizes, sellers, services and a buy action) #3877

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

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

Originally assigned to: @kolacheee on GitHub.

What happens now

Since #6901 (Capability API 1.64) a Game Mode ruleset's items can carry a cost in the ruleset's own coins, and the Game Master buys with a payment and then an add: every shop in the world sells every item, at its list price, and nothing but the Game Master's judgement decides what a place has.

What should happen

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

  • Price levels. items.market.prices: a few named levels, each a multiplier on an item's cost (cheap, fair and dear at three quarters, one and one and a half, say), one of them the default. The Game Master names a level when the party buys; the Engine works out the amount in the item's own coins, rounded to its family's smallest coin. Haggling or a seller's mood moves the level, never the number.
  • Place sizes. items.market.places: an ordered ladder in the ruleset's own words (a hamlet, a town, a city). A rule by category, rarity or tag, or an item itself, names the smallest place that sells it; an item nothing names is sold anywhere.
  • Sellers. items.market.sellers: kinds of seller (a smith, an apothecary, a chapel), each with what it sells (filters read the way a loot line's filter is), optionally the smallest place that has one, and optionally who it sells to (a value on the buyer's sheet, checked the way an item's gate.unless is).
  • Services. An item marked service (lodging, passage, a blessing) is bought like any item and never goes in the bag: buying it only pays.
  • The place the party is in. The Game Master says, with a tag, which place the scene is in and its size; the Engine remembers it until the Game Master changes it. (The worldgen arc will later fill this from a generated world; the Game Master's word stays an override.)
  • Buying. A new inventory action, buy: the item, how many, the level, the seller, and who pays. The Engine checks that the place and the seller sell it, works out the price, pays it from the buyer's purse and adds the item (or not, for a service), and answers with what was paid, or refuses (not sold here, no such seller, not sold to this buyer, cannot afford, no such level).
  • Said. In a scene at a place, the Game Master's block names the place and its size, the sellers there and what they sell at the default level.
  • The docs (the author guide's Markets section, the inventory guide), the lanes, an e2e and the Gravewatch example say it.

Left for I9-2: stock that changes (a seller's rare stock rolled from a loot table per visit, a limited mark for items a place keeps only a few of) and selling back up to a purse per day.

Plan: slice I9-1 in the ruleset items plan. Follows #6901.

Originally created by @kolacheee on GitHub (Sep 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6917 Originally assigned to: @kolacheee on GitHub. ## What happens now Since #6901 (Capability API 1.64) a Game Mode ruleset's items can carry a `cost` in the ruleset's own coins, and the Game Master buys with a payment and then an add: every shop in the world sells every item, at its list price, and nothing but the Game Master's judgement decides what a place has. ## What should happen Slice I9-1 of the ruleset items plan (section 4.11, Markets), at Capability API 1.65: - **Price levels.** `items.market.prices`: a few named levels, each a multiplier on an item's `cost` (cheap, fair and dear at three quarters, one and one and a half, say), one of them the default. The Game Master names a level when the party buys; the Engine works out the amount in the item's own coins, rounded to its family's smallest coin. Haggling or a seller's mood moves the level, never the number. - **Place sizes.** `items.market.places`: an ordered ladder in the ruleset's own words (a hamlet, a town, a city). A rule by category, rarity or tag, or an item itself, names the smallest place that sells it; an item nothing names is sold anywhere. - **Sellers.** `items.market.sellers`: kinds of seller (a smith, an apothecary, a chapel), each with what it sells (filters read the way a loot line's filter is), optionally the smallest place that has one, and optionally who it sells to (a value on the buyer's sheet, checked the way an item's `gate.unless` is). - **Services.** An item marked `service` (lodging, passage, a blessing) is bought like any item and never goes in the bag: buying it only pays. - **The place the party is in.** The Game Master says, with a tag, which place the scene is in and its size; the Engine remembers it until the Game Master changes it. (The worldgen arc will later fill this from a generated world; the Game Master's word stays an override.) - **Buying.** A new inventory action, `buy`: the item, how many, the level, the seller, and who pays. The Engine checks that the place and the seller sell it, works out the price, pays it from the buyer's purse and adds the item (or not, for a service), and answers with what was paid, or refuses (not sold here, no such seller, not sold to this buyer, cannot afford, no such level). - **Said.** In a scene at a place, the Game Master's block names the place and its size, the sellers there and what they sell at the default level. - The docs (the author guide's Markets section, the inventory guide), the lanes, an e2e and the Gravewatch example say it. Left for I9-2: stock that changes (a seller's rare stock rolled from a loot table per visit, a `limited` mark for items a place keeps only a few of) and selling back up to a purse per day. Plan: slice I9-1 in the ruleset items plan. Follows #6901.
bsakaguchi 2026-10-21 06:08:24 +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#3877
No description provided.