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
				
			
		|  | @ -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
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann