mirror of
https://asciireactor.com/factorio/adamo-chemical.git
synced 2024-11-23 15:15:06 +00:00
Add deadlock crating.
This commit is contained in:
parent
7600d54c16
commit
6902e714dd
@ -597,3 +597,12 @@ if data.raw["recipe-category"]["screening"] then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if deadlock_crating then
|
||||||
|
deadlock_crating.add_crate(calcite_item.name,"deadlock-crating-1")
|
||||||
|
deadlock_crating.add_crate(clinker_item.name,"deadlock-crating-1")
|
||||||
|
deadlock_crating.add_crate(gypsum_item.name,"deadlock-crating-1")
|
||||||
|
deadlock_crating.add_crate(fluorite_item.name,"deadlock-crating-1")
|
||||||
|
deadlock_crating.add_crate(cement_item.name,"deadlock-crating-1")
|
||||||
|
deadlock_crating.add_crate(quartz_item.name,"deadlock-crating-1")
|
||||||
|
end
|
@ -95,5 +95,5 @@ if data.raw["assembling-machine"][kiln_name] then
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
adamo.tech.add.recipe("advanced-material-processing-2","centrifuge")
|
adamo.recipe.set.tech("advanced-material-processing-2","centrifuge")
|
||||||
adamo.tech.add.prereq("uranium-processing","advanced-material-processing-2")
|
adamo.tech.add.prereq("uranium-processing","adamo-chemical-fluorine-processing")
|
||||||
|
257
data.lua
257
data.lua
@ -126,7 +126,7 @@ local fluorine_processing_tech = {
|
|||||||
recipe = "adamo-chemical-hydrofluoric-acid"
|
recipe = "adamo-chemical-hydrofluoric-acid"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
prerequisites = {"chemical-science-pack"},
|
prerequisites = {"advanced-material-processing-2"},
|
||||||
unit =
|
unit =
|
||||||
{
|
{
|
||||||
count = 150,
|
count = 150,
|
||||||
@ -143,9 +143,8 @@ data:extend({
|
|||||||
fluorine_processing_tech,
|
fluorine_processing_tech,
|
||||||
})
|
})
|
||||||
|
|
||||||
adamo.tech.add.prereq("advanced-material-processing-2","adamo-chemical-fluorine-processing")
|
|
||||||
|
|
||||||
local calcite_item = {
|
calcite_item = {
|
||||||
type = "item",
|
type = "item",
|
||||||
name = "adamo-chemical-calcite",
|
name = "adamo-chemical-calcite",
|
||||||
icon = "__adamo-chemical__/graphics/icons/calcite.png",
|
icon = "__adamo-chemical__/graphics/icons/calcite.png",
|
||||||
@ -154,7 +153,7 @@ local calcite_item = {
|
|||||||
order = "g1[adamo-chemical-calcite]",
|
order = "g1[adamo-chemical-calcite]",
|
||||||
stack_size = 50
|
stack_size = 50
|
||||||
}
|
}
|
||||||
local clinker_item = {
|
clinker_item = {
|
||||||
type = "item",
|
type = "item",
|
||||||
name = "adamo-chemical-clinker",
|
name = "adamo-chemical-clinker",
|
||||||
icon = "__adamo-chemical__/graphics/icons/clinker.png",
|
icon = "__adamo-chemical__/graphics/icons/clinker.png",
|
||||||
@ -163,7 +162,7 @@ local clinker_item = {
|
|||||||
order = "g1[adamo-chemical-clinker]",
|
order = "g1[adamo-chemical-clinker]",
|
||||||
stack_size = 50
|
stack_size = 50
|
||||||
}
|
}
|
||||||
local gypsum_item = {
|
gypsum_item = {
|
||||||
type = "item",
|
type = "item",
|
||||||
name = "adamo-chemical-gypsum",
|
name = "adamo-chemical-gypsum",
|
||||||
icon = "__adamo-chemical__/graphics/icons/gypsum.png",
|
icon = "__adamo-chemical__/graphics/icons/gypsum.png",
|
||||||
@ -172,7 +171,7 @@ local gypsum_item = {
|
|||||||
order = "g1[adamo-chemical-gypsum]",
|
order = "g1[adamo-chemical-gypsum]",
|
||||||
stack_size = 50
|
stack_size = 50
|
||||||
}
|
}
|
||||||
local fluorite_item = {
|
fluorite_item = {
|
||||||
type = "item",
|
type = "item",
|
||||||
name = "adamo-chemical-fluorite",
|
name = "adamo-chemical-fluorite",
|
||||||
icon = "__adamo-chemical__/graphics/icons/fluorite.png",
|
icon = "__adamo-chemical__/graphics/icons/fluorite.png",
|
||||||
@ -181,7 +180,7 @@ local fluorite_item = {
|
|||||||
order = "h1[adamo-chemical-fluorite]",
|
order = "h1[adamo-chemical-fluorite]",
|
||||||
stack_size = 50
|
stack_size = 50
|
||||||
}
|
}
|
||||||
local cement_item = {
|
cement_item = {
|
||||||
type = "item",
|
type = "item",
|
||||||
name = "adamo-chemical-cement",
|
name = "adamo-chemical-cement",
|
||||||
icon = "__adamo-chemical__/graphics/icons/cement.png",
|
icon = "__adamo-chemical__/graphics/icons/cement.png",
|
||||||
@ -197,27 +196,19 @@ data:extend({
|
|||||||
fluorite_item,
|
fluorite_item,
|
||||||
cement_item
|
cement_item
|
||||||
})
|
})
|
||||||
local found_sisiquartz = false
|
quartz_item = data.raw.item["SiSi-quartz"]
|
||||||
if data.raw.item["SiSi-quartz"] then
|
local quartz_recipe = data.raw.recipe["SiSi-quartz"]
|
||||||
data.raw.item["SiSi-quartz"].order = "g[adamo-chemical-quartz]"
|
if quartz_item then
|
||||||
data.raw.item["SiSi-quartz"].subgroup = "raw-material"
|
quartz_item.order = "g[adamo-chemical-quartz]"
|
||||||
--data.raw.item["SiSi-quartz"]
|
quartz_item.subgroup = "raw-material"
|
||||||
--.icon = "__adamo-chemical__/graphics/icons/quartz.png"
|
if quartz_recipe then
|
||||||
--data.raw.item["SiSi-quartz"]
|
quartz_recipe.normal.hidden = true
|
||||||
--.icon_size = 64
|
quartz_recipe.expensive.hidden = true
|
||||||
found_sisiquartz = true
|
quartz_recipe.icon = nil
|
||||||
if data.raw.recipe["SiSi-quartz"] then
|
quartz_recipe.icon_size = nil
|
||||||
data.raw.recipe["SiSi-quartz"]
|
|
||||||
.normal.hidden = true
|
|
||||||
data.raw.recipe["SiSi-quartz"]
|
|
||||||
.expensive.hidden = true
|
|
||||||
data.raw.recipe["SiSi-quartz"]
|
|
||||||
.icon = nil
|
|
||||||
data.raw.recipe["SiSi-quartz"]
|
|
||||||
.icon_size = nil
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local quartz_item = {
|
quartz_item = {
|
||||||
type = "item",
|
type = "item",
|
||||||
name = "adamo-chemical-quartz",
|
name = "adamo-chemical-quartz",
|
||||||
icon = "__adamo-chemical__/graphics/icons/quartz.png",
|
icon = "__adamo-chemical__/graphics/icons/quartz.png",
|
||||||
@ -514,6 +505,37 @@ local basic_froth_flotation_recipe = {
|
|||||||
name = "water",
|
name = "water",
|
||||||
amount = water_input_count
|
amount = water_input_count
|
||||||
}},
|
}},
|
||||||
|
results = {{
|
||||||
|
type = "item",
|
||||||
|
name = quartz_item.name,
|
||||||
|
probability = adamo.geo.abundance.quartz,
|
||||||
|
amount = mineral_output_count*recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = calcite_item.name,
|
||||||
|
probability = adamo.geo.abundance.calcite,
|
||||||
|
amount = mineral_output_count*recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = gypsum_item.name,
|
||||||
|
probability = adamo.geo.abundance.gypsum,
|
||||||
|
amount = mineral_output_count*recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = "iron-ore",
|
||||||
|
probability = adamo.geo.abundance.iron,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = "copper-ore",
|
||||||
|
probability = adamo.geo.abundance.copper,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = "coal",
|
||||||
|
probability = adamo.geo.abundance.coal,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
}},
|
||||||
crafting_machine_tint = {
|
crafting_machine_tint = {
|
||||||
primary = adamo.colors.softgreen,
|
primary = adamo.colors.softgreen,
|
||||||
secondary = data.raw.fluid.water.base_color,
|
secondary = data.raw.fluid.water.base_color,
|
||||||
@ -543,6 +565,47 @@ local advanced_froth_flotation_recipe = {
|
|||||||
name = "water",
|
name = "water",
|
||||||
amount = water_input_count
|
amount = water_input_count
|
||||||
}},
|
}},
|
||||||
|
results = {{
|
||||||
|
type = "item",
|
||||||
|
name = quartz_item.name,
|
||||||
|
probability = adamo.geo.abundance.quartz,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = fluorite_item.name,
|
||||||
|
probability = adamo.geo.abundance.fluorite,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = calcite_item.name,
|
||||||
|
probability = adamo.geo.abundance.calcite,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = gypsum_item.name,
|
||||||
|
probability = adamo.geo.abundance.gypsum,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = "sulfur",
|
||||||
|
probability = adamo.geo.abundance.sulfur,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = "iron-ore",
|
||||||
|
probability = adamo.geo.abundance.iron,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = "copper-ore",
|
||||||
|
probability = adamo.geo.abundance.copper,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
},{
|
||||||
|
type = "item",
|
||||||
|
name = "coal",
|
||||||
|
probability = adamo.geo.abundance.coal,
|
||||||
|
amount = mineral_output_count*adv_recover_ratio
|
||||||
|
}},
|
||||||
crafting_machine_tint = {
|
crafting_machine_tint = {
|
||||||
primary = adamo.colors.softgreen,
|
primary = adamo.colors.softgreen,
|
||||||
secondary = data.raw.fluid.water.base_color,
|
secondary = data.raw.fluid.water.base_color,
|
||||||
@ -550,148 +613,6 @@ local advanced_froth_flotation_recipe = {
|
|||||||
quaternary = adamo.colors.highbrown,
|
quaternary = adamo.colors.highbrown,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if found_sisiquartz then
|
|
||||||
basic_froth_flotation_recipe.results = {{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-calcite",
|
|
||||||
probability = adamo.geo.abundance.calcite,
|
|
||||||
amount = mineral_output_count*recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-gypsum",
|
|
||||||
probability = adamo.geo.abundance.gypsum,
|
|
||||||
amount = mineral_output_count*recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "iron-ore",
|
|
||||||
probability = adamo.geo.abundance.iron,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "copper-ore",
|
|
||||||
probability = adamo.geo.abundance.copper,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "coal",
|
|
||||||
probability = adamo.geo.abundance.coal,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
}}
|
|
||||||
advanced_froth_flotation_recipe.results = {{
|
|
||||||
type = "item",
|
|
||||||
name = "SiSi-quartz",
|
|
||||||
probability = adamo.geo.abundance.quartz,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-fluorite",
|
|
||||||
probability = adamo.geo.abundance.fluorite,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-calcite",
|
|
||||||
probability = adamo.geo.abundance.calcite,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-gypsum",
|
|
||||||
probability = adamo.geo.abundance.gypsum,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "sulfur",
|
|
||||||
probability = adamo.geo.abundance.sulfur,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "iron-ore",
|
|
||||||
probability = adamo.geo.abundance.iron,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "copper-ore",
|
|
||||||
probability = adamo.geo.abundance.copper,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "coal",
|
|
||||||
probability = adamo.geo.abundance.coal,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
}}
|
|
||||||
else
|
|
||||||
basic_froth_flotation_recipe.results = {{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-quartz",
|
|
||||||
probability = adamo.geo.abundance.quartz,
|
|
||||||
amount = mineral_output_count*recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-calcite",
|
|
||||||
probability = adamo.geo.abundance.calcite,
|
|
||||||
amount = mineral_output_count*recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-gypsum",
|
|
||||||
probability = adamo.geo.abundance.gypsum,
|
|
||||||
amount = mineral_output_count*recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "iron-ore",
|
|
||||||
probability = adamo.geo.abundance.iron,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "copper-ore",
|
|
||||||
probability = adamo.geo.abundance.copper,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "coal",
|
|
||||||
probability = adamo.geo.abundance.coal,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
}}
|
|
||||||
advanced_froth_flotation_recipe.results = {{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-quartz",
|
|
||||||
probability = adamo.geo.abundance.quartz,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-fluorite",
|
|
||||||
probability = adamo.geo.abundance.fluorite,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-calcite",
|
|
||||||
probability = adamo.geo.abundance.calcite,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "adamo-chemical-gypsum",
|
|
||||||
probability = adamo.geo.abundance.gypsum,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "sulfur",
|
|
||||||
probability = adamo.geo.abundance.sulfur,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "iron-ore",
|
|
||||||
probability = adamo.geo.abundance.iron,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "copper-ore",
|
|
||||||
probability = adamo.geo.abundance.copper,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
},{
|
|
||||||
type = "item",
|
|
||||||
name = "coal",
|
|
||||||
probability = adamo.geo.abundance.coal,
|
|
||||||
amount = mineral_output_count*adv_recover_ratio
|
|
||||||
}}
|
|
||||||
end
|
|
||||||
data:extend({
|
data:extend({
|
||||||
calcite_recipe,
|
calcite_recipe,
|
||||||
gypsum_recipe,
|
gypsum_recipe,
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"dependencies": [
|
"dependencies": [
|
||||||
"base",
|
"base",
|
||||||
"SimpleSilicon",
|
"SimpleSilicon",
|
||||||
"? informatron"
|
"? informatron",
|
||||||
|
"? DeadlockCrating"
|
||||||
],
|
],
|
||||||
"description": "Chemical reverse engineering.",
|
"description": "Chemical reverse engineering.",
|
||||||
"factorio_version": "1.1"
|
"factorio_version": "1.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user