diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..bbf3e21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[*] +indent_style = space +indent_size = 2 \ No newline at end of file diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index 0ec7456..9416c90 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -178,6 +178,7 @@ wood=Wood fuel quality-catalyst=Quality catalyst [mod-setting-name] +lignumis-restrict-sciences=Restrict Lignumis science recipes to Lignumis lignumis-belt-progression=Enable progressive belt recipes lignumis-inserter-progression=Enable progressive inserter recipes lignumis-ammo-progression=Enable progressive ammo recipes diff --git a/lignumis/prototypes/content/steam-science.lua b/lignumis/prototypes/content/steam-science.lua index cb37493..171bab7 100644 --- a/lignumis/prototypes/content/steam-science.lua +++ b/lignumis/prototypes/content/steam-science.lua @@ -41,7 +41,8 @@ data:extend({ primary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, secondary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, }, - allow_productivity = true + allow_productivity = true, + surface_conditions = settings.startup["lignumis-restrict-sciences"].value and { { property = "pollutant-type", min = 3, max = 3 } } or nil }, { type = "recipe", @@ -59,7 +60,8 @@ data:extend({ primary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, secondary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, }, - allow_productivity = true + allow_productivity = true, + surface_conditions = settings.startup["lignumis-restrict-sciences"].value and { { property = "pollutant-type", min = 3, max = 3 } } or nil }, { type = "technology", diff --git a/lignumis/prototypes/content/wood-science.lua b/lignumis/prototypes/content/wood-science.lua index b80cbe5..3d90530 100644 --- a/lignumis/prototypes/content/wood-science.lua +++ b/lignumis/prototypes/content/wood-science.lua @@ -40,7 +40,8 @@ data:extend({ primary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, secondary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, }, - allow_productivity = true + allow_productivity = true, + surface_conditions = settings.startup["lignumis-restrict-sciences"].value and { { property = "pollutant-type", min = 3, max = 3 } } or nil }, { type = "technology", diff --git a/lignumis/settings.lua b/lignumis/settings.lua index ddde9f0..8296fdd 100644 --- a/lignumis/settings.lua +++ b/lignumis/settings.lua @@ -1,102 +1,109 @@ data:extend({ { type = "bool-setting", - name = "lignumis-belt-progression", + name = "lignumis-restrict-sciences", setting_type = "startup", - default_value = true, + default_value = false, order = "a" }, { type = "bool-setting", - name = "lignumis-inserter-progression", + name = "lignumis-belt-progression", setting_type = "startup", default_value = true, order = "b" }, { type = "bool-setting", - name = "lignumis-ammo-progression", + name = "lignumis-inserter-progression", setting_type = "startup", default_value = true, order = "c" }, { type = "bool-setting", - name = "lignumis-technology-progression", + name = "lignumis-ammo-progression", setting_type = "startup", default_value = true, order = "d" }, { type = "bool-setting", - name = "lignumis-basic-circuit-board", + name = "lignumis-technology-progression", setting_type = "startup", default_value = true, order = "e" }, { type = "bool-setting", - name = "lignumis-circuit-progression", + name = "lignumis-basic-circuit-board", setting_type = "startup", - default_value = false, + default_value = true, order = "f" }, { type = "bool-setting", - name = "lignumis-assembler-progression", + name = "lignumis-circuit-progression", setting_type = "startup", default_value = false, order = "g" }, { type = "bool-setting", - name = "lignumis-lumber-mill-more-recipes", + name = "lignumis-assembler-progression", setting_type = "startup", default_value = false, order = "h" }, { type = "bool-setting", - name = "lignumis-fulgora-wood", + name = "lignumis-lumber-mill-more-recipes", setting_type = "startup", default_value = false, order = "i" }, { type = "bool-setting", - name = "lignumis-early-robots", + name = "lignumis-fulgora-wood", setting_type = "startup", default_value = false, order = "j" }, { type = "bool-setting", - name = "lignumis-vanilla-lab", + name = "lignumis-early-robots", setting_type = "startup", default_value = false, order = "k" }, { type = "bool-setting", - name = "lignumis-double-rocket", + name = "lignumis-vanilla-lab", setting_type = "startup", default_value = false, order = "l" }, { type = "bool-setting", - name = "lignumis-sciences-spoil", + name = "lignumis-double-rocket", setting_type = "startup", default_value = false, order = "m" }, { type = "bool-setting", - name = "lignumis-infinite-astroponics-productivity-research", + name = "lignumis-sciences-spoil", setting_type = "startup", default_value = false, order = "n" }, + { + type = "bool-setting", + name = "lignumis-infinite-astroponics-productivity-research", + setting_type = "startup", + default_value = false, + order = "o" + }, { type = "string-setting", name = "lignumis-second-planet",