-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdata-updates.lua
27 lines (24 loc) · 1.27 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
25
26
27
-- Ultimate Belts Space Age adjusts logistics-3 tech cost in data-updates.
-- Adjust to unlock at same science tier
if mods["UltimateBeltsSpaceAge"] and not mods["5dim_transport"] then
data.raw["technology"]["express-mdrn-loader"].unit = data.raw["technology"]["logistics-3"].unit
end
-- Schall Belt Configuration makes belt speed changes in data_updates
if mods["SchallBeltConfiguration"] then
local tiers = {"","fast-","express-"}
if mods["space-age"] then
tiers[#tiers+1] = "turbo-"
end
for _, tier in pairs(tiers) do
data.raw["loader-1x1"][tier .. "mdrn-loader"].speed = data.raw["transport-belt"][tier .. "transport-belt"].speed
data.raw["loader-1x1"][tier .. "mdrn-loader-split"].speed = data.raw["transport-belt"][tier .. "transport-belt"].speed
end
end
-- PyMods doesn't create the belt-stacking technology until data-updates. Need to apply tech requirements
-- to the stack tier if enabled.
if mods["pycoalprocessing"] and settings.startup["mdrn-enable-stacking"].value == "stack-tier" then
local t = data.raw["technology"]["stack-mdrn-loader"]
t.prerequisites[1] = "py-transport-belt-capacity-1"
t.unit = data.raw["technology"]["py-transport-belt-capacity-1"].unit
data.raw["recipe"]["stack-mdrn-loader"].ingredients[2].name = "py-stack-inserter"
end