forked from brevven/titanium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtitanium-recipe-final-modmash.lua
More file actions
51 lines (46 loc) · 2.12 KB
/
titanium-recipe-final-modmash.lua
File metadata and controls
51 lines (46 loc) · 2.12 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
local util = require("__bztitanium__.data-util");
if mods["modmashsplinter"] then
if mods["modmashsplinterresources"] then
util.remove_raw("recipe", "titanium-extraction-process")
data.raw.recipe["alien-enrichment-process-to-titanium-ore"].icons = {
{ icon = "__modmashsplinterresources__/graphics/icons/alien-ooze.png", icon_size = 64},
{ icon = "__bztitanium__/graphics/icons/titanium-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {8, 8}},
}
if mods["modmashsplinterenrichment"] then
data.raw.recipe["ore-enrichment-process-titanium-ore"].icons = {
{ icon = "__base__/graphics/icons/fluid/steam.png", icon_size = 64},
{ icon = "__bztitanium__/graphics/icons/titanium-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {8, 8}},
}
end
end
if mods["modmashsplinterrefinement"] then
local recipe = data.raw.recipe["titanium-ore-refined_to_plate"]
if recipe and recipe.ingredients then
for i, ingredient in ipairs(recipe.ingredients) do
if ingredient[1] and ingredient[1] == "titanium-ore-refined" then
ingredient[2] = 5
end
end
end
if recipe and recipe.normal and recipe.normal.ingredients then
for i, ingredient in ipairs(recipe.normal.ingredients) do
if ingredient[1] and ingredient[1] == "titanium-ore-refined" then
ingredient[2] = 5
end
end
end
if recipe and recipe.expensive and recipe.expensive.ingredients then
for i, ingredient in ipairs(recipe.expensive.ingredients) do
if ingredient[1] and ingredient[1] == "titanium-ore-refined" then
ingredient[2] =10
end
end
end
end
if mods["modmashsplinterlogistics"] then
util.replace_ingredient("regenerative-transport-belt", "steel-plate", util.me.titanium_plate)
util.replace_ingredient("regenerative-splitter", "steel-plate", util.me.titanium_plate)
util.replace_ingredient("regenerative-underground-belt-structure", "steel-plate", util.me.titanium_plate)
util.replace_ingredient("regenerative-mini-loader", "steel-plate", util.me.titanium_plate)
end
end