﻿### ERA 1

sericulture = {
	# Unlocks Mulberry Groves PM on Rice Farms
	era = era_1
	texture = "gfx/interface/icons/invention_icons/sericulture.dds"
	category = production
	can_research = no
	
	modifier = {
		building_silk_plantation_throughput_add = 0.05
	}
	
	ai_weight = {
		value = 1
	}
}

enclosure = {
	# Unlocks construction of Farms and Plantations
	era = era_1
	texture = "gfx/interface/icons/invention_icons/enclosure.dds"
	category = production
	
	ai_weight = {
		value = 3 # Very important tech in general
	}
}

manufacturies = {
	# Unlocks Mercantilism Law
	# Unlocks Food Industry, Textile Mills, Furniture Manufacturies, Glassworks, Tooling Workshops, Paper Mills
	era = era_1
	texture = "gfx/interface/icons/invention_icons/manufacturies.dds"
	category = production
	
	ai_weight = {
		value = 3 # Very important tech in general
	}
}

shaft_mining = {
	# Unlocks Coal Mine, Iron Mine, Lead Mine, Sulfur Mine
	era = era_1
	texture = "gfx/interface/icons/invention_icons/shaft_mining.dds"
	category = production
	
	unlocking_technologies = {
		enclosure
		manufacturies
	}
	
	ai_weight = {
		value = 2 # Important tech in general
	}
}

cotton_gin = {
	era = era_1
	texture = "gfx/interface/icons/invention_icons/cotton_gin.dds"
	category = production

	modifier = {
		building_cotton_plantation_throughput_add = 0.05
	}
	
	unlocking_technologies = {
		manufacturies
	}
	
	ai_weight = {
		value = 1
	}
}

distillation = {
	# Unlocks Pot Stills PM in Food Industry
	# Unlocks Sweeteners PM in Food Industry
	# Unlocks Fish Press PM in Fishing Wharfs
	era = era_1
	texture = "gfx/interface/icons/invention_icons/distillation.dds"
	category = production
	
	unlocking_technologies = {
		manufacturies
	}
	
	ai_weight = {
		value = 1
	}
}

prospecting = {
	# Unlocks possibility to discover Gold Fields
	era = era_1
	texture = "gfx/interface/icons/invention_icons/prospecting_tech.dds"
	category = production
	
	unlocking_technologies = {
		shaft_mining
	}
	
	ai_weight = {
		value = 1
	}
}

### ERA 2

dough_rollers = {
	# Unlocks the Automated Bakery PM in Food Industries
	era = era_2
	texture = "gfx/interface/icons/invention_icons/rollers.dds"
	category = production
	
	unlocking_technologies = {
		fractional_distillation
	}
	
	ai_weight = {
		value = 1
	}
}

threshing_machine = {
	# Unlocks Steam Threshers PM on Rye, Wheat, Rice, Maize, Millet Farms
	era = era_3
	texture = "gfx/interface/icons/invention_icons/threshing_machine.dds"
	category = production
	
	unlocking_technologies = {	
		steel_railway_cars
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					has_strategy = ai_strategy_agricultural_expansion 
					has_strategy = ai_strategy_plantation_economy
				}
			}
			add = 1
		}	
	}
}

steam_donkey = {
	# Unlocks Steam Donkey PM in Logging Camps
	# Unlocks Steam Donkey PM in Coal, Iron, Lead, Sulfur Mines
	era = era_2
	texture = "gfx/interface/icons/invention_icons/steam_donkey.dds"
	category = production
	
	unlocking_technologies = {	
		atmospheric_engine
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 2
		}	
	}	
}

rubber_mastication = {
	# Unlocks Rubber Plantations
	era = era_2
	texture = "gfx/interface/icons/invention_icons/rubber.dds"
	category = production
	
	unlocking_technologies = {	
		fractional_distillation
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 3
		}	
	}
}	

lathe = {
	# Unlocks Lathes PM in Furniture Manufacturies
	era = era_2
	texture = "gfx/interface/icons/invention_icons/lathe.dds"
	category = production
	
	unlocking_technologies = {
		cotton_gin
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 1
		}		
	}
}

steelworking = {
	# Unlocks Steel Mills
	era = era_2
	texture = "gfx/interface/icons/invention_icons/steelworking.dds"
	category = production
	
	unlocking_technologies = {
		shaft_mining
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 1
		}		
	}
}

intensive_agriculture = {
	# Unlocks Chemical Plants
	# Unlocks Intensive Agriculture PM on Rye Farms, Wheat Farms, Rice Farms, Maize Farms, Millet Farms
	# Unlocks Intensize Grazing Ranch PM on Livestock Ranches
	era = era_2
	texture = "gfx/interface/icons/invention_icons/intensive_agriculture.dds"
	category = production
	
	unlocking_technologies = {
		enclosure
	}
	
	ai_weight = {
		value = 2 # Important tech for everyone
		
		if = {
			limit = {
				OR = {
					has_strategy = ai_strategy_agricultural_expansion 
					has_strategy = ai_strategy_plantation_economy
				}		
			}
			add = 2
		}
	}
}

fractional_distillation = {
	# Unlocks Patent Stills PM in Food Industries
	# Unlocks Cod Liver Oil PM in Fishing Wharfs
	era = era_2
	texture = "gfx/interface/icons/invention_icons/fractional_distillation.dds"
	category = production
	
	unlocking_technologies = {
		distillation
	}
	
	ai_weight = {
		value = 1
	}
}

canneries = {
	# Unlocks Cannery PM in Food Industries
	era = era_2
	texture = "gfx/interface/icons/invention_icons/canneries.dds"
	category = production
	
	unlocking_technologies = {
		lathe
	}
	
	ai_weight = {
		value = 1
	}
}

rotary_valve_engine = {
	# Unlocks Watertube Boiler PM in Furniture Manufacturies, Tooling Workshops, Paper Mills, Steel Mills, Motor Industry
	# Unlocks Condensing Engine Pump in Coal Mines, Iron Mines, Lead Mines, Sulfur Mines
	era = era_2
	texture = "gfx/interface/icons/invention_icons/rotary_valve_engine.dds"
	category = production
	
	unlocking_technologies = {
		atmospheric_engine
	}
	
	ai_weight = {
		value = 1
	}
}

atmospheric_engine = {
	# Unlocks Motor Industry
	# Unlocks Atmospheric Engine Pump PM in Coal Mine, Iron Mine, Lead Mine, Sulfur Mine
	era = era_2
	texture = "gfx/interface/icons/invention_icons/atmospheric_engine.dds"
	category = production
	
	unlocking_technologies = {
		shaft_mining
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 2
		}	
	}
}

railways = {
	# Unlocks Railways
	# Unlocks Rail Transport PM in Coal, Iron, Lead, Sulfur Mines
	# Unlocks Rail Transport PM in Coffee, Cotton, Dye, Opium, Tea, Tobacco, Sugar, Rubber, Banana Plantations
	# Unlocks Rail Transport PM in Logging Camp
	# Unlocks Rail Transport PM in Oil Rig
	# Unlocks Public Trams in Urban Centers
	# Increases Railway max level by 1
	era = era_2
	texture = "gfx/interface/icons/invention_icons/railways.dds"
	category = production
	
	unlocking_technologies = {
		steelworking
		atmospheric_engine
	}
	
	ai_weight = {
		value = 2 # Important tech for everyone
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 2
		}		
	}
}

### ERA 3

nitroglycerin = {
	# Unlocks Nitroglycerin PM in Coal, Iron, Lead, Sulfur Mines
	# Unlocks Ammonia-Soda Process PM in Chemical Industries
	# Countries get a +25% chance of discovering new resources
	
	era = era_3
	texture = "gfx/interface/icons/invention_icons/nitroglycerin.dds"
	category = production
	
	modifier = {
		country_resource_discovery_chance_mult = 0.25
	}
	
	unlocking_technologies = {	
		intensive_agriculture
		prospecting
	}
	
	ai_weight = {
		value = 1
	}
}

baking_powder = {
	# Unlocks Baking Powder PM in Food Industries
	era = era_3
	texture = "gfx/interface/icons/invention_icons/baking_powder.dds"
	category = production
	
	unlocking_technologies = {
		dough_rollers
	}
	
	ai_weight = {
		value = 1
	}
}

conveyors = {
	# Unlocks the Assembly Lines PM in Furniture Manufacturies, Tooling Workshops, Motor Industry
	era = era_3
	texture = "gfx/interface/icons/invention_icons/conveyers.dds"
	category = production
	
	unlocking_technologies = {	
		electrical_generation
	}
	
	ai_weight = {
		value = 1
	}
}

pasteurization = {
	# #todo! Does nothing at the moment, should probably do something at Livestock Ranches or Food Industries
	era = era_3
	texture = "gfx/interface/icons/invention_icons/pasteurization.dds"
	category = production
	
	unlocking_technologies = {	
		electrical_generation
	}
	
	ai_weight = {
		value = 1
	}
}

mechanized_farming = {
	# Unlocks Tractors PM in Rye Farms, Wheat Farms, Millet Farms
	era = era_4
	texture = "gfx/interface/icons/invention_icons/mechanized_farming.dds"
	category = production
	
	unlocking_technologies = {	
		threshing_machine
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					has_strategy = ai_strategy_agricultural_expansion 
					has_strategy = ai_strategy_plantation_economy
				}
			}
			add = 1
		}	
	}
}

mechanized_workshops = {
	# Unlocks Slaughterhouses PM in Livestock Ranches
	# Unlocks Sewing Machines PM and Mechanized Looms PM in Textile Mills
	era = era_3
	texture = "gfx/interface/icons/invention_icons/mechanized_workshops.dds"
	category = production
	
	unlocking_technologies = {
		mechanical_tools
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				 has_strategy = ai_strategy_industrial_expansion
			}
			add = 1
		}		
	}
}

mechanical_tools = {
	# Unlocks Precision Tools PM in Furniture Workshops
	era = era_3
	texture = "gfx/interface/icons/invention_icons/mechanical_tools.dds"
	category = production
	
	unlocking_technologies = {
		steelworking
	}

	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				 has_strategy = ai_strategy_industrial_expansion
			}
			add = 1
		}		
	}
}

chemical_bleaching = {
	# Unlocks Bone China PM in Glassworks
	# Unlocks Sulfite Pulping PM in Paper Mills
	era = era_3
	texture = "gfx/interface/icons/invention_icons/chemical_bleaching.dds"
	category = production

	unlocking_technologies = {	
		crystal_glass
	}
	
	ai_weight = {
		value = 1
	}
}

crystal_glass = {
	# Unlocks Leaded Glass PM in Glassworks
	era = era_3
	texture = "gfx/interface/icons/invention_icons/crystal_glass.dds"
	category = production
	
	unlocking_technologies = {
		lathe
	}
	
	ai_weight = {
		value = 1
	}
}

bessemer_process = {
	# Unlocks Bessemer Process PM in Steel Mills
	# Unlocks Steel [Tools] PM in Tooling Workshops
	era = era_3
	texture = "gfx/interface/icons/invention_icons/bessemer_process.dds"
	category = production
	
	unlocking_technologies = {	
		steelworking
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				 has_strategy = ai_strategy_industrial_expansion
			}
			add = 1
		}		
	}
}

improved_fertilizer = {
	# Unlocks Improved Fertilizer PM in Chemical Plants
	# Unlocks Fertilization PM in Rye, Wheat, Rice, Maize, Millet Farms
	era = era_3
	texture = "gfx/interface/icons/invention_icons/improved_fertilizer.dds"
	category = production
	
	unlocking_technologies = {
		nitroglycerin
	}
	
	ai_weight = {
		value = 1
	}
}

watertube_boiler = {
	# Unlocks Rotary Valve Engine PM in Furniture Manufacturies, Tooling Workshops, Paper Mills, Steel Mills, Motor Industry
	era = era_3
	texture = "gfx/interface/icons/invention_icons/watertube_boiler.dds"
	category = production
	
	unlocking_technologies = {	
		rotary_valve_engine
	}
	
	ai_weight = {
		value = 1
	}
}

reinforced_concrete = {
	era = era_3
	texture = "gfx/interface/icons/invention_icons/reinforced_concrete.dds"
	category = production
	
	modifier = {
		building_construction_sector_throughput_add = 0.25
		state_construction_mult = 0.05
	}
	
	unlocking_technologies = {	
		bessemer_process
	}
	
	ai_weight = {
		value = 1
	}
}

pumpjacks = {
	# Unlocks possibility to discover Oil (to build Oil Rigs)
	# Unlocks Oil Rig building
	era = era_3
	texture = "gfx/interface/icons/invention_icons/pumpjacks.dds"
	category = production
	
	unlocking_technologies = {	
		watertube_boiler
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 2
		}	
	}
}

aniline = {
	# Unlocks Synthetic Plants building
	era = era_3
	texture = "gfx/interface/icons/invention_icons/aniline.dds"
	category = production
	
	unlocking_technologies = {	
		rubber_mastication
	}
	
	ai_weight = {
		value = 1
	}
}

vulcanization = {
	# Unlocks Elastics PM in Textile Mills
	era = era_3
	texture = "gfx/interface/icons/invention_icons/vulcanization.dds"
	category = production
	
	unlocking_technologies = {	
		rubber_mastication
		mechanical_tools
	}
	
	ai_weight = {
		value = 1
	}
}

vacuum_canning = {
	# Unlocks Vacuum Canning PM in Food Industries
	era = era_3
	texture = "gfx/interface/icons/invention_icons/vacuum_canning.dds"
	category = production
	
	unlocking_technologies = {	
		canneries
	}
	
	ai_weight = {
		value = 1
	}
}

steel_railway_cars = {
	# Unlocks Steel Passenger Carriages PM and Armored Cars PM in Railways
	# Unlocks Tanker Cars PM in Oil Rig buildings
	# Increases Railway max level by 1
	era = era_3
	texture = "gfx/interface/icons/invention_icons/steel_railway_cars.dds"
	category = production	
	
	unlocking_technologies = {	
		railways
	}
	
	ai_weight = {
		value = 1
	}
}

electrical_generation = {
	# Unlocks Power Plants
	# Unlocks Electric Sewing Machines PM and Automatic Power Looms PM in Textile Mills
	# Unlocks Brine Electrolysis PM in Chemical Plants
	# Unlocks Electric Fencing PM and Refrigerated Storage PM in Livestock Ranches
	# Unlocks Refrigerated Storage PM in Fishing Wharfs
	# Unlocks Electric Saw Mills PM in Logging Camps
	# Unlocks Electric Streetlights PM in Urban Centers
	era = era_3
	texture = "gfx/interface/icons/invention_icons/electrical_generation.dds"
	category = production
	
	unlocking_technologies = {	
		rotary_valve_engine
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 2
		}	
	}
}

### ERA 4

dynamite = {
	# Unlocks Vacuum Evaporation PM in Chemical Plants
	# Unlocks Explosive Shells PM in Munitions Plants
	# Unlocks Dynamite PM in Coal, Iron, Lean, Sulfur Mines
	# Countries get a +25% chance of discovering new resources
	era = era_4
	texture = "gfx/interface/icons/invention_icons/dynamite.dds"
	category = production
	
	modifier = {
		country_resource_discovery_chance_mult = 0.25
	}
	
	unlocking_technologies = {	
		improved_fertilizer
	}
	
	ai_weight = {
		value = 1
	}
}

compression_ignition = {
	# Unlocks Diesel Trains PM in Railways
	# Unlocks Compression Ignition Tractors PM in Rye Farms, Wheat Farms, Millet Farms
	era = era_4
	texture = "gfx/interface/icons/invention_icons/compression_ignition.dds"
	category = production
	
	unlocking_technologies = {
		pumpjacks
	}
	
	ai_weight = {
		value = 1
	}
}

flash_freezing = {
	# Unlocks Refrigerated Rail Cars PM in Livestock Ranches
	# Unlocks Flash Freezing PM in Fishing Wharfs
	era = era_4
	texture = "gfx/interface/icons/invention_icons/flash_freezing.dds"
	category = production
	
	unlocking_technologies = {
		electric_railway
	}
	
	ai_weight = {
		value = 1
	}
}

shift_work = {
	era = era_4
	texture = "gfx/interface/icons/invention_icons/shift_work.dds"
	category = production
	
	modifier = {
		building_economy_of_scale_level_cap_add = 10
	}
	
	unlocking_technologies = {	
		mechanized_workshops
	}
	
	ai_weight = {
		value = 1
	}
}

open_hearth_process = {
	# Unlocks Open Hearth Process PM in Steel Mills
	era = era_4
	texture = "gfx/interface/icons/invention_icons/open_hearth_process.dds"
	category = production
	
	unlocking_technologies = {	
		reinforced_concrete
	}
	
	ai_weight = {
		value = 1
	}
}

art_silk = {
	# Unlocks the Rayon PM in Synthetic Plants
	# Unlocks the Bleached Paper PM in Paper Mills
	era = era_4
	texture = "gfx/interface/icons/invention_icons/art_silk.dds"
	category = production
	
	unlocking_technologies = {	
		aniline
	}
	
	ai_weight = {
		value = 1
	}
}

automatic_bottle_blowers = {
	# Unlocks the Automatic Bottle Blowers PM in Glassworks
	era = era_4
	texture = "gfx/interface/icons/invention_icons/automatic_bottle_blowers.dds"
	category = production
	
	unlocking_technologies = {	
		vulcanization
	}
	
	ai_weight = {
		value = 1
	}
}

electric_railway = {
	# Unlocks Electric Trains PM in Railways
	# Unlocks Log Carts PM in Logging Camps
	# Unlocks Refrigerated Rail Carts in Fishing Wharfs
	# Increases Railway max level by 1
	era = era_4
	texture = "gfx/interface/icons/invention_icons/electric_railway.dds"
	category = production		
	
	unlocking_technologies = {
		steel_railway_cars
		electrical_generation
	}	
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 1
		}	
	}
}

pneumatic_tools = {
	# +15% construction throughput
	# Countries get a +25% chance of discovering new resources
	era = era_4
	texture = "gfx/interface/icons/invention_icons/pneumatic_tools.dds"
	category = production
	
	modifier = {
		state_construction_mult = 0.05
		country_resource_discovery_chance_mult = 0.25
	}
	
	unlocking_technologies = {
		reinforced_concrete
	}
	
	ai_weight = {
		value = 1
	}
}

nitrogen_fixation = {
	# Unlocks Nitrogen Fixation PM in Chemical Plants
	# Unlocks Chemical Fertilizer PM in Rye, Wheat, Rice, Maize, Millet Farms
	era = era_4
	texture = "gfx/interface/icons/invention_icons/nitrogen_fixation.dds"
	category = production
	
	unlocking_technologies = {
		dynamite
	}
	
	ai_weight = {
		value = 1
	}
}

steam_turbine = {
	# Unlocks the Coal-Firing PM in Power Plants
	era = era_4
	texture = "gfx/interface/icons/invention_icons/steam_turbines.dds"
	category = production
	
	unlocking_technologies = {	
		electrical_generation
	}
	
	ai_weight = {
		value = 1
	}
}

plastics = {
	# Unlocks the Houseware Plastics PM in Glassworks
	era = era_4
	texture = "gfx/interface/icons/invention_icons/plastics.dds"
	category = production
	
	unlocking_technologies = {	
		automatic_bottle_blowers
	}
	
	ai_weight = {
		value = 1
	}
}

telephone = {
	# Unlocks Electrics Industry building
	era = era_4
	texture = "gfx/interface/icons/invention_icons/telephone.dds"
	category = production
	
	unlocking_technologies = {
		shift_work
	}
	
	ai_weight = {
		value = 1
	}
}

### ERA 5

electrical_capacitors = {
	# Unlocks Electric Sewing Machines PM and Automatic Power Looms PM in Textile Mills
	# Unlocks Brine Electrolysis PM in Chemical Plants
	# Unlocks Electric Saw Mills PM in Logging Camps
	era = era_5
	texture = "gfx/interface/icons/invention_icons/electrical_capacitors.dds"
	category = production
	
	unlocking_technologies = {	
		flash_freezing
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 1
		}	
	}
}

combustion_engine = {
	# Unlocks Automobile Production PM in Motor Industries
	# Unlocks Diesel Pump PM in Coal, Iron, Lead, Sulfur Mines
	# Unlocks Chainsaws PM in Logging Camps
	# Unlocks Combustion Derricks PM in Oil Rigs
	# Unlocks Public Motor Carriages PM in Urban Centers
	era = era_5
	texture = "gfx/interface/icons/invention_icons/combustion_engine.dds"
	category = production
	
	unlocking_technologies = {	
		compression_ignition
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 1
		}	
	}
}

radio = {
	# Unlocks Radios PM in Electrics Industry
	era = era_5
	texture = "gfx/interface/icons/invention_icons/radio.dds"
	category = production
	
	unlocking_technologies = {
		telephone
	}
	
	ai_weight = {
		value = 1
	}
}

electric_arc_process = {
	# Unlocks the Electric Arc Process PM in Steel Mills
	era = era_5
	texture = "gfx/interface/icons/invention_icons/electric_arc_process.dds"
	category = production
	
	unlocking_technologies = {	
		open_hearth_process
	}
	
	ai_weight = {
		value = 1
	}
}

oil_turbine = {
	# Unlocks Oil-Fired Plant PM in Power Plants
	era = era_5
	texture = "gfx/interface/icons/invention_icons/oil_turbines.dds"
	category = production
	
	unlocking_technologies = {	
		steam_turbine
	}
	
	ai_weight = {
		value = 1
	}
}

arc_welding = {
	# Unlocks Arc Welding Shipbuilding PM in Shipyards
	# Unlocks Very Fast PM in Construction Camps
	era = era_5
	texture = "gfx/interface/icons/invention_icons/arc_welding.dds"
	category = production

	modifier = {
		state_construction_mult = 0.05
	}
	
	unlocking_technologies = {
		pneumatic_tools
	}
	
	ai_weight = {
		value = 1
	}
}
