Compatible with Factorio 0.18
This commit is contained in:
parent
78bbc12536
commit
87d61d9aff
|
@ -0,0 +1 @@
|
|||
*.zip
|
|
@ -0,0 +1,5 @@
|
|||
# Clean Floor
|
||||
|
||||
Remove all decorations when placing floor tiles.
|
||||
|
||||
![Alt text](/before-after.png?raw=true)
|
Binary file not shown.
After Width: | Height: | Size: 1.0 MiB |
|
@ -0,0 +1,5 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.0
|
||||
Date: 23.03.2020
|
||||
Features:
|
||||
- Initial release
|
|
@ -0,0 +1,5 @@
|
|||
for _, v in pairs(data.raw.tile) do
|
||||
if (v.decorative_removal_probability or 0) > 0 then
|
||||
v.decorative_removal_probability = 1
|
||||
end
|
||||
end
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name":"CleanFloor",
|
||||
"version":"0.1.0",
|
||||
"title":"Clean Floor",
|
||||
"description":"Remove all decorations when placing floor tiles.",
|
||||
"author":"David Skrundz",
|
||||
"contact": "david@skrundz.ca",
|
||||
"homepage": "https://github.com/DavidSkrundz/CleanFloor",
|
||||
"factorio_version": "0.18",
|
||||
"dependencies": [
|
||||
"base >= 0.18.0"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import json
|
||||
from zipfile import ZipFile
|
||||
|
||||
modFiles = [
|
||||
"info.json",
|
||||
"changelog.txt",
|
||||
"thumbnail.png",
|
||||
|
||||
"data-updates.lua",
|
||||
]
|
||||
|
||||
with open("info.json") as file:
|
||||
modInfo = json.load(file)
|
||||
|
||||
zipName = "{}_{}".format(modInfo["name"], modInfo["version"])
|
||||
|
||||
with ZipFile("{}.zip".format(zipName), 'w') as modZip:
|
||||
for file in modFiles:
|
||||
modZip.write(file, arcname="{}/{}".format(zipName, file))
|
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Loading…
Reference in New Issue