Mod compatibility fixes
This commit is contained in:
parent
10449fa640
commit
b2d4ee2a7f
5 changed files with 11 additions and 12 deletions
|
@ -11,7 +11,7 @@ function util.se_landfill(params)
|
|||
type = "recipe",
|
||||
icons = {
|
||||
{ icon = "__base__/graphics/icons/landfill.png", icon_size = 64, icon_mipmaps = 3 },
|
||||
{ icon = "__Chromium2__/graphics/icons/"..params.ore..".png", icon_size = params.icon_size, scale = 0.33*64/params.icon_size},
|
||||
{ icon = "__Indium2__/graphics/icons/"..params.ore..".png", icon_size = params.icon_size, scale = 0.33*64/params.icon_size},
|
||||
},
|
||||
energy_required = 1,
|
||||
enabled=false,
|
||||
|
@ -48,7 +48,7 @@ function util.se_matter(params)
|
|||
icon_size = 64, scale = 0.5},
|
||||
{icon = "__space-exploration-graphics__/graphics/icons/fluid/particle-stream.png",
|
||||
icon_size = 64, scale = 0.33, shift = {8,-8}},
|
||||
{icon = "__Chromium2__/graphics/icons/"..params.ore..".png",
|
||||
{icon = "__Indium2__/graphics/icons/"..params.ore..".png",
|
||||
icon_size = params.icon_size, scale = 0.33 * 64/params.icon_size, shift={-8, 8}},
|
||||
{icon = "__space-exploration-graphics__/graphics/icons/transition-arrow.png",
|
||||
icon_size = 64, scale = 0.5},
|
||||
|
@ -87,7 +87,7 @@ function util.se_matter(params)
|
|||
icon_size = 64, scale = 0.5},
|
||||
{icon = "__space-exploration-graphics__/graphics/icons/fluid/particle-stream.png",
|
||||
icon_size = 64, scale = 0.33, shift = {-8,8}},
|
||||
{icon = "__Chromium2__/graphics/icons/"..params.ore..".png",
|
||||
{icon = "__Indium2__/graphics/icons/"..params.ore..".png",
|
||||
icon_size = params.icon_size, scale = 0.33 * 64/params.icon_size, shift={8, -8}},
|
||||
{icon = "__space-exploration-graphics__/graphics/icons/transition-arrow.png",
|
||||
icon_size = 64, scale = 0.5},
|
||||
|
@ -129,7 +129,7 @@ function util.se_matter(params)
|
|||
{"se-astronomic-science-pack-4", 1},
|
||||
{"se-energy-science-pack-4", 1},
|
||||
{"se-material-science-pack-4", 1},
|
||||
{"matter-tech-card", 1},
|
||||
{"kr-matter-tech-card", 1},
|
||||
{"se-deep-space-science-pack-1", 1},
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
local resource_autoplace = require('resource-autoplace');
|
||||
local item_sounds = require('__base__.prototypes.item_sounds')
|
||||
local util = require("data-util")
|
||||
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["indite-ore"] = {}
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["indite-ore"] = {}
|
||||
|
@ -72,5 +73,5 @@ data:extend({
|
|||
})
|
||||
|
||||
if mods["Krastorio2"] then
|
||||
util.add_product("enriched-copper", { name = "indite-ore", amount = 1, probability = 0.09 })
|
||||
util.add_product("kr-enriched-copper", { name = "indite-ore", amount = 1, probability = 0.09 })
|
||||
end
|
||||
|
|
|
@ -44,7 +44,7 @@ data:extend({
|
|||
icon_size = 64,
|
||||
icons = (mods["Krastorio2"] and
|
||||
{
|
||||
{ icon = "__248k-Redux__/ressources/fluids/el_dirty_water.png", icon_size = 64},
|
||||
{ icon = "__248k-Redux-graphics__/ressources/fluids/el_dirty_water.png", icon_size = 64},
|
||||
{ icon = "__Indium2__/graphics/icons/indite-ore.png", icon_size = 64, scale=0.2, shift= {-8, -8}},
|
||||
} or {
|
||||
{ icon = "__Indium2__/graphics/icons/indite-ore.png", icon_size = 64},
|
||||
|
|
|
@ -27,25 +27,23 @@ data:extend(
|
|||
{
|
||||
{"production-science-pack", 1},
|
||||
{"utility-science-pack", 1},
|
||||
{"matter-tech-card", 1}
|
||||
{"kr-matter-tech-card", 1}
|
||||
},
|
||||
time = 45
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
matter.createMatterRecipe({
|
||||
matter.make_recipes({
|
||||
material = { type = "item", name = "indite-ore", amount = 10 },
|
||||
item_name = "indite-ore",
|
||||
matter_count = 5,
|
||||
energy_required = 1,
|
||||
need_stabilizer = false,
|
||||
unlocked_by_technology = "indium-matter-processing"
|
||||
})
|
||||
|
||||
matter.createMatterRecipe({
|
||||
matter.make_recipes({
|
||||
material = { type = "item", name = "indium-plate", amount = 10 },
|
||||
minimum_conversion_quantity = 10,
|
||||
matter_count = 10,
|
||||
energy_required = 3,
|
||||
only_deconversion = true,
|
||||
|
|
|
@ -41,7 +41,7 @@ data:extend({
|
|||
|
||||
local solder_ingredients = {{type="item", name="indium-plate", amount=6}}
|
||||
if mods["bzlead"] then
|
||||
solder_ingredients = {{type="item", name="indium-plate", 3}, {"lead-plate", amount=3}}
|
||||
solder_ingredients = {{type="item", name="indium-plate", amount=3}, {type="item", name="lead-plate", amount=3}}
|
||||
end
|
||||
local solder_category = "crafting"
|
||||
local solder_subgroup = "intermediate-product"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue