mirror of
https://github.com/Wyrrrd/bbr-fix.git
synced 2026-07-06 21:16:50 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 034e43e75c | |||
| 0736ba8a78 | |||
| 14d8aa513a | |||
| e568e7fa69 |
@@ -1,4 +1,19 @@
|
|||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.18.3
|
||||||
|
Date: 2020-03-25
|
||||||
|
Changes:
|
||||||
|
- Updated thumbnail
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.18.2
|
||||||
|
Date: 2020-03-20
|
||||||
|
Changes:
|
||||||
|
- Replaced rail ingredient with dynamic recipe ingredients of rail recipe
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.18.1
|
||||||
|
Date: 2020-03-19
|
||||||
|
Changes:
|
||||||
|
- Fixed rail count
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.18.0
|
Version: 0.18.0
|
||||||
Date: 2020-03-19
|
Date: 2020-03-19
|
||||||
Features:
|
Features:
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
local base_recipe = {}
|
||||||
|
-- grab rail recipe ingredients except stone
|
||||||
|
for _,component in pairs(data.raw["recipe"]["rail"].ingredients) do
|
||||||
|
cname = component[1] or component["name"]
|
||||||
|
camount = component[2] or component["amount"]
|
||||||
|
if cname ~= "stone" then
|
||||||
|
table.insert(base_recipe,{cname,camount})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw["recipe"]["bbr-rail-wood"].ingredients = table.deepcopy(base_recipe)
|
||||||
|
data.raw["recipe"]["bbr-rail-iron"].ingredients = table.deepcopy(base_recipe)
|
||||||
|
data.raw["recipe"]["bbr-rail-brick"].ingredients = table.deepcopy(base_recipe)
|
||||||
|
|
||||||
|
if settings.startup["bbr_fix_expensive"].value then
|
||||||
|
table.insert(data.raw["recipe"]["bbr-rail-wood"].ingredients,{"wood",5})
|
||||||
|
table.insert(data.raw["recipe"]["bbr-rail-iron"].ingredients,{"iron-plate",5})
|
||||||
|
table.insert(data.raw["recipe"]["bbr-rail-brick"].ingredients,{"stone-brick",5})
|
||||||
|
else
|
||||||
|
table.insert(data.raw["recipe"]["bbr-rail-wood"].ingredients,{"wood",1})
|
||||||
|
table.insert(data.raw["recipe"]["bbr-rail-iron"].ingredients,{"iron-plate",1})
|
||||||
|
table.insert(data.raw["recipe"]["bbr-rail-brick"].ingredients,{"stone-brick",1})
|
||||||
|
end
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bbr-fix",
|
"name": "bbr-fix",
|
||||||
"version": "0.18.0",
|
"version": "0.18.3",
|
||||||
"title": "Beautiful Bridge Railway - Recipe Fix",
|
"title": "Beautiful Bridge Railway - Recipe Fix",
|
||||||
"author": "Wyrrrd",
|
"author": "Wyrrrd",
|
||||||
"factorio_version": "0.18",
|
"factorio_version": "0.18",
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 28 KiB |
Reference in New Issue
Block a user