forked from cacklingfiend/lignumis
		
	Add setting "Enable progressive technologies"
This commit is contained in:
		
							parent
							
								
									c67aaeb1b7
								
							
						
					
					
						commit
						f9fc1d77a8
					
				
					 4 changed files with 22 additions and 3 deletions
				
			
		|  | @ -25,6 +25,10 @@ Lignumis = { | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | if settings.startup["lignumis-technology-progression"].value then | ||||||
|  |     Lignumis.science_pack_whitelist = {} | ||||||
|  | end | ||||||
|  | 
 | ||||||
| require("__cf-lib__/util") | require("__cf-lib__/util") | ||||||
| 
 | 
 | ||||||
| require("prototypes/content/data") | require("prototypes/content/data") | ||||||
|  |  | ||||||
|  | @ -164,11 +164,13 @@ quality-catalyst=Quality catalyst | ||||||
| lignumis-belt-progression=Enable progressive belt recipes | lignumis-belt-progression=Enable progressive belt recipes | ||||||
| lignumis-inserter-progression=Enable progressive inserter recipes | lignumis-inserter-progression=Enable progressive inserter recipes | ||||||
| lignumis-ammo-progression=Enable progressive ammo recipes | lignumis-ammo-progression=Enable progressive ammo recipes | ||||||
|  | lignumis-technology-progression=Enable progressive technologies | ||||||
| 
 | 
 | ||||||
| [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. | ||||||
| lignumis-inserter-progression=Yellow electric inserter will require burner inserter to craft. | lignumis-inserter-progression=Yellow electric inserter will require burner inserter to craft. | ||||||
| lignumis-ammo-progression=Firearm magazines will require wooden darts magazines to craft. | lignumis-ammo-progression=Firearm magazines will require wooden darts magazines to craft. | ||||||
|  | lignumis-technology-progression=Adds wood and steam science packs to most late game technologies. Disabling this removes the relevance of Lignumis' science packs in the late game. | ||||||
| 
 | 
 | ||||||
| [entity-status] | [entity-status] | ||||||
| no-quality-catalyst=No quality catalyst | no-quality-catalyst=No quality catalyst | ||||||
|  |  | ||||||
|  | @ -274,11 +274,17 @@ if not mods["planet-picker"] then | ||||||
| 
 | 
 | ||||||
|     local production_science_pack_technology = Technology:new("production-science-pack") |     local production_science_pack_technology = Technology:new("production-science-pack") | ||||||
|     production_science_pack_technology:replacePrerequisite("advanced-material-processing-2", "space-platform-thruster") |     production_science_pack_technology:replacePrerequisite("advanced-material-processing-2", "space-platform-thruster") | ||||||
|     production_science_pack_technology:addIngredients({ "wood-science-pack", "steam-science-pack", "space-science-pack" }) |     production_science_pack_technology:addIngredients({ "space-science-pack" }) | ||||||
|  |     if not settings.startup["lignumis-technology-progression"].value then | ||||||
|  |         production_science_pack_technology:removeIngredients({ "wood-science-pack", "steam-science-pack" }) | ||||||
|  |     end | ||||||
| 
 | 
 | ||||||
|     local utility_science_pack_technology = Technology:new("utility-science-pack") |     local utility_science_pack_technology = Technology:new("utility-science-pack") | ||||||
|     utility_science_pack_technology:setPrerequisites({ "space-platform-thruster" }) |     utility_science_pack_technology:setPrerequisites({ "space-platform-thruster" }) | ||||||
|     utility_science_pack_technology:addIngredients({ "wood-science-pack", "steam-science-pack", "space-science-pack" }) |     utility_science_pack_technology:addIngredients({ "space-science-pack" }) | ||||||
|  |     if not settings.startup["lignumis-technology-progression"].value then | ||||||
|  |         utility_science_pack_technology:removeIngredients({ "wood-science-pack", "steam-science-pack" }) | ||||||
|  |     end | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| if not mods["planet-muluna"] then -- Muluna does the same | if not mods["planet-muluna"] then -- Muluna does the same | ||||||
|  |  | ||||||
|  | @ -19,6 +19,13 @@ data:extend({ | ||||||
|         setting_type = "startup", |         setting_type = "startup", | ||||||
|         default_value = true, |         default_value = true, | ||||||
|         order = "c" |         order = "c" | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         type = "bool-setting", | ||||||
|  |         name = "lignumis-technology-progression", | ||||||
|  |         setting_type = "startup", | ||||||
|  |         default_value = true, | ||||||
|  |         order = "d" | ||||||
|     } |     } | ||||||
| }) | }) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann