Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- data-final-fixes.lua 2021-12-11 19:28:40.000000000 -0600
- +++ data-final-fixes.lua-fixed 2021-12-29 20:38:32.902433116 -0600
- @@ -77,16 +77,18 @@
- if expensive then
- new_recipe.normal.ingredients[1] = { ore_name.."-enriched", ore_qty }
- new_recipe.expensive.ingredients[1] = { ore_name.."-enriched", ore_qty }
- + new_recipe.normal.enabled = true -- TODO: add it to the appropriate tech
- + new_recipe.expensive.enabled = true -- TODO: add it to the appropriate tech
- else
- new_recipe.ingredients[1] = { ore_name.."-enriched", ore_qty }
- + new_recipe.enabled = true -- TODO: add it to the appropriate tech
- end
- new_recipe.name = ore_name.."-enriched-smelting"
- - new_recipe.enabled = true -- TODO: add it to the appropriate tech
- new_recipe.subgroup = "hexi-ore-recipes-0"
- new_recipe.order = "z"
- new_recipe.allow_decomposition = false
- - base_energy = recipe.energy_required or 0.5
- + base_energy = recipe.energy_required or recipe.normal.energy_required or .5
- if expensive then
- data:extend({
- @@ -95,17 +97,20 @@
- type = "recipe",
- name = ore_name.."-enrichment-1",
- category = "hexi-enrichment",
- - enabled = true,
- - energy_required = base_energy * tier_ratios.t1.enrich.time,
- normal = {
- + enabled = true,
- + energy_required = base_energy * tier_ratios.t1.enrich.time,
- ingredients = {{ore_name, tier_ratios.t1.enrich.input}},
- - result = ore_name.."-enriched"
- + result = ore_name.."-enriched",
- + result_count = tier_ratios.t1.enrich.output
- },
- expensive = {
- + enabled = true,
- + energy_required = base_energy * tier_ratios.t1.enrich.time,
- ingredients = {{expensive[1] or expensive.name, tier_ratios.t1.enrich.input}},
- - result = ore_name.."-enriched"
- + result = ore_name.."-enriched",
- + result_count = tier_ratios.t1.enrich.output
- },
- - result_count = tier_ratios.t1.enrich.output,
- main_product = "",
- icons = {
- {
- @@ -124,17 +129,20 @@
- type = "recipe",
- name = ore_name.."-crushing",
- category = "hexi-crushing",
- - enabled = true,
- - energy_required = base_energy * tier_ratios.t2.crush.time,
- normal = {
- + enabled = true,
- + energy_required = base_energy * tier_ratios.t2.crush.time,
- ingredients = {{ore_name, tier_ratios.t2.crush.input}},
- - result = ore_name.."-crushed"
- + result = ore_name.."-crushed",
- + result_count = tier_ratios.t2.crush.output
- },
- expensive = {
- + enabled = true,
- + energy_required = base_energy * tier_ratios.t2.crush.time,
- ingredients = {{expensive[1] or expensive.name, tier_ratios.t2.crush.input}},
- - result = ore_name.."-crushed"
- + result = ore_name.."-crushed",
- + result_count = tier_ratios.t2.crush.output
- },
- - result_count = tier_ratios.t2.crush.output,
- main_product = "",
- icons = {
- {
- @@ -568,4 +576,4 @@
- end
- end
- if matched_recipe then hexi_inline_add_recipe(v, matched_recipe) end
- -end
- \ No newline at end of file
- +end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement