forked from cacklingfiend/lignumis
Fix initial fuel for all burner inserters
This commit is contained in:
parent
517aa49179
commit
c0dd8e69be
3 changed files with 17 additions and 13 deletions
|
@ -39,6 +39,7 @@ Unsorted
|
|||
- Integrate [PlanetsLib](https://mods.factorio.com/mod/PlanetsLib)
|
||||
- Compatibility with hot metals
|
||||
- Compatibility with all wood mods from SafTheLamb
|
||||
- Compatibility with [Amator Phasma's Coal & Steam (forked)](https://mods.factorio.com/mod/apm_power_ldinc)
|
||||
- Compatibility with [Noble Metals](https://mods.factorio.com/mod/bzgold) once it's updated
|
||||
- Optimize images
|
||||
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
local blacklist = {
|
||||
--"burner-assembling-machine",
|
||||
--"stone-furnace",
|
||||
--"desiccation-furnace",
|
||||
--"lumber-mill"
|
||||
}
|
||||
data.raw.item["wood"].fuel_category = "wood"
|
||||
data.raw.item["lumber"].fuel_category = "wood"
|
||||
data.raw.item["tree-seed"].fuel_category = "wood"
|
||||
data.raw.item["wooden-wall"].fuel_category = "wood"
|
||||
|
||||
-- Update burner inserters initial fuel
|
||||
for _, inserter in pairs(data.raw["inserter"]) do
|
||||
if inserter.energy_source and inserter.energy_source.initial_fuel == "wood" then
|
||||
inserter.energy_source.initial_fuel = "coal"
|
||||
end
|
||||
end
|
||||
|
||||
-- Update energy source fuel categories for buildings that should still use wood as fuel
|
||||
|
||||
local blacklist = {}
|
||||
|
||||
function update_fuel_categories(t)
|
||||
for _, entity in pairs(t) do
|
||||
|
@ -18,10 +27,5 @@ function update_fuel_categories(t)
|
|||
end
|
||||
end
|
||||
|
||||
data.raw.item["wood"].fuel_category = "wood"
|
||||
data.raw.item["lumber"].fuel_category = "wood"
|
||||
data.raw.item["tree-seed"].fuel_category = "wood"
|
||||
data.raw.item["wooden-wall"].fuel_category = "wood"
|
||||
|
||||
-- Add more if incompatibilities arise
|
||||
update_fuel_categories(data.raw["boiler"])
|
||||
update_fuel_categories(data.raw["boiler"])
|
||||
|
|
|
@ -29,7 +29,6 @@ burner_inserter.hand_base_picture.filename = "__lignumis__/graphics/entity/burne
|
|||
burner_inserter.hand_closed_picture.filename = "__lignumis__/graphics/entity/burner-inserter-hand-closed.png"
|
||||
burner_inserter.hand_open_picture.filename = "__lignumis__/graphics/entity/burner-inserter-hand-open.png"
|
||||
burner_inserter.platform_picture.sheet.filename = "__lignumis__/graphics/entity/burner-inserter-platform.png"
|
||||
burner_inserter.energy_source.initial_fuel = "coal"
|
||||
burner_inserter.energy_source.initial_fuel_percent = 0.15
|
||||
|
||||
data.raw.item["burner-inserter"].icon = "__lignumis__/graphics/icons/burner-inserter.png"
|
||||
|
|
Loading…
Add table
Reference in a new issue