Defaults
Details
This config specifically defines default values for shops, they will only be used if it’s not defined in shop config and it’s crutial configuration. Or even if you don’t want to repeat yourself.
Configuration file
config/defaults.lua
return {
---@type ShopSettings
defaultSettings = {
useStock = false,
useCategories = true,
fluctuatePrices = false,
},
--[[
Default payment methods.
This will be used, if no payment methods are
provided while defining shops.
]] --
---@type { buy: table<string>, sell: table<string> }
defaultPaymentMethods = {
buy = { 'cash', 'bank' },
sell = { 'cash', 'bank' },
},
}Shop settings
useStock boolean If enabled, shop will use stock system.
useCategories boolean If enabled, shop will use categories system.
fluctuatePrices boolean Defines if prices should fluctuate prices on startup.