forked from cacklingfiend/lignumis
		
	Any Planet Start: Fix planet discovery being disabled
This commit is contained in:
		
							parent
							
								
									596077912f
								
							
						
					
					
						commit
						90a59a7f47
					
				
					 2 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								lignumis/prototypes/compatibility/any-planet-start-final.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								lignumis/prototypes/compatibility/any-planet-start-final.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| local Technology = require("__cf-lib__/data/Technology") | ||||
| 
 | ||||
| if not mods["any-planet-start"] then return end | ||||
| 
 | ||||
| local target_planet = settings.startup["aps-planet"].value | ||||
| 
 | ||||
| if target_planet == "none" or target_planet == "nauvis" then return end | ||||
| 
 | ||||
| -- Switch planet discovery technology to the new planet | ||||
| Technology:new("planet-discovery-" .. target_planet) | ||||
|     :assign({ | ||||
|         enabled = true, | ||||
|         hidden = false | ||||
|     }) | ||||
|  | @ -1,4 +1,5 @@ | |||
| require("aai-loaders-final") | ||||
| require("any-planet-start-final") | ||||
| 
 | ||||
| if not data.raw.technology["legendary-quality"] then | ||||
|     table.removeValue(data.raw.technology["quality-assembler"].prerequisites, "legendary-quality") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann