From 39bce269e90425a352aca7bdb790f483dea3c34e Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 1 Jun 2019 20:26:33 +0200 Subject: [PATCH] Code reformatted. --- data-final-fixes.lua | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 43ba2eb..84438ae 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -1,18 +1,18 @@ --- from rso mod -local zeroExpression = { - expression_id = "literal-number:1", - literal_value = 0, - type = "literal-number" -} - -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 +-- from rso mod +local zeroExpression = { + expression_id = "literal-number:1", + literal_value = 0, + type = "literal-number" +} + +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 -- 2.43.0