1
0
This repository has been archived on 2023-04-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
IndustrialDisplayPlates-Arc…/data-updates.lua
2020-04-08 10:14:31 +02:00

20 lines
976 B
Lua

------------------------------------------------------------------------------------------------------------------------------------------------------
local DID = require("globals")
------------------------------------------------------------------------------------------------------------------------------------------------------
for display,displaydata in pairs(DID.displays) do
if mods["IndustrialRevolution"] then
if displaydata.IR_unlock and data.raw.technology[displaydata.IR_unlock] then
table.insert(data.raw.technology[displaydata.IR_unlock].effects, {type = "unlock-recipe", recipe = display})
end
else
if displaydata.unlock and data.raw.technology[displaydata.unlock] then
table.insert(data.raw.technology[displaydata.unlock].effects, {type = "unlock-recipe", recipe = display})
end
end
end
------------------------------------------------------------------------------------------------------------------------------------------------------