forked from cacklingfiend/lignumis
		
	Improve transition to Nauvis
This commit is contained in:
		
							parent
							
								
									64cc5ebf3c
								
							
						
					
					
						commit
						b024d89336
					
				
					 8 changed files with 85 additions and 10 deletions
				
			
		|  | @ -21,6 +21,7 @@ The following mods can be a great addition for this mod: | |||
| Sorted by priority | ||||
| 
 | ||||
| - Improve start on Nauvis | ||||
| - Add repair pack | ||||
| - Balance pollution (noise) | ||||
| - Tweak enemies + warfare (add damage research) | ||||
| - Add vent for steam | ||||
|  |  | |||
|  | @ -54,7 +54,7 @@ lumber=Lumber | |||
| 
 | ||||
| [item-description] | ||||
| wooden-wall=Use wooden walls to protect your base from the locals and to reduce noise levels. | ||||
| destination-nauvis=Insert this item into a rocket to travel to Nauvis. Notice that you won't come back for a while. | ||||
| destination-nauvis=Insert this item into a rocket to travel to Nauvis. Notice that you won`t come back for a while.\n__REMARK_COLOR_BEGIN__ALPHA notice: Clear your inventory before leaving as the current transition to Nauvis is a temporary implementation.__REMARK_COLOR_END__ | ||||
| 
 | ||||
| [fluid-name] | ||||
| wood-pulp=Wood pulp | ||||
|  | @ -87,6 +87,11 @@ basic-gun-turret=Basic gun turret | |||
| basic-construction-robotics-gold=Basic construction robotics (gold) | ||||
| basic-construction-robotics-copper=Basic construction robotics (copper) | ||||
| wood-logistics=Wood logistics | ||||
| automation=Electric automation | ||||
| tree-seeding=Basic agriculture | ||||
| 
 | ||||
| [technology-description] | ||||
| tree-seeding=[entity=burner-agricultural-tower] allows planting seeds into seedable soil. Planted seeds grow into trees that can be harvested.\n[entity=tree-plant] can grow on grass and dirt. [entity=gold-stromatolite] can grow on [tile=natural-gold-soil]. | ||||
| 
 | ||||
| [tile-name] | ||||
| wood-floor=Wood floor | ||||
|  | @ -95,5 +100,13 @@ natural-gold-soil=Gold-infused soil | |||
| [fuel-category-name] | ||||
| wood=Wood fuel | ||||
| 
 | ||||
| [mod-setting-name] | ||||
| lignumis-belt-progression=Enable progressive belt recipes | ||||
| lignumis-inserter-progression=Enable progressive inserter recipes | ||||
| 
 | ||||
| [mod-setting-description] | ||||
| lignumis-belt-progression=Yellow belts will require wood belts to craft. | ||||
| lignumis-inserter-progression=Yellow electric inserter will require burner inserter to craft. | ||||
| 
 | ||||
| [lignumis] | ||||
| start-new-game=Lignumis is meant to be played in a fresh game as it extends the early game before Nauvis. | ||||
|  | @ -47,7 +47,8 @@ local furnace_recipe = { | |||
|         { type = "item", name = "stone-furnace", amount = 1 }, | ||||
|         { type = "item", name = "gold-pipe",     amount = 2 } | ||||
|     }, | ||||
|     results = { { type = "item", name = "desiccation-furnace", amount = 1 } } | ||||
|     results = { { type = "item", name = "desiccation-furnace", amount = 1 } }, | ||||
|     enabled = false | ||||
| } | ||||
| 
 | ||||
| data:extend({ | ||||
|  |  | |||
|  | @ -115,7 +115,9 @@ data:extend({ | |||
|         researching_speed = 0.5, | ||||
|         inputs = { | ||||
|             "wood-science-pack", | ||||
|             "steam-science-pack" | ||||
|             "steam-science-pack", | ||||
|             "automation-science-pack", | ||||
|             "logistic-science-pack" | ||||
|         }, | ||||
|         icons_positioning = { | ||||
|             { inventory_index = defines.inventory.lab_modules, shift = { 0, 0.9 } }, | ||||
|  |  | |||
|  | @ -62,21 +62,47 @@ table.insert(data.raw["assembling-machine"]["assembling-machine-2"].crafting_cat | |||
| table.insert(data.raw["assembling-machine"]["assembling-machine-3"].crafting_categories, "wood-processing-or-assembling") | ||||
| 
 | ||||
| 
 | ||||
| -- Disable iron and copper recipes | ||||
| -- Disable vanilla early game recipes | ||||
| 
 | ||||
| data.raw.recipe["iron-plate"].enabled = false | ||||
| data.raw.recipe["iron-gear-wheel"].enabled = false | ||||
| data.raw.recipe["iron-chest"].enabled = false | ||||
| data.raw.recipe["copper-plate"].enabled = false | ||||
| data.raw.recipe["copper-cable"].enabled = false | ||||
| data.raw.recipe["transport-belt"].enabled = false | ||||
| 
 | ||||
| 
 | ||||
| -- Progressive recipes | ||||
| 
 | ||||
| if settings.startup["lignumis-belt-progression"].value then | ||||
|     table.insert( | ||||
|         data.raw.recipe["transport-belt"].ingredients, | ||||
|         { type = "item", name = "wood-transport-belt", amount = 2 } | ||||
|     ) | ||||
|     table.insert( | ||||
|         data.raw.recipe["underground-belt"].ingredients, | ||||
|         { type = "item", name = "wood-underground-belt", amount = 2 } | ||||
|     ) | ||||
|     table.insert( | ||||
|         data.raw.recipe["splitter"].ingredients, | ||||
|         { type = "item", name = "wood-splitter", amount = 1 } | ||||
|     ) | ||||
| end | ||||
| 
 | ||||
| if settings.startup["lignumis-inserter-progression"].value then | ||||
|     table.insert( | ||||
|         data.raw.recipe["inserter"].ingredients, | ||||
|         { type = "item", name = "burner-inserter", amount = 1 } | ||||
|     ) | ||||
| end | ||||
| 
 | ||||
| 
 | ||||
| -- Adjust vanilla technologies | ||||
| 
 | ||||
| local automation_technology = data.raw.technology["automation-science-pack"] | ||||
| automation_technology.prerequisites = { "planet-discovery-nauvis" } | ||||
| automation_technology.research_trigger = nil | ||||
| automation_technology.unit = { | ||||
| local automation_science_pack_technology = data.raw.technology["automation-science-pack"] | ||||
| automation_science_pack_technology.prerequisites = { "planet-discovery-nauvis" } | ||||
| automation_science_pack_technology.research_trigger = nil | ||||
| automation_science_pack_technology.unit = { | ||||
|     count = 100, | ||||
|     ingredients = { | ||||
|         { "wood-science-pack",  1 }, | ||||
|  | @ -109,6 +135,15 @@ steam_power_technology.unit = { | |||
|     time = 15 | ||||
| } | ||||
| 
 | ||||
| local automation_technology = data.raw.technology["automation"] | ||||
| automation_technology.ignore_tech_cost_multiplier = false | ||||
| 
 | ||||
| local logistics_technology = data.raw.technology["logistics"] | ||||
| table.insert(logistics_technology.effects, { | ||||
|     type = "unlock-recipe", | ||||
|     recipe = "transport-belt" | ||||
| }) | ||||
| 
 | ||||
| local landfill_technology = data.raw.technology["landfill"] | ||||
| landfill_technology.prerequisites = { "burner-automation" } | ||||
| landfill_technology.unit = { | ||||
|  |  | |||
|  | @ -23,8 +23,8 @@ local function travel_to_nauvis() | |||
|         end | ||||
|     end | ||||
| 
 | ||||
|     local ship_items = remote.call("freeplay", "get_ship_items") | ||||
|     local debris_items = remote.call("freeplay", "get_debris_items") | ||||
|     local ship_items = { ["burner-mining-drill"] = 5, ["stone-furnace"] = 5, ["burner-assembling-machine"] = 2, ["burner-agricultural-tower"] = 4, ["wood-lab"] = 4 } | ||||
|     local debris_items = { ["wood-darts-magazine"] = 20, ["wood"] = 20, ["lumber"] = 20 } | ||||
|     local crashed_ship_parts = remote.call("freeplay", "get_ship_parts") | ||||
| 
 | ||||
|     nauvis.daytime = 0.7 | ||||
|  |  | |||
							
								
								
									
										7
									
								
								lignumis/settings-updates.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								lignumis/settings-updates.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| data.raw["bool-setting"]["wood-military-rockets"].default_value = false | ||||
| data.raw["bool-setting"]["wood-military-artillery"].default_value = false | ||||
| data.raw["bool-setting"]["wood-military-damage-buff"].default_value = false | ||||
| data.raw["bool-setting"]["wood-military-armor"].hidden = true | ||||
| data.raw["bool-setting"]["wood-military-armor"].forced_value = true | ||||
| data.raw["bool-setting"]["wood-military-nerf-start"].hidden = true | ||||
| data.raw["bool-setting"]["wood-military-nerf-start"].forced_value = true | ||||
							
								
								
									
										16
									
								
								lignumis/settings.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								lignumis/settings.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| data:extend({ | ||||
|     { | ||||
|         type = "bool-setting", | ||||
|         name = "lignumis-belt-progression", | ||||
|         setting_type = "startup", | ||||
|         default_value = true, | ||||
|         order = "a" | ||||
|     }, | ||||
|     { | ||||
|         type = "bool-setting", | ||||
|         name = "lignumis-inserter-progression", | ||||
|         setting_type = "startup", | ||||
|         default_value = true, | ||||
|         order = "b" | ||||
|     } | ||||
| }) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann