2 local zeroExpression = {
3 expression_id = "literal-number:1",
5 type = "literal-number"
8 for _, ent in pairs(data.raw["unit-spawner"]) do
9 if ent and ent.autoplace then
10 ent.autoplace.probability_expression = zeroExpression
14 for _, ent in pairs(data.raw.turret) do
15 if ent.subgroup == "enemies" and ent and ent.autoplace then
16 ent.autoplace.probability_expression = zeroExpression