forked from cacklingfiend/lignumis
		
	Any planet start: Fix startup crash
This commit is contained in:
		
							parent
							
								
									d41cc3c822
								
							
						
					
					
						commit
						4ed26b5b9d
					
				
					 3 changed files with 14 additions and 7 deletions
				
			
		|  | @ -5,10 +5,12 @@ if not mods["aai-industry"] then return end | |||
| data.raw.recipe["wood-science-pack"].allow_hand_crafting = true | ||||
| 
 | ||||
| local burner_mechanics = Technology:new("burner-mechanics") | ||||
| burner_mechanics:addPrerequisite("iron-processing") | ||||
| burner_mechanics:removeRecipe("burner-inserter") | ||||
| burner_mechanics:removeRecipe("burner-mining-drill") | ||||
| burner_mechanics:removeRecipe("burner-assembling-machine") | ||||
| if not mods["planet-picker"] and not mods["any-planet-start"] then | ||||
|     burner_mechanics:addPrerequisite("iron-processing") | ||||
| end | ||||
| 
 | ||||
| data.raw.recipe["burner-inserter"].enabled = true | ||||
| data.raw.recipe["burner-mining-drill"].enabled = true | ||||
|  |  | |||
|  | @ -51,7 +51,11 @@ data:extend({ | |||
|     } | ||||
| }) | ||||
| 
 | ||||
| if not mods["planet-picker"] and not mods["any-planet-start"] then | ||||
|     Technology:new("copper-processing"):addRecipe("basic-circuit-board-copper") | ||||
| else | ||||
|     Technology:new("electronics"):addRecipe("basic-circuit-board-copper") | ||||
| end | ||||
| 
 | ||||
| if settings.startup["lignumis-circuit-progression"].value then | ||||
|     table.insert(data.raw.recipe["electronic-circuit"].ingredients, { type = "item", name = "basic-circuit-board", amount = 1 }) | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| local item_sounds = require("__base__.prototypes.item_sounds") | ||||
| local Technology = require("__cf-lib__/data/Technology") | ||||
| 
 | ||||
| local basic_circuit_board = settings.startup["lignumis-basic-circuit-board"].value | ||||
| local gfx = Lignumis.graphics .. "entity/burner-agricultural-tower/" | ||||
|  | @ -131,8 +132,8 @@ data:extend({ | |||
|     } | ||||
| }) | ||||
| 
 | ||||
| table.insert(data.raw.technology["copper-processing"].effects, { | ||||
|     type = "unlock-recipe", | ||||
|     recipe = "burner-agricultural-tower-copper" | ||||
| }) | ||||
| 
 | ||||
| if not mods["planet-picker"] and not mods["any-planet-start"] then | ||||
|     Technology:new("copper-processing"):addRecipe("burner-agricultural-tower-copper") | ||||
| else | ||||
|     Technology:new("electronics"):addRecipe("burner-agricultural-tower-copper") | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann