inv_ring.lua

Shipped with TRX as data/trx/ship/modules/inv_ring.lua.

-- Declares the inventory-ring items from the game's ring file.

local found = trx.path.resolve("common_config", "inv_ring.json5")
if found == nil then
  error("inv_ring.json5 is missing; the game directory is incomplete")
end

for _, spec in ipairs(trx.json.read_file(found)) do
  trx.inventory.declare_ring_item(spec)
end

Back to the shipped scripts