Skip to main content

Module market

Module market 

Source
Expand description

Markets: the market building, its vendors’ work, and the market’s locations. See docs/MARKETS.md.

Vendors keep the market stocked by category, each up to its share of the market’s room. A category stocked beyond twice its share is carried away first. Otherwise a vendor picks the town storage most worth the trip (the goods most wanted, by distance), and brings what it can carry of the categories still under twice their share.

Original: MarketComponent (a ResourceProduceComponent; its work from slot FUN_14004f3a0), MarketWork, MarketLocationComponent; FUN_14004fa70.

Structs§

MarketWork
MarketWork: each vendor’s plan (material, count) on its way to the market; empty for a vendor carrying goods away.