Add setting to restrict sciences to Lignumis

This commit is contained in:
Simon Brodtmann 2025-11-11 23:12:21 +01:00
parent 9c3800e293
commit 0ec3d172bc
5 changed files with 33 additions and 19 deletions

View file

@ -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",

View file

@ -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",