ZlovreD now mixed processing with slag working but they's no slag as by product - crystal chunks sorting now works as pure chunks sorting
Code: Select all
--if not aaiindustry then aaiindustry = {"aai-industry"} end
if mods["aai-industry"] then
require("updates.aai-updates")
end
-- Overriedes: molybdenum ore
if data.raw.item["molybdenum-ore"] and angelsmods.refining then
data.raw.resource["molybdenum-ore"]["autoplace"] = nil
data.raw["autoplace-control"]["molybdenum-ore"] = nil
angelsmods.functions.OV.patch_recipes({
--TIER 3
{
name = "angelsore2-crystal-processing",
ingredients = { {type = "item", name = "angels-ore2-crystal", amount= "+1"} },
results = { {type = "item", name = "molybdenum-ore", amount=1} }
},
{
name = "angelsore4-crystal-processing",
ingredients = { {type = "item", name = "angels-ore4-crystal", amount= "+1"} },
results = { {type = "item", name = "molybdenum-ore", amount=1} }
},
--TIER 4
{
name = "angelsore2-pure-processing",
ingredients = { {type = "item", name = "angels-ore2-pure", amount= "+1"} },
results = { {type = "item", name = "molybdenum-ore", amount=1} }
},
{
name = "angelsore4-pure-processing",
ingredients = { {type = "item", name = "angels-ore4-pure", amount= "+1"} },
results = { {type = "item", name = "molybdenum-ore", amount=2} }
},
{
name = "angelsore5-pure-processing",
ingredients = { {type = "item", name = "angels-ore5-pure", amount= "+1"} },
results = { {type = "item", name = "molybdenum-ore", amount=1} }
},
})
data:extend({
{
type = "recipe",
name = "slag-processing-mol",
category = "crystallizing",
subgroup = "slag-processing",
energy_required = 8,
enabled = "false",
ingredients =
{
{type="fluid", name="mineral-sludge", amount=50},
},
results=
{
{type = "item", name = "molybdenum-ore", amount_min = 1, amount_max = 2, probability = 0.36},
},
icon = "__PyCoalTBaA__/graphics/icons/slag-processing-mol.png",
order = "a-a [slag-processing-up]",
},
{
type = "recipe",
name = "angelsore-crystal-mix-mol-processing",
category = "ore-sorting",
subgroup = "ore-sorting-advanced",
energy_required = 1.5,
enabled = "false",
ingredients =
{
{type="item", name="angels-ore2-crystal", amount=1},
{type="item", name="angels-ore4-crystal", amount=1},
{type="item", name="angels-ore5-crystal", amount=1},
{type="item", name="catalysator-brown", amount=1},
},
results=
{
{type = "item", name = "molybdenum-ore", amount = 4},
},
icon = "__PyCoalTBaA__/graphics/icons/angels-ore-mix-mol-sorting.png",
order = "c-i-g[angelsore-crystal-mix-mol-processing]",
}
})
table.insert(
data.raw["technology"]["slag-processing-1"].effects,
{type = "unlock-recipe", recipe = "slag-processing-mol"}
)
table.insert(
data.raw["technology"]["advanced-ore-refining-3"].effects,
{type = "unlock-recipe", recipe = "angelsore-crystal-mix-mol-processing"}
)
-- Infinity ore patches
if angelsmods.ores and angelsmods.ores.enableinfiniteuraniumpower then -- TO DO: change to molybdenum ore settings
if not angelsmods.ores.enablersomode then
data:extend(
{
{
type = "autoplace-control",
name = "infinite-molybdenum-ore",
richness = true,
order = "b-e"
},
{
type = "noise-layer",
name = "infinite-molybdenum-ore"
},
{
type = "resource",
name = "infinite-molybdenum-ore",
icon = "__pyfusionenergy__/graphics/icons/ores/molybdenum.png",
flags = {"placeable-neutral"},
order="a-b-e",
infinite=true,
minimum=angelsmods.ores.yield,
normal=1500,
maximum=6000,
minable =
{
hardness = 1.5,
mining_particle = "stone-particle",
mining_time = 3,
results = {
{
type = "item",
name = "molybdenum-ore",
amount_min = 1,
amount_max = 1,
probability = angelsmods.ores.loweryield
}
},
},
collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
autoplace =
{
control = "infinite-molybdenum-ore",
sharpness = 1,
richness_multiplier = 1500,
richness_multiplier_distance_bonus = 30,
richness_base = 500,
coverage = 0.02,
peaks = {
{
noise_layer = "infinite-molybdenum-ore",
noise_octaves_difference = -1.5,
noise_persistence = 0.3,
starting_area_weight_optimal = 1,
starting_area_weight_range = 0,
starting_area_weight_max_range = 2,
},
{
noise_layer = "infinite-molybdenum-ore",
noise_octaves_difference = -2,
noise_persistence = 0.3,
starting_area_weight_optimal = 0,
starting_area_weight_range = 0,
starting_area_weight_max_range = 2,
},
{
influence = 0.15,
starting_area_weight_optimal = 0,
starting_area_weight_range = 0,
starting_area_weight_max_range = 2,
}
}
},
stage_counts = {1},
stages =
{
sheet =
{
filename = "__pyfusionenergy__/graphics/entity/ores/molybdenum-ore.png",
priority = "extra-high",
width = 64,
height = 64,
frame_count = 8,
variation_count = 8,
hr_version = {
filename = "__pyfusionenergy__/graphics/entity/ores/hr-molybdenum-ore.png",
priority = "extra-high",
width = 128,
height = 128,
frame_count = 8,
variation_count = 8,
scale = 0.5
}
}
},
map_color = {r = 0.294, g = 0.45, b = 0.643},
},
})
else
data:extend(
{
{
type = "resource",
name = "infinite-molybdenum-ore",
icon = "__pyfusionenergy__/graphics/icons/ores/molybdenum.png",
flags = {"placeable-neutral"},
order="a-b-e",
infinite=true,
minimum=angelsmods.ores.yield,
normal=1500,
maximum=6000,
minable =
{
hardness = 1.5,
mining_particle = "stone-particle",
mining_time = 3,
results = {
{
type = "item",
name = "molybdenum-ore",
amount_min = 1,
amount_max = 1,
probability = angelsmods.ores.loweryield
}
},
},
collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
stage_counts = {1},
stages =
{
sheet =
{
filename = "__pyfusionenergy__/graphics/entity/ores/molybdenum-ore.png",
priority = "extra-high",
width = 64,
height = 64,
frame_count = 8,
variation_count = 8,
hr_version = {
filename = "__pyfusionenergy__/graphics/entity/ores/hr-molybdenum-ore.png",
priority = "extra-high",
width = 128,
height = 128,
frame_count = 8,
variation_count = 8,
scale = 0.5
}
}
},
map_color = {r = 0.294, g = 0.45, b = 0.643},
},
})
end
end
end
angelsmods.functions.OV.execute()
-- hide recipes with "angels-void" or "slag" as main product
for name, recipe in pairs(data.raw.recipe) do
if recipe.main_product == "angels-void" or recipe.main_product == "slag" then
log("hide " .. name)
data.raw.recipe[name].hidden = true
end
end