Double Furnace

by raid

Add Double Furnaces, which smelt iron ore directly to steel.

Content
6 days ago
0.13 - 2.0
11.2K
Manufacturing

i 0.17 Add compatibility to Bob's Plates cheaper Steel

5 years ago

Bob's Plates has a setting that allows cheaper Steel Plate (2 Iron=1 Steel, instead of 5)

Can you add compatibility for that?

The setting is "bobmods-plates-cheapersteel"

Relevant Code:

-- Reduce cost of Steel
if settings.startup["bobmods-plates-cheapersteel"].value == true then
data.raw.recipe["steel-plate"].normal.energy_required = 7
data.raw.recipe["steel-plate"].normal.ingredients = {{"iron-plate", 2}}
data.raw.recipe["steel-plate"].expensive.energy_required = 14
data.raw.recipe["steel-plate"].expensive.ingredients = {{"iron-plate", 4}}

if data.raw.recipe["metallurgy-steel-plate"] then
if data.raw.fluid["molten-carbonated-iron"] then
data.raw.recipe["metallurgy-steel-plate"].energy_required = 0.4
data.raw.recipe["metallurgy-steel-plate"].ingredients = {{type="fluid", name="molten-carbonated-iron", amount=15},{type="fluid", name="water", amount=20}}
end
end
end

5 years ago

Modified/tested myself.

Adding:
if bobmods.plates and settings.startup["bobmods-plates-cheapersteel"].value == true then
data.raw.recipe["double-iron"].energy_required = 25
data.raw.recipe["double-iron"].ingredients = {{"iron-ore", 2}}
end

to data-updates.lua in your mod works correctly.

5 years ago

Since you have most code figured out, would it be possible for you to submit a pull request on GitHub?

5 years ago

Done

4 years ago

Incredibly sorry for being that late.
I trust you on this one, merged it for the next version.

New response