forked from cacklingfiend/lignumis
		
	Add setting for wood on Fulgora and make Wooden Fulgora optional again
This commit is contained in:
		
							parent
							
								
									51e9682125
								
							
						
					
					
						commit
						dffaa99173
					
				
					 4 changed files with 25 additions and 2 deletions
				
			
		|  | @ -14,7 +14,6 @@ | ||||||
|         "bioprocessing-tab", |         "bioprocessing-tab", | ||||||
|         "cf-lib >= 0.0.8", |         "cf-lib >= 0.0.8", | ||||||
|         "flib", |         "flib", | ||||||
|         "fulgora-coralmium-agriculture", |  | ||||||
|         "InserterFuelLeech", |         "InserterFuelLeech", | ||||||
|         "lignumis-assets >= 1.0.3", |         "lignumis-assets >= 1.0.3", | ||||||
|         "mf-buildings >= 1.0.7", |         "mf-buildings >= 1.0.7", | ||||||
|  | @ -31,6 +30,7 @@ | ||||||
|         "?atan-nuclear-science", |         "?atan-nuclear-science", | ||||||
|         "?crushing-industry", |         "?crushing-industry", | ||||||
|         "?Diversitree", |         "?Diversitree", | ||||||
|  |         "?fulgora-coralmium-agriculture", | ||||||
|         "?gleba-reborn", |         "?gleba-reborn", | ||||||
|         "?hot-metals >= 1.1.0", |         "?hot-metals >= 1.1.0", | ||||||
|         "?lane-splitters", |         "?lane-splitters", | ||||||
|  |  | ||||||
|  | @ -178,6 +178,7 @@ lignumis-basic-circuit-board=Enable basic circuit board | ||||||
| lignumis-circuit-progression=Enable progressive circuit recipes | lignumis-circuit-progression=Enable progressive circuit recipes | ||||||
| lignumis-assembler-progression=Enable progressive assembler recipes | lignumis-assembler-progression=Enable progressive assembler recipes | ||||||
| lignumis-lumber-mill-more-recipes=Enable more recipes for the lumber mill | lignumis-lumber-mill-more-recipes=Enable more recipes for the lumber mill | ||||||
|  | lignumis-fulgora-wood=Add wood to Fulgora | ||||||
| 
 | 
 | ||||||
| [mod-setting-description] | [mod-setting-description] | ||||||
| lignumis-belt-progression=Yellow belts will require wood belts to craft. | lignumis-belt-progression=Yellow belts will require wood belts to craft. | ||||||
|  | @ -188,6 +189,7 @@ lignumis-basic-circuit-board=Recipes use basic circuit boards instead of gold ca | ||||||
| lignumis-circuit-progression=Electric circuits will require basic circuit boards to craft. | lignumis-circuit-progression=Electric circuits will require basic circuit boards to craft. | ||||||
| lignumis-assembler-progression=Assembling machine 1 will require burner assembling machines to craft. | lignumis-assembler-progression=Assembling machine 1 will require burner assembling machines to craft. | ||||||
| lignumis-lumber-mill-more-recipes=The lumber mill can also craft basic turrets, burner assemblers and burner inserters. Improves balancing wood usage when all progressive recipes are enabled and helps with marathon games. | lignumis-lumber-mill-more-recipes=The lumber mill can also craft basic turrets, burner assemblers and burner inserters. Improves balancing wood usage when all progressive recipes are enabled and helps with marathon games. | ||||||
|  | lignumis-fulgora-wood=This adds wooden gear wheels to scrap recycling as the main source of wood. Disable this is you have a different source of wood or import everything from other planets. | ||||||
| 
 | 
 | ||||||
| [autoplace-control-names] | [autoplace-control-names] | ||||||
| lignumis_enemy_base=Lignumis enemy bases | lignumis_enemy_base=Lignumis enemy bases | ||||||
|  |  | ||||||
|  | @ -311,4 +311,18 @@ data.raw["equipment-grid"]["medium-equipment-grid"].height = 8 | ||||||
| 
 | 
 | ||||||
| local nauvis = data.raw.planet["nauvis"] | local nauvis = data.raw.planet["nauvis"] | ||||||
| nauvis.flags = nauvis.flags or {} | nauvis.flags = nauvis.flags or {} | ||||||
| table.insert(nauvis.flags, "always-show") | table.insert(nauvis.flags, "always-show") | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | -- Fulgora changes | ||||||
|  | 
 | ||||||
|  | if settings.startup["lignumis-fulgora-wood"].value then | ||||||
|  |     local recycling = data.raw.recipe["scrap-recycling"] | ||||||
|  |     table.insert(recycling.results, { type = "item", name = "wooden-gear-wheel", amount = 1, probability = 0.2 }) | ||||||
|  |     local recycling_result_count = table.count(recycling.results) | ||||||
|  | 
 | ||||||
|  |     local recycler = data.raw.furnace["recycler"] | ||||||
|  |     if recycler.result_inventory_size < recycling_result_count then | ||||||
|  |         recycler.result_inventory_size = recycling_result_count | ||||||
|  |     end | ||||||
|  | end | ||||||
|  | @ -55,6 +55,13 @@ data:extend({ | ||||||
|         default_value = false, |         default_value = false, | ||||||
|         order = "h" |         order = "h" | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |         type = "bool-setting", | ||||||
|  |         name = "lignumis-fulgora-wood", | ||||||
|  |         setting_type = "startup", | ||||||
|  |         default_value = true, | ||||||
|  |         order = "i" | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|         type = "string-setting", |         type = "string-setting", | ||||||
|         name = "lignumis-second-planet", |         name = "lignumis-second-planet", | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann