Add setting for infinite research and reduce cost
This commit is contained in:
parent
ade9953f16
commit
98a5a30501
4 changed files with 21 additions and 5 deletions
|
@ -3,3 +3,9 @@ ore-crushing-productivity=Ore crushing productivity
|
|||
|
||||
[modifier-description]
|
||||
change-recipe-productivity=__1__ productivity: __2__
|
||||
|
||||
[mod-setting-name]
|
||||
crushing-industry-productivity-research-infinite=Infinite productivity research
|
||||
|
||||
[mod-setting-description]
|
||||
crushing-industry-productivity-research-infinite=Productivity research is infinite instead of being capped to level 6 (which results in 50% productivity).
|
|
@ -1,5 +1,7 @@
|
|||
local icons = util.technology_icon_constant_recipe_productivity(data.raw.technology["ore-crushing"].icon)
|
||||
|
||||
local infinite = settings.startup["crushing-industry-productivity-research-infinite"].value
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "technology",
|
||||
|
@ -32,7 +34,7 @@ data:extend({
|
|||
effects = {},
|
||||
prerequisites = { "ore-crushing-productivity-1", mods["space-age"] and "space-science-pack" or "production-science-pack" },
|
||||
unit = {
|
||||
count = 1000,
|
||||
count = 750,
|
||||
ingredients = {
|
||||
{ "automation-science-pack", 1 },
|
||||
{ "logistic-science-pack", 1 },
|
||||
|
@ -47,12 +49,12 @@ data:extend({
|
|||
icons = icons,
|
||||
essential = false,
|
||||
level = 3,
|
||||
max_level = 6,
|
||||
max_level = infinite and "infinite" or 6,
|
||||
show_levels_info = true,
|
||||
effects = {},
|
||||
prerequisites = { "ore-crushing-productivity-2", "production-science-pack", "space-science-pack" },
|
||||
unit = {
|
||||
count_formula = "2^(L-2)*1000",
|
||||
count_formula = "2^(L-3)*1000",
|
||||
ingredients = {
|
||||
{ "automation-science-pack", 1 },
|
||||
{ "logistic-science-pack", 1 },
|
||||
|
|
9
crushing-industry-productivity-research/settings.lua
Normal file
9
crushing-industry-productivity-research/settings.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
data:extend({
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "crushing-industry-productivity-research-infinite",
|
||||
setting_type = "startup",
|
||||
default_value = false,
|
||||
order = "a"
|
||||
}
|
||||
})
|
|
@ -1 +0,0 @@
|
|||
mod_utilmod_utilmod_utilmod_util
|
Loading…
Add table
Add a link
Reference in a new issue