1
0
mirror of https://github.com/Wyrrrd/bbr-fix.git synced 2026-04-23 22:23:17 +02:00

Changed mod setting to int

This commit is contained in:
Wyrrrd
2021-09-06 23:28:10 +02:00
parent 13b8f9ef5c
commit db9a5ccdb3
9 changed files with 50 additions and 13 deletions
+6 -4
View File
@@ -12,10 +12,12 @@ 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})
multiplier = settings.startup["bbr-fix-cost"].value
if multiplier>0 then
table.insert(data.raw["recipe"]["bbr-rail-wood"].ingredients,{"wood",multiplier})
table.insert(data.raw["recipe"]["bbr-rail-iron"].ingredients,{"iron-plate",multiplier})
table.insert(data.raw["recipe"]["bbr-rail-brick"].ingredients,{"stone-brick",multiplier})
else
table.insert(data.raw["recipe"]["bbr-rail-wood"].ingredients,{"wood",1})
table.insert(data.raw["recipe"]["bbr-rail-iron"].ingredients,{"iron-plate",1})