﻿### ERA 2

vacuum_canning = {
	# Unlocks Vacuum Canning PM in Food Industries
	era = era_2
	texture = "gfx/interface/icons/invention_icons/vacuum_canning.dds"
	category = production

	unlocking_technologies = {
		baking_powder
	}

	ai_weight = {
		value = 1
	}
}

mechanical_production = {
	era = era_2
	texture = "gfx/tech_icons/mechanical_production.dds"
	category = production
	
	
	unlocking_technologies = {
		mechanical_tools
		atmospheric_engine
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				has_strategy = ai_strategy_industrial_expansion
			}
			add = 1
		}		
	}
}

metal_threading = {
	era = era_2
	texture = "gfx/tech_icons/metal_threading.dds"
	category = production
	
	
	unlocking_technologies = {
		bessemer_process
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				has_strategy = ai_strategy_industrial_expansion
			}
			add = 1
		}		
	}
}

precise_metalworking = {
	# Unlocks Open Hearth Process PM in Steel Mills
	era = era_2
	texture = "gfx/tech_icons/precise_metalworking.dds"
	category = production

	unlocking_technologies = {
		metal_threading
	}

	ai_weight = {
		value = 1
	}
}



### ERA 3

open_hearth_process = {
	# Unlocks Open Hearth Process PM in Steel Mills
	era = era_3
	texture = "gfx/interface/icons/invention_icons/open_hearth_process.dds"
	category = production

	unlocking_technologies = {
		precise_metalworking
	}

	ai_weight = {
		value = 1
	}
}

pasteurization = {
	era = era_3
	texture = "gfx/interface/icons/invention_icons/pasteurization.dds"
	category = production

	unlocking_technologies = {
		vacuum_canning
		shift_work
	}

	ai_weight = {
		value = 1
	}
}

rotary_valve_engine = {
	# 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/rotary_valve_engine.dds"
	category = production
	
	unlocking_technologies = {	
		watertube_boiler
		mechanical_production
	}
	
	ai_weight = {
		value = 2
	}
}

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 = {	
		metal_threading
	}
	
	ai_weight = {
		value = 1
	}
}

steam_turbine = {
	# Unlocks the Coal-Firing PM in Power Plants
	era = era_3
	texture = "gfx/interface/icons/invention_icons/steam_turbines.dds"
	category = production

	unlocking_technologies = {
		electrical_generation
	}

	ai_weight = {
		value = 1
	}
}

electrification = {
	era = era_3
	texture = "gfx/tech_icons/electrification.dds"
	category = production
	
	unlocking_technologies = {	
		electrical_generation
		rotary_valve_engine
	}
	
	modifier = {		
		building_economy_of_scale_level_cap_add = 5
		country_max_weekly_construction_progress_add = 5
	}
	
	ai_weight = {
		value = 1
	}
}

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_4
	texture = "gfx/interface/icons/invention_icons/electrical_capacitors.dds"
	category = production

	unlocking_technologies = {
		electrical_generation
	}

	ai_weight = {
		value = 1

		if = {
			limit = {
				OR = {
					 has_strategy = ai_strategy_industrial_expansion
					 has_strategy = ai_strategy_resource_expansion
				}
			}
			add = 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 = {
		electrical_capacitors
		steel_railway_cars
	}

	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_4
	texture = "gfx/interface/icons/invention_icons/combustion_engine.dds"
	category = production

	unlocking_technologies = {
		steam_turbine
	}

	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 = {
		building_construction_sector_throughput_add = 0.1
		country_resource_discovery_chance_mult = 0.25
	}

	unlocking_technologies = {
		reinforced_concrete
	}

	ai_weight = {
		value = 1
	}
}

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

	unlocking_technologies = {
		electrical_capacitors
	}

	modifier = {
		country_max_declared_interests_add = 1
	}

	ai_weight = {
		value = 1
	}
}


advanced_electronics = {
	era = era_5
	texture = "gfx/tech_icons/advanced_electronics.dds"
	category = production

	unlocking_technologies = {
		telephone
		radio
	}


	ai_weight = {
		value = 1
	}
}


automatic_machines = {
	era = era_4
	texture = "gfx/tech_icons/automatic_machines.dds"
	category = production
	
	modifier = {
		building_economy_of_scale_level_cap_add = 5
	}
	
	unlocking_technologies = {
		combustion_engine
		electrical_capacitors
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				has_strategy = ai_strategy_industrial_expansion
			}
			add = 1
		}		
	}
}

refining = {
	era = era_4
	texture = "gfx/tech_icons/refining.dds"
	category = production
	
	unlocking_technologies = {	
		pumpjacks
	}
	
	ai_weight = {
		if = {
			limit = { 
				has_strategy = ai_strategy_industrial_expansion
			}
			add = 1
		}
		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 = {
		refining
	}

	ai_weight = {
		value = 1
	}
}

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

conveyors = {
	# Unlocks the Assembly Lines PM in Furniture Manufacturies, Tooling Workshops, Motor Industry
	era = era_4
	texture = "gfx/interface/icons/invention_icons/conveyers.dds"
	category = production

	unlocking_technologies = {
		vulcanization
		shift_work
		electrification
	}

	ai_weight = {
		value = 1
	}
}

assembly_lines = {
	era = era_5
	texture = "gfx/tech_icons/assembly_lines.dds"
	category = production
	
	unlocking_technologies = {	
		conveyors
	}
	
	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

	unlocking_technologies = {
		electric_arc_process
	}

	ai_weight = {
		value = 1
	}
}
