From 099339f4a9a7ffe3c07446003bed05b506dda736 Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 12 Jan 2019 23:41:09 +0100 Subject: [PATCH] gitify, so I dont delete my stuff again. --- License.txt | 19 +++++++++++++++++++ changelog.txt | 6 ++++++ control.lua | 12 ++++++++++++ data.lua | 5 +++++ info.json | 10 ++++++++++ 5 files changed, 52 insertions(+) create mode 100644 License.txt create mode 100644 changelog.txt create mode 100644 control.lua create mode 100644 data.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..16dc0e7 --- /dev/null +++ b/changelog.txt @@ -0,0 +1,6 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.16.2 +Date: 2018-07-29 + + Changed: + - Added changelog and License files for future reference. No functional changes. diff --git a/control.lua b/control.lua new file mode 100644 index 0000000..80397e9 --- /dev/null +++ b/control.lua @@ -0,0 +1,12 @@ +--[[get dir of decorations under entities]] +script.on_event(defines.events.on_built_entity, function(event) + if event.created_entity.type ~= "entity-ghost" and event.created_entity.type ~= "tile-ghost" then + game.surfaces[1].destroy_decoratives(event.created_entity.bounding_box) + end +end) + +script.on_event(defines.events.on_robot_built_entity, function(event) + if event.created_entity.type ~= "entity-ghost" and event.created_entity.type ~= "tile-ghost" then + game.surfaces[1].destroy_decoratives(event.created_entity.bounding_box) + end +end) diff --git a/data.lua b/data.lua new file mode 100644 index 0000000..9cedcd2 --- /dev/null +++ b/data.lua @@ -0,0 +1,5 @@ +-- make placement of tiles also remove decorations +data.raw.tile['concrete'].decorative_removal_probability = 1 +data.raw.tile['hazard-concrete-left'].decorative_removal_probability = 1 +data.raw.tile['hazard-concrete-right'].decorative_removal_probability = 1 +data.raw.tile['stone-path'].decorative_removal_probability = 1 diff --git a/info.json b/info.json new file mode 100644 index 0000000..b39f024 --- /dev/null +++ b/info.json @@ -0,0 +1,10 @@ +{ + "name": "RealisticDecorationCleanup", + "version": "0.16.2", + "title": "Realistic Decoration Cleanup", + "author": "someone1337", + "homepage": "https://git.somenet.org/pub/jan/factorio_RealisticDecorationCleanup.git", + "factorio_version": "0.16", + "dependencies": ["base"], + "description": "Remove decorations prior to placing entities or tiles. Normally you would not build a house/road and leave the bushes below it." +} -- 2.43.0