diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4c4ffc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.zip diff --git a/README.md b/README.md new file mode 100644 index 0000000..54ac206 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Beautiful Bridge Railway - Recipe Fix + + +### Features +Changes the recipes of BBR to depend on rails to be more in line with modded rail recipes. You can also enable more expensive recipes via mod settings. + +### Credits +Thanks to [kapaer](https://mods.factorio.com/user/kapaer) for the [mod](https://mods.factorio.com/mod/beautiful_bridge_railway) this depends on. \ No newline at end of file diff --git a/changelog.txt b/changelog.txt new file mode 100644 index 0000000..848440a --- /dev/null +++ b/changelog.txt @@ -0,0 +1,6 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.18.0 +Date: 2020-03-19 + Features: + - Changed BBR's recipes + - Added mod setting for more expensive recipes \ No newline at end of file diff --git a/data-updates.lua b/data-updates.lua new file mode 100644 index 0000000..03b3c02 --- /dev/null +++ b/data-updates.lua @@ -0,0 +1,9 @@ +if settings.startup["bbr_fix_expensive"].value then + data.raw["recipe"]["bbr-rail-wood"].ingredients = {{"rail",1},{"wood",5}} + data.raw["recipe"]["bbr-rail-iron"].ingredients = {{"rail",1},{"iron-plate",5}} + data.raw["recipe"]["bbr-rail-brick"].ingredients = {{"rail",1},{"stone-brick",5}} +else + data.raw["recipe"]["bbr-rail-wood"].ingredients = {{"rail",1},{"wood",1}} + data.raw["recipe"]["bbr-rail-iron"].ingredients = {{"rail",1},{"iron-plate",1}} + data.raw["recipe"]["bbr-rail-brick"].ingredients = {{"rail",1},{"stone-brick",1}} +end \ No newline at end of file diff --git a/info.json b/info.json new file mode 100644 index 0000000..14c2d2d --- /dev/null +++ b/info.json @@ -0,0 +1,12 @@ +{ + "name": "bbr-fix", + "version": "0.18.0", + "title": "Beautiful Bridge Railway - Recipe Fix", + "author": "Wyrrrd", + "factorio_version": "0.18", + "dependencies": [ + "base >= 0.18", + "beautiful_bridge_railway >= 0.18.1" + ], + "description": "Adds rails to recipes." +} \ No newline at end of file diff --git a/locale/de/strings.cfg b/locale/de/strings.cfg new file mode 100644 index 0000000..5dcaab9 --- /dev/null +++ b/locale/de/strings.cfg @@ -0,0 +1,5 @@ +[mod-description] +Autofilter=Fügt Schienen zu Rezepten hinzu. + +[mod-setting-name] +bbr_fix_expensive=Teure Rezepte \ No newline at end of file diff --git a/locale/en/strings.cfg b/locale/en/strings.cfg new file mode 100644 index 0000000..ac33ae7 --- /dev/null +++ b/locale/en/strings.cfg @@ -0,0 +1,5 @@ +[mod-description] +Autofilter=Adds rails to recipes. + +[mod-setting-name] +bbr_fix_expensive=Expensive recipes \ No newline at end of file diff --git a/settings.lua b/settings.lua new file mode 100644 index 0000000..1ec3ec6 --- /dev/null +++ b/settings.lua @@ -0,0 +1,8 @@ +data:extend({ + { + type = "bool-setting", + name = "bbr_fix_expensive", + default_value = "false", + setting_type = "startup", + }, +}) \ No newline at end of file diff --git a/thumbnail.png b/thumbnail.png new file mode 100644 index 0000000..efd6c8b Binary files /dev/null and b/thumbnail.png differ