forked from cacklingfiend/lignumis
		
	Add lignumis_skip_science_packs as a way to prevent science packs being added to technologies
This commit is contained in:
		
							parent
							
								
									0f63a2548d
								
							
						
					
					
						commit
						6f01daf3c4
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -74,6 +74,8 @@ These technologies are skipped even if they are matches according to above lists
 | 
			
		|||
Use this list if you want to have wood and steam science packs added to most of your technologies, but skip some.
 | 
			
		||||
Lignumis uses this list for technologies that match the whitelist but are required for coming back to Lignumis in order to create the science pack export.
 | 
			
		||||
 | 
			
		||||
As an alternative, you can add `lignumis_skip_science_packs = true` to any technology.
 | 
			
		||||
 | 
			
		||||
#### `lab_blacklist`
 | 
			
		||||
 | 
			
		||||
Don't touch inputs for labs in this list.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
-- Add wood and steam science packs as ingredients to technologies that require Nauvis science packs.
 | 
			
		||||
for _, technology in pairs(data.raw.technology) do
 | 
			
		||||
    if technology.unit and technology.unit.ingredients and not table.contains(Lignumis.science_blacklist, technology.name) then
 | 
			
		||||
    if not technology.lignumis_skip_science_packs and technology.unit and technology.unit.ingredients and not table.contains(Lignumis.science_blacklist, technology.name) then
 | 
			
		||||
        local ingredients = technology.unit.ingredients
 | 
			
		||||
        local noMatches = table.filter(ingredients, function(ingredient)
 | 
			
		||||
            return table.contains(Lignumis.science_pack_blacklist, ingredient[1])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue