Skip to content

Commit

Permalink
add nullis support
Browse files Browse the repository at this point in the history
  • Loading branch information
bengardner committed Jan 28, 2024
1 parent 12bb7d0 commit 06f3366
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions data-updates.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
local constants = require'src.constants'



if mods["nullius"] then
local all_items = {}
all_items['network-loader'] = true
--all_items['network-sensor'] = true
--all_items['network-limit-sensor'] = true
for k, _ in pairs(constants.NETWORK_TANK_NAMES) do
all_items[k] = true
end
for k, _ in pairs(constants.NETWORK_CHEST_NAMES) do
all_items[k] = true
end

for k, _ in pairs(all_items) do
if data.raw.item[k] ~= nil then
data.raw.item[k].order = "nullius-" .. k
data.raw.recipe[k].order = "nullius-" .. k
else
print(string.format("*** did not find: %s", k))
end
end
end

0 comments on commit 06f3366

Please sign in to comment.