forked from cacklingfiend/lignumis
		
	Add compatibility with AAI Industry
This commit is contained in:
		
							parent
							
								
									6f38b60694
								
							
						
					
					
						commit
						eef791aad3
					
				
					 6 changed files with 39 additions and 15 deletions
				
			
		|  | @ -1,2 +1,3 @@ | |||
| require("prototypes/content/updates") | ||||
| require("prototypes/integrations/updates") | ||||
| require("prototypes/integrations/updates") | ||||
| require("prototypes/compatibility/updates") | ||||
|  | @ -21,10 +21,10 @@ | |||
|         "?hot-metals >= 1.1.0", | ||||
|         "?wood-military >= 2.3.3", | ||||
|         "?metal-and-stars", | ||||
|         "?aai-industry", | ||||
|         "!apm_power_ldinc", | ||||
|         "!wood-logistics", | ||||
|         "!early-agriculture", | ||||
|         "!wood-universe-modpack", | ||||
|         "!aai-industry" | ||||
|         "!wood-universe-modpack" | ||||
|     ] | ||||
| } | ||||
							
								
								
									
										19
									
								
								lignumis/prototypes/compatibility/aai-industry.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								lignumis/prototypes/compatibility/aai-industry.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| local Technology = require("__cf-lib__/data/Technology") | ||||
| 
 | ||||
| if not mods["aai-industry"] then return end | ||||
| 
 | ||||
| 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") | ||||
| 
 | ||||
| data.raw.recipe["burner-inserter"].enabled = true | ||||
| data.raw.recipe["burner-mining-drill"].enabled = true | ||||
| 
 | ||||
| local burner_automation = Technology:new("burner-automation") | ||||
| burner_automation:addRecipe("burner-assembling-machine") | ||||
| 
 | ||||
| local wall = data.raw["wall"]["concrete-wall"] | ||||
| wall.emissions_per_second = wall.emissions_per_second or {} | ||||
| wall.emissions_per_second.noise = -30 / 60 | ||||
							
								
								
									
										1
									
								
								lignumis/prototypes/compatibility/updates.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								lignumis/prototypes/compatibility/updates.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| require("aai-industry") | ||||
|  | @ -13,16 +13,21 @@ data:extend({ | |||
|         default_value = true, | ||||
|         order = "b" | ||||
|     }, | ||||
|     { | ||||
|         type = "bool-setting", | ||||
|         name = "lignumis-ammo-progression", | ||||
|         setting_type = "startup", | ||||
|         default_value = true, | ||||
|         order = "c" | ||||
|     } | ||||
| }) | ||||
| 
 | ||||
| if not mods["wood-military"] then | ||||
|     data:extend({ | ||||
|         { | ||||
|             type = "bool-setting", | ||||
|             name = "lignumis-ammo-progression", | ||||
|             setting_type = "startup", | ||||
|             default_value = true, | ||||
|             order = "c" | ||||
|         } | ||||
|     }) | ||||
| if mods["aai-industry"] then | ||||
|     data.raw["bool-setting"]["lignumis-inserter-progression"].forced_value = false | ||||
|     data.raw["bool-setting"]["lignumis-inserter-progression"].hidden = true | ||||
| end | ||||
| 
 | ||||
| if mods["wood-military"] then | ||||
|     data.raw["bool-setting"]["lignumis-ammo-progression"].forced_value = false | ||||
|     data.raw["bool-setting"]["lignumis-ammo-progression"].hidden = true | ||||
| end | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann