-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdata-final-fixes.lua
More file actions
51 lines (41 loc) · 1.62 KB
/
data-final-fixes.lua
File metadata and controls
51 lines (41 loc) · 1.62 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
require("tin-recipe-final-stacking")
-- require("tin-recipe-final-5d")
require("tin-recipe-final-rrr")
local util = require("data-util");
util.add_product("jellynut-processing", util.item("jellyskin", 1, .25)) -- in case of clobbering
util.replace_some_ingredient("se-glass-vulcanite", "sand", 1, "tin-plate", 1)
util.add_product("se-glass-vulcanite", {type="item", name="tin-plate", amount=1, catalyst_amount=1, probability=0.8})
util.set_main_product("se-glass-vulcanite", "glass")
-- core mining balancing
util.add_to_product("se-core-fragment-omni", "tin-ore", -4)
-- Electronic circuits need final fixes
function modify_ec(recipe_name, to_replace)
if not to_replace then
to_replace = "copper-cable"
end
local amt_ec = util.get_amount(recipe_name, "electronic-circuit")
if amt_ec == 1 then
util.multiply_recipe(recipe_name, 2)
util.set_recipe_time(recipe_name, 0.5) -- faster but more complex
end
util.replace_some_ingredient(recipe_name, to_replace, 1, "solder", 1)
end
modify_ec("electronic-circuit")
modify_ec("electronic-circuit-stone")
modify_ec("electronic-circuit-wood")
modify_ec("electronic-circuit-aluminum", "aluminum-cable")
if mods.RenaiTransportation then
for i, recipe in pairs(data.raw.recipe) do
if recipe.result and data.raw.item[recipe.result] and
data.raw.item[recipe.result].subgroup == "throwers" and
recipe.result ~= "RTThrower-burner-inserter"
then
util.add_ingredient(recipe.name, "bronze-plate", 1)
end
end
end
util.size_recycler_output()
util.redo_recycling()
require("alloy-separation") -- should be after final redo_recycling
-- Must be last
util.create_list()