-- from rso mod local zeroExpression = { expression_id = "literal-number:1", literal_value = 0, type = "literal-number" } -- this has to be a startup option, so it makes no diffrence if you just toggle the whole mod or provide a single option, which requires a game restart anyway. --if not settings.startup["rso-vanilla-biter-generation"].value then for _, ent in pairs(data.raw["unit-spawner"]) do if ent and ent.autoplace then ent.autoplace.probability_expression = zeroExpression end end for _, ent in pairs(data.raw.turret) do if ent.subgroup == "enemies" and ent and ent.autoplace then ent.autoplace.probability_expression = zeroExpression end end --end