forked from Wyrrrd/IndustrialDisplayPlates-Archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata-updates.lua
24 lines (20 loc) · 1.09 KB
/
data-updates.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
------------------------------------------------------------------------------------------------------------------------------------------------------
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
if mods ["Dectorio"] then
if data.raw["item-group"]["dectorio"] then
data.raw["item-subgroup"]["display-plates"].group = "dectorio"
end
end
------------------------------------------------------------------------------------------------------------------------------------------------------