Add setting for infinite astroponics productivity research
This commit is contained in:
parent
ee9eb8faf1
commit
9bf4a5d6ff
3 changed files with 56 additions and 36 deletions
|
@ -190,6 +190,7 @@ lignumis-early-robots=Even earlier personal robots
|
||||||
lignumis-vanilla-lab=Keep vanilla lab recipe
|
lignumis-vanilla-lab=Keep vanilla lab recipe
|
||||||
lignumis-double-rocket=Double provisional rocket cargo capacity
|
lignumis-double-rocket=Double provisional rocket cargo capacity
|
||||||
lignumis-sciences-spoil=Lignumis science packs spoil
|
lignumis-sciences-spoil=Lignumis science packs spoil
|
||||||
|
lignumis-infinite-astroponics-productivity-research=Infinite productivity research for Astroponics
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
lignumis-belt-progression=Yellow belts will require wood belts to craft.
|
lignumis-belt-progression=Yellow belts will require wood belts to craft.
|
||||||
|
@ -205,6 +206,7 @@ lignumis-early-robots=Personal robots are moved from steam to wood science and a
|
||||||
lignumis-vanilla-lab=Moves the transport belt recipe to Iron processing so the lab can be crafted with the original recipe without requiring to research logistics.
|
lignumis-vanilla-lab=Moves the transport belt recipe to Iron processing so the lab can be crafted with the original recipe without requiring to research logistics.
|
||||||
lignumis-double-rocket=The provisional rocket can carry 80 instead of 40 slots.
|
lignumis-double-rocket=The provisional rocket can carry 80 instead of 40 slots.
|
||||||
lignumis-sciences-spoil=Both wood science packs and steam science packs spoil for additional difficulty.
|
lignumis-sciences-spoil=Both wood science packs and steam science packs spoil for additional difficulty.
|
||||||
|
lignumis-infinite-astroponics-productivity-research=Productivity research for Astroponics is infinite instead of being capped to level 5 (which results in 50% productivity).
|
||||||
|
|
||||||
[autoplace-control-names]
|
[autoplace-control-names]
|
||||||
lignumis_enemy_base=Lignumis enemy bases
|
lignumis_enemy_base=Lignumis enemy bases
|
||||||
|
|
|
@ -1,38 +1,49 @@
|
||||||
data:extend({
|
local infinite = settings.startup["lignumis-infinite-astroponics-productivity-research"].value
|
||||||
{
|
|
||||||
type = "technology",
|
local base_levels = {
|
||||||
name = "astroponics-productivity",
|
type = "technology",
|
||||||
icons = {
|
name = "astroponics-productivity",
|
||||||
{ icon = "__base__/graphics/icons/wood.png", icon_size = 64 },
|
icons = {
|
||||||
{ icon = "__astroponics__/graphics/icons/fluid/liquid-fertilizer.png", shift = { -32, -32 }, scale = 1.2 },
|
{ icon = "__base__/graphics/icons/wood.png", icon_size = 64 },
|
||||||
{
|
{ icon = "__astroponics__/graphics/icons/fluid/liquid-fertilizer.png", shift = { -32, -32 }, scale = 1.2 },
|
||||||
icon = "__core__/graphics/icons/technology/constants/constant-recipe-productivity.png",
|
{
|
||||||
icon_size = 128,
|
icon = "__core__/graphics/icons/technology/constants/constant-recipe-productivity.png",
|
||||||
scale = 0.5,
|
icon_size = 128,
|
||||||
shift = { 50, 50 },
|
scale = 0.5,
|
||||||
floating = true
|
shift = { 50, 50 },
|
||||||
}
|
floating = true
|
||||||
},
|
|
||||||
essential = false,
|
|
||||||
level = 1,
|
|
||||||
max_level = 5,
|
|
||||||
show_levels_info = true,
|
|
||||||
effects = {
|
|
||||||
{
|
|
||||||
type = "change-recipe-productivity",
|
|
||||||
recipe = "tree-astroponics",
|
|
||||||
change = 0.1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
prerequisites = { "astroponics", "production-science-pack" },
|
|
||||||
unit = {
|
|
||||||
count_formula = "L*250",
|
|
||||||
ingredients = {
|
|
||||||
{ "wood-science-pack", 1 },
|
|
||||||
{ "production-science-pack", 1 },
|
|
||||||
{ "space-science-pack", 1 },
|
|
||||||
},
|
|
||||||
time = 60
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
essential = false,
|
||||||
|
level = 1,
|
||||||
|
max_level = 5,
|
||||||
|
show_levels_info = true,
|
||||||
|
effects = {
|
||||||
|
{
|
||||||
|
type = "change-recipe-productivity",
|
||||||
|
recipe = "tree-astroponics",
|
||||||
|
change = 0.1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
prerequisites = { "astroponics", "production-science-pack" },
|
||||||
|
unit = {
|
||||||
|
count_formula = "L*250",
|
||||||
|
ingredients = {
|
||||||
|
{ "wood-science-pack", 1 },
|
||||||
|
{ "production-science-pack", 1 },
|
||||||
|
{ "space-science-pack", 1 },
|
||||||
|
},
|
||||||
|
time = 60
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
data:extend({ base_levels })
|
||||||
|
|
||||||
|
if infinite then
|
||||||
|
local infinite_levels = table.deepcopy(base_levels)
|
||||||
|
infinite_levels.name = "astroponics-productivity-6"
|
||||||
|
infinite_levels.max_level = "infinite"
|
||||||
|
infinite_levels.unit.count_formula = "2^(L-6)*1500"
|
||||||
|
table.insert(infinite_levels.unit.ingredients, { "agricultural-science-pack", 1 })
|
||||||
|
infinite_levels.prerequisites = { "astroponics-productivity", "agricultural-science-pack" }
|
||||||
|
data:extend({ infinite_levels })
|
||||||
|
end
|
||||||
|
|
|
@ -90,6 +90,13 @@ data:extend({
|
||||||
default_value = false,
|
default_value = false,
|
||||||
order = "m"
|
order = "m"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type = "bool-setting",
|
||||||
|
name = "lignumis-infinite-astroponics-productivity-research",
|
||||||
|
setting_type = "startup",
|
||||||
|
default_value = false,
|
||||||
|
order = "n"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type = "string-setting",
|
type = "string-setting",
|
||||||
name = "lignumis-second-planet",
|
name = "lignumis-second-planet",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue