bm_exchange

t1ger_chopshop/shared/bm_exchange

Types and settings for the blackmarket exchange option

---@class ExchangeMaterial
---@field item string
---@field amount number

---@class ExchangeGive
---@field item string
---@field icon string

---@class BlackmarketExchange
---@field give ExchangeGive
---@field receive ExchangeMaterial[]

---@type BlackmarketExchange[]
return {
    {
        give = {item = Config.Items["door"].item, icon = Config.Items["door"].icon}, -- item (name and icon) to give
        receive = { -- items (materials) to receive
            {item = "scrap_metal", amount = 3}, -- item name and amount
            {item = "steel", amount = 5}, -- item name and amount
            {item = "plastic", amount = 2}, -- item name and amount
            {item = "rubber", amount = 2} -- item name and amount
        }
    },
    {
        give = {item = Config.Items["hood"].item, icon = Config.Items["hood"].icon},
        receive = {
            {item = "scrap_metal", amount = 3},
            {item = "steel", amount = 6},
            {item = "aluminium", amount = 3},
            {item = "rubber", amount = 1}
        }
    },
    {
        give = {item = Config.Items["trunk"].item, icon = Config.Items["trunk"].icon},
        receive = {
            {item = "scrap_metal", amount = 4},
            {item = "steel", amount = 5},
            {item = "aluminium", amount = 2},
            {item = "plastic", amount = 2},
            {item = "rubber", amount = 1}
        }
    },
    {
        give = {item = Config.Items["wheel"].item, icon = Config.Items["wheel"].icon},
        receive = {
            {item = "scrap_metal", amount = 2},
            {item = "steel", amount = 4},
            {item = "rubber", amount = 5},
            {item = "carbon_fiber", amount = 2},
            {item = "brass", amount = 1}
        }
    },
}

Last updated