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

useStockboolean
If enabled, shop will use stock system.
useCategoriesboolean
If enabled, shop will use categories system.
fluctuatePricesboolean
Defines if prices should fluctuate prices on startup.