From: Someone Date: Tue, 22 Oct 2024 13:05:56 +0000 (+0200) Subject: RELEASE 2.0.0 - Initial compatibility with Factorio 2.0 X-Git-Url: https://git.somenet.org/factorio/some-disableenemygeneration.git/commitdiff_plain?ds=inline RELEASE 2.0.0 - Initial compatibility with Factorio 2.0 --- diff --git a/changelog.txt b/changelog.txt index 58709c2..61e3c38 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 2.0.0 +Date: 2024-10-21 + + Changed: + - Initial compatibility with Factorio 2.0 + --------------------------------------------------------------------------------------------------- Version: 1.1.3 Date: 2024-01-02 diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 84438ae..01271f2 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -1,18 +1,12 @@ --- 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 + ent.autoplace.probability_expression = '0' 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 + ent.autoplace.probability_expression = '0' end end diff --git a/info.json b/info.json index b611504..2867ab9 100644 --- a/info.json +++ b/info.json @@ -1,10 +1,10 @@ { "name": "some-disableenemygeneration", - "version": "1.1.3", + "version": "2.0.0", "title": "Disable enemy generation", "author": "someone1337", "homepage": "https://git.somenet.org/factorio/some-disableenemygeneration.git", - "description": "TREES ARE THE NEW ENEMY no 1! Enable mod to disable the spawning of enemy bases on newly generated chunks. Disable mod to restore previous behavior. This way you can go mega without having to use lua commands (=losing achievements) or restart the game. Existing enemies may still expand on their own!", - "dependencies": ["base>=1.1.0"], - "factorio_version": "1.1" + "description": "TREES ARE THE NEW ENEMY no 1! Enable mod to disable the spawning of enemy bases (and trees) on NEWLY GENERATED chunks. Disable mod to restore previous behavior. This way you can go mega without having to use lua commands (=losing achievements) or restart the game and can actually kill all enemies. WARNING: Usually the game generates a few more chunks than what the player sees and enemies may already have been generated and exist on chunks not yet discovered by the player and may expand on their own!", + "factorio_version": "2.0", + "dependencies": ["base>=2.0.0"] }