forked from cacklingfiend/lignumis
		
	Add setting for infinite astroponics productivity research
This commit is contained in:
		
							parent
							
								
									ee9eb8faf1
								
							
						
					
					
						commit
						9bf4a5d6ff
					
				
					 3 changed files with 56 additions and 36 deletions
				
			
		|  | @ -190,6 +190,7 @@ lignumis-early-robots=Even earlier personal robots | |||
| lignumis-vanilla-lab=Keep vanilla lab recipe | ||||
| lignumis-double-rocket=Double provisional rocket cargo capacity | ||||
| lignumis-sciences-spoil=Lignumis science packs spoil | ||||
| lignumis-infinite-astroponics-productivity-research=Infinite productivity research for Astroponics | ||||
| 
 | ||||
| [mod-setting-description] | ||||
| lignumis-belt-progression=Yellow belts will require wood belts to craft. | ||||
|  | @ -205,6 +206,7 @@ lignumis-early-robots=Personal robots are moved from steam to wood science and a | |||
| lignumis-vanilla-lab=Moves the transport belt recipe to Iron processing so the lab can be crafted with the original recipe without requiring to research logistics. | ||||
| lignumis-double-rocket=The provisional rocket can carry 80 instead of 40 slots. | ||||
| lignumis-sciences-spoil=Both wood science packs and steam science packs spoil for additional difficulty. | ||||
| lignumis-infinite-astroponics-productivity-research=Productivity research for Astroponics is infinite instead of being capped to level 5 (which results in 50% productivity). | ||||
| 
 | ||||
| [autoplace-control-names] | ||||
| lignumis_enemy_base=Lignumis enemy bases | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| data:extend({ | ||||
|     { | ||||
| local infinite = settings.startup["lignumis-infinite-astroponics-productivity-research"].value | ||||
| 
 | ||||
| local base_levels = { | ||||
|     type = "technology", | ||||
|     name = "astroponics-productivity", | ||||
|     icons = { | ||||
|  | @ -34,5 +35,15 @@ data:extend({ | |||
|         }, | ||||
|         time = 60 | ||||
|     } | ||||
|     } | ||||
| }) | ||||
| } | ||||
| data:extend({ base_levels }) | ||||
| 
 | ||||
| if infinite then | ||||
|     local infinite_levels = table.deepcopy(base_levels) | ||||
|     infinite_levels.name = "astroponics-productivity-6" | ||||
|     infinite_levels.max_level = "infinite" | ||||
|     infinite_levels.unit.count_formula = "2^(L-6)*1500" | ||||
|     table.insert(infinite_levels.unit.ingredients, { "agricultural-science-pack", 1 }) | ||||
|     infinite_levels.prerequisites = { "astroponics-productivity", "agricultural-science-pack" } | ||||
|     data:extend({ infinite_levels }) | ||||
| end | ||||
|  |  | |||
|  | @ -90,6 +90,13 @@ data:extend({ | |||
|         default_value = false, | ||||
|         order = "m" | ||||
|     }, | ||||
|     { | ||||
|         type = "bool-setting", | ||||
|         name = "lignumis-infinite-astroponics-productivity-research", | ||||
|         setting_type = "startup", | ||||
|         default_value = false, | ||||
|         order = "n" | ||||
|     }, | ||||
|     { | ||||
|         type = "string-setting", | ||||
|         name = "lignumis-second-planet", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann