forked from cacklingfiend/lignumis
		
	Add wood fuel
This commit is contained in:
		
							parent
							
								
									72a9cf4a2d
								
							
						
					
					
						commit
						f17f64c3be
					
				
					 11 changed files with 47 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -20,8 +20,6 @@ The following mods can be a great addition for this mod:
 | 
			
		|||
 | 
			
		||||
Sorted by priority
 | 
			
		||||
 | 
			
		||||
- Move wood and lumber to its own fuel category
 | 
			
		||||
- Make seeds burnable again
 | 
			
		||||
- Add recipe for moist stromatolite remnants for regular furnace
 | 
			
		||||
- Make mod "Wooden logistics" optional
 | 
			
		||||
- Improve start on Nauvis
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@ Version: 0.0.4
 | 
			
		|||
Date: 06.01.2025
 | 
			
		||||
  Changes:
 | 
			
		||||
    - The mod "Burner Leech Fork" is removed as a dependency and listed as optional addition in the description
 | 
			
		||||
    - Add "wood fuel" category so burner entities don't use trees, lumber and seeds as fuel
 | 
			
		||||
---------------------------------------------------------------------------------------------------
 | 
			
		||||
Version: 0.0.3
 | 
			
		||||
Date: 06.01.2025
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								lignumis/data-updates.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								lignumis/data-updates.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
require("prototypes/content/updates")
 | 
			
		||||
| 
						 | 
				
			
			@ -81,5 +81,8 @@ basic-construction-robotics-copper=Basic construction robotics (copper)
 | 
			
		|||
wood-floor=Wood floor
 | 
			
		||||
natural-gold-soil=Gold-infused soil
 | 
			
		||||
 | 
			
		||||
[fuel-category-name]
 | 
			
		||||
wood=Wood fuel
 | 
			
		||||
 | 
			
		||||
[lignumis]
 | 
			
		||||
start-new-game=Lignumis is meant to be played in a fresh game as it extends the early game before Nauvis.
 | 
			
		||||
| 
						 | 
				
			
			@ -18,8 +18,8 @@ long_handed_inserter.energy_source = {
 | 
			
		|||
    fuel_categories = { "chemical" },
 | 
			
		||||
    effectivity = 1,
 | 
			
		||||
    fuel_inventory_size = 1,
 | 
			
		||||
    initial_fuel = "wood",
 | 
			
		||||
    initial_fuel_percent = 0.5,
 | 
			
		||||
    initial_fuel = "coal",
 | 
			
		||||
    initial_fuel_percent = 0.25,
 | 
			
		||||
    light_flicker = { color = { 0, 0, 0 } },
 | 
			
		||||
    smoke = {
 | 
			
		||||
        {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,6 +17,7 @@ require("steam-science")
 | 
			
		|||
require("wood-liquefaction")
 | 
			
		||||
require("wooden-rocket-silo")
 | 
			
		||||
require("basic-gun-turret")
 | 
			
		||||
require("fuel-category")
 | 
			
		||||
require("basic-construction-robots")
 | 
			
		||||
 | 
			
		||||
require("noise")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										27
									
								
								lignumis/prototypes/content/fuel-category-updates.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								lignumis/prototypes/content/fuel-category-updates.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,27 @@
 | 
			
		|||
local blacklist = {
 | 
			
		||||
    --"burner-assembling-machine",
 | 
			
		||||
    --"stone-furnace",
 | 
			
		||||
    --"desiccation-furnace",
 | 
			
		||||
    --"lumber-mill"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function update_fuel_categories(t)
 | 
			
		||||
    for _, entity in pairs(t) do
 | 
			
		||||
        if entity.energy_source
 | 
			
		||||
            and entity.energy_source.type == "burner"
 | 
			
		||||
            and not table.contains(blacklist, entity.name)
 | 
			
		||||
            and entity.energy_source.fuel_categories
 | 
			
		||||
            and table.contains(entity.energy_source.fuel_categories, "chemical")
 | 
			
		||||
        then
 | 
			
		||||
            table.insert(entity.energy_source.fuel_categories, "wood")
 | 
			
		||||
        end
 | 
			
		||||
    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"])
 | 
			
		||||
							
								
								
									
										6
									
								
								lignumis/prototypes/content/fuel-category.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								lignumis/prototypes/content/fuel-category.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
data:extend({
 | 
			
		||||
    {
 | 
			
		||||
        type = "fuel-category",
 | 
			
		||||
        name = "wood"
 | 
			
		||||
    }
 | 
			
		||||
})
 | 
			
		||||
| 
						 | 
				
			
			@ -184,7 +184,9 @@ local seed = {
 | 
			
		|||
    drop_sound = space_age_item_sounds.agriculture_inventory_move,
 | 
			
		||||
    stack_size = 10,
 | 
			
		||||
    default_import_location = "lignumis",
 | 
			
		||||
    weight = 10 * kg
 | 
			
		||||
    weight = 10 * kg,
 | 
			
		||||
    fuel_category = "wood",
 | 
			
		||||
    fuel_value = "100kJ"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local bacteria = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								lignumis/prototypes/content/updates.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								lignumis/prototypes/content/updates.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
require("fuel-category-updates")
 | 
			
		||||
| 
						 | 
				
			
			@ -29,6 +29,8 @@ 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"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -44,10 +46,6 @@ local wood_processing = data.raw.recipe["wood-processing"]
 | 
			
		|||
wood_processing.ingredients[1].amount = 1
 | 
			
		||||
wood_processing.icon = data.raw.item["tree-seed"].icon
 | 
			
		||||
 | 
			
		||||
local tree_seed = data.raw.item["tree-seed"]
 | 
			
		||||
tree_seed.fuel_category = nil
 | 
			
		||||
tree_seed.fuel_value = nil
 | 
			
		||||
 | 
			
		||||
for _, tree in pairs(data.raw.tree) do
 | 
			
		||||
    tree.minable.result = nil
 | 
			
		||||
    tree.minable.count = nil
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue