Log inGet started
World

Market Square: Currencies, Wallets and Shops Kit

README.md

priceList (economyKit contract)

What a shop sells and buys back, and for how much. A shop points at one price list by id, so several shops can share prices and a game changes a price in one place.

FieldMeaning
idThe name shops use.
currencyThe currency prices are in unless an entry says otherwise.
sellRateWhat the shop pays back when a player sells, as a share of the price (0.5 = half).
entries[]One row per item: item (an inventoryKit item id), price, optional currency, sell (what the shop pays for one; -1 = price x sellRate, 0 = the shop will not buy it), qty (how many one purchase gives), stock (how many one player may buy, -1 = unlimited), requires (another entry's item that must be bought first, for upgrade trees), tier (row in an upgrade tree), nameKey (translation key for the item's name).