From 74b364ae78960fb36a7902c71a8a6e0a5c5d3c5b Mon Sep 17 00:00:00 2001 From: Someone Date: Sun, 17 Mar 2019 13:26:55 +0100 Subject: [PATCH] polished, gitified and published --- License.txt | 19 +++++++++++++++++++ changelog.txt | 6 ++++++ data-final-fixes.lua | 21 +++++++++++++++++++++ info.json | 10 ++++++++++ 4 files changed, 56 insertions(+) create mode 100644 License.txt create mode 100644 changelog.txt create mode 100644 data-final-fixes.lua create mode 100644 info.json diff --git a/License.txt b/License.txt new file mode 100644 index 0000000..ae7e15e --- /dev/null +++ b/License.txt @@ -0,0 +1,19 @@ +Copyright (c) 2018-2020 Someone + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/changelog.txt b/changelog.txt new file mode 100644 index 0000000..79f4a5e --- /dev/null +++ b/changelog.txt @@ -0,0 +1,6 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.17.1 +Date: 2019-03-17 + + Changed: + - polished, gitified and published diff --git a/data-final-fixes.lua b/data-final-fixes.lua new file mode 100644 index 0000000..60ded58 --- /dev/null +++ b/data-final-fixes.lua @@ -0,0 +1,21 @@ +-- 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 diff --git a/info.json b/info.json new file mode 100644 index 0000000..6b985b6 --- /dev/null +++ b/info.json @@ -0,0 +1,10 @@ +{ + "name": "some-disableenemygeneration", + "version": "0.17.1", + "title": "Disable enemy generation", + "author": "someone1337", + "homepage": "https://git.somenet.org/pub/jan/factorio_some-disableenemygeneration.git", + "description": "Load this mod to disable the generation of enemies on newly generated chunks. Due to factorio's design, this requires changes during the game startup. So it makes no diffrence if you just toggle the whole mod or provide a single startup-setting, which requires a game restart anyway.", + "dependencies": ["base"], + "factorio_version": "0.17" +} -- 2.43.0