REC_ItemManager
Shop prices
Welcome to REC_ItemManager documentation.
- Added
- Updated
What this gives you: your shops sell at the prices you set here, without you touching the inventory resource at all.
When the server starts, shop prices are rewritten from this resource. Your inventory resource's own files are never edited. shopSync.enabled is on the Settings page, and because the rewrite happens at boot, switching it back on needs a restart — the page says so.
Only the currency list stays in the config file, since it decides what counts as a store price at all rather than being a knob you turn:
config.shopSync = {
---@type table<string, boolean>
currencies = {
["money"] = true,
-- ["black_money"] = true,
},
}
A few things are deliberately left alone:
- Items this resource does not know about keep their original price, so nothing accidentally becomes free
- Slots paid for in a currency you have not listed in
currenciesstay as they are — a black money price is a street price, not a shop price - Job-locked shops keep their configured prices, and say so in the console when the server starts
Shop prices are set once at startup, so they never change under a player mid-session. On a test server (
config.debugMode on) edits reach the shops within a second instead, which makes trying things out much quicker.