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
				
			
		| 
						 | 
					@ -83,8 +83,6 @@ If your modded lab is special and it should not support these science packs, use
 | 
				
			||||||
- Improve transition to Nauvis a bit more
 | 
					- Improve transition to Nauvis a bit more
 | 
				
			||||||
- Add late-game recipe for oil from wood pulp
 | 
					- Add late-game recipe for oil from wood pulp
 | 
				
			||||||
- Replace usage of gold cable with basic circuits made of wood and gold cable, add option for progressive circuit recipes and add recipe prod research
 | 
					- Replace usage of gold cable with basic circuits made of wood and gold cable, add option for progressive circuit recipes and add recipe prod research
 | 
				
			||||||
- Compatibility with [Amator Phasma's Coal & Steam (forked)](https://mods.factorio.com/mod/apm_power_ldinc)
 | 
					 | 
				
			||||||
- Compatibility with [AAI Industry](https://mods.factorio.com/mod/aai-industry)
 | 
					 | 
				
			||||||
- Compatibility with [On Wayward Seas](https://mods.factorio.com/mod/wayward-seas)
 | 
					- Compatibility with [On Wayward Seas](https://mods.factorio.com/mod/wayward-seas)
 | 
				
			||||||
- Compatibility with [Planet Picker](https://mods.factorio.com/mod/planet-picker)
 | 
					- Compatibility with [Planet Picker](https://mods.factorio.com/mod/planet-picker)
 | 
				
			||||||
- Compatibility with [Noble Metals](https://mods.factorio.com/mod/bzgold) once it's updated
 | 
					- Compatibility with [Noble Metals](https://mods.factorio.com/mod/bzgold) once it's updated
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,2 +1,3 @@
 | 
				
			||||||
require("prototypes/content/updates")
 | 
					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",
 | 
					        "?hot-metals >= 1.1.0",
 | 
				
			||||||
        "?wood-military >= 2.3.3",
 | 
					        "?wood-military >= 2.3.3",
 | 
				
			||||||
        "?metal-and-stars",
 | 
					        "?metal-and-stars",
 | 
				
			||||||
 | 
					        "?aai-industry",
 | 
				
			||||||
        "!apm_power_ldinc",
 | 
					        "!apm_power_ldinc",
 | 
				
			||||||
        "!wood-logistics",
 | 
					        "!wood-logistics",
 | 
				
			||||||
        "!early-agriculture",
 | 
					        "!early-agriculture",
 | 
				
			||||||
        "!wood-universe-modpack",
 | 
					        "!wood-universe-modpack"
 | 
				
			||||||
        "!aai-industry"
 | 
					 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
							
								
								
									
										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,
 | 
					        default_value = true,
 | 
				
			||||||
        order = "b"
 | 
					        order = "b"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        type = "bool-setting",
 | 
				
			||||||
 | 
					        name = "lignumis-ammo-progression",
 | 
				
			||||||
 | 
					        setting_type = "startup",
 | 
				
			||||||
 | 
					        default_value = true,
 | 
				
			||||||
 | 
					        order = "c"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if not mods["wood-military"] then
 | 
					if mods["aai-industry"] then
 | 
				
			||||||
    data:extend({
 | 
					    data.raw["bool-setting"]["lignumis-inserter-progression"].forced_value = false
 | 
				
			||||||
        {
 | 
					    data.raw["bool-setting"]["lignumis-inserter-progression"].hidden = true
 | 
				
			||||||
            type = "bool-setting",
 | 
					 | 
				
			||||||
            name = "lignumis-ammo-progression",
 | 
					 | 
				
			||||||
            setting_type = "startup",
 | 
					 | 
				
			||||||
            default_value = true,
 | 
					 | 
				
			||||||
            order = "c"
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
end
 | 
					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