Fix some SE conditions
This commit is contained in:
parent
d23c195fa8
commit
9cf62985ff
1 changed files with 9 additions and 20 deletions
|
@ -1,7 +1,7 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods["space-exploration"] then
|
||||
if string.sub(mods["space-exploration"], 1, 3) == "0.6" and data.raw["item-subgroup"]["stone"] then
|
||||
if data.raw["item-subgroup"]["stone"] then
|
||||
util.set_item_subgroup("silica", "stone")
|
||||
util.set_item_subgroup("silicon", "stone")
|
||||
util.set_subgroup("silicon", "stone")
|
||||
|
@ -11,21 +11,18 @@ if mods["space-exploration"] then
|
|||
local recipe = data.raw.recipe["se-kr-silicon-with-vulcanite"]
|
||||
recipe.ingredients = {
|
||||
{type="item", name="silica", amount=18},
|
||||
string.sub(mods["space-exploration"], 1, 3) == "0.6" and
|
||||
{type="fluid", name="se-pyroflux", amount=10} or {type="item", name="se-vulcanite-block", amount=1},
|
||||
{type="fluid", name="se-pyroflux", amount=10},
|
||||
}
|
||||
recipe.category = "smelting" -- now uses pyroflux so can't be kiln in se 0.6
|
||||
recipe.energy_required=21.6
|
||||
recipe.results = {
|
||||
{type="item", name = "kr-silicon", amount = 6},
|
||||
}
|
||||
if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
|
||||
table.insert(recipe.ingredients, {"kr-coke", 1})
|
||||
recipe.icons = {
|
||||
{ icon = "__Krastorio2Assets__/icons/items/silicon.png", icon_size = 64},
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
|
||||
}
|
||||
end
|
||||
table.insert(recipe.ingredients, { type = "item", name = "kr-coke", amount = 1 })
|
||||
recipe.icons = {
|
||||
{ icon = "__Krastorio2Assets__/icons/items/silicon.png", icon_size = 64},
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
|
||||
}
|
||||
else
|
||||
se_delivery_cannon_recipes["silicon"] = {name= "silicon"}
|
||||
data:extend({
|
||||
|
@ -40,26 +37,18 @@ if mods["space-exploration"] then
|
|||
allow_as_intermediate = false,
|
||||
ingredients = {
|
||||
{type="item", name = "silica", amount = 20},
|
||||
string.sub(mods["space-exploration"], 1, 3) == "0.6" and
|
||||
{type="fluid", name="se-pyroflux", amount=10} or {type="item", name="se-vulcanite-block", amount=1},
|
||||
{type="fluid", name="se-pyroflux", amount=10},
|
||||
},
|
||||
results = {
|
||||
{type="item", name = "silicon", amount = 3},
|
||||
},
|
||||
icons = {
|
||||
{ icon = "__bzsilicon__/graphics/icons/silicon.png", icon_size = 64, icon_mipmaps = 3 },
|
||||
string.sub(mods["space-exploration"], 1, 3) == "0.6" and
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64, scale=0.25, shift= {-10, -10}} or
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64, scale=0.25, shift= {-10, -10}}
|
||||
},
|
||||
},
|
||||
})
|
||||
if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "silicon-smelting-vulcanite"})
|
||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "silicon-smelting-vulcanite"})
|
||||
else
|
||||
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
|
||||
{type = "unlock-recipe", recipe= "silicon-smelting-vulcanite"})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue