up
This commit is contained in:
parent
ad8a601182
commit
25f1395e4c
2 changed files with 27 additions and 3 deletions
|
@ -20,4 +20,10 @@ function util.get_list()
|
|||
end
|
||||
end
|
||||
|
||||
function util.force_enable_recipe(event, recipe_name)
|
||||
if game.players[event.player_index].force.recipes[recipe_name] then
|
||||
game.players[event.player_index].force.recipes[recipe_name].enabled=true
|
||||
end
|
||||
end
|
||||
|
||||
return util
|
||||
|
|
|
@ -131,6 +131,13 @@ function util.k2matter(params)
|
|||
params.k2matter.minimum_conversion_quantity = 10
|
||||
end
|
||||
if not data.raw.technology[params.k2matter.unlocked_by_technology] then
|
||||
local icon = ""
|
||||
if params.k2baseicon then
|
||||
icon = util.k2assets().."/technologies/matter-"..params.k2baseicon..".png"
|
||||
else
|
||||
icon = util.k2assets().."/technologies/backgrounds/matter.png"
|
||||
end
|
||||
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
|
@ -139,7 +146,7 @@ function util.k2matter(params)
|
|||
icons =
|
||||
{
|
||||
{
|
||||
icon = util.k2assets().."/technologies/matter-"..params.k2baseicon..".png",
|
||||
icon = icon,
|
||||
icon_size = 256,
|
||||
},
|
||||
params.icon,
|
||||
|
@ -148,14 +155,25 @@ function util.k2matter(params)
|
|||
unit =
|
||||
{
|
||||
count = 350,
|
||||
ingredients =
|
||||
ingredients = mods["space-exploration"] and
|
||||
{
|
||||
{"automation-science-pack", 1},
|
||||
{"logistic-science-pack", 1},
|
||||
{"chemical-science-pack", 1},
|
||||
{"se-astronomic-science-pack-4", 1},
|
||||
{"se-energy-science-pack-4", 1},
|
||||
{"se-material-science-pack-4", 1},
|
||||
{"se-deep-space-science-pack-2", 1},
|
||||
{"se-kr-matter-science-pack-2", 1},
|
||||
} or
|
||||
{
|
||||
{"production-science-pack", 1},
|
||||
{"utility-science-pack", 1},
|
||||
{"matter-tech-card", 1}
|
||||
},
|
||||
time = 45,
|
||||
}
|
||||
},
|
||||
localised_name = {"technology-name.k2-conversion", {"item-name."..params.k2matter.item_name}},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue