# Era 1

REPLACE_OR_CREATE:agassiz_geology_tech = {
	era = era_1
	texture = "gfx/interface/icons/invention_icons/agassiz_geology_tech.dds"
	category = production
	
	modifier = {
	}
	
	unlocking_technologies = {
		shaft_mining
	}

	ai_weight = {
		value = 1 # Very important in general
		if = {
			limit = {
				dubois_has_volcano = yes
			}
			add = 1
		}
	}
}

# Era 2

# Era 3

# Era 4

REPLACE_OR_CREATE:verrier_modern_physics_tech = {
	# Unlocks Uranium Mine
	# Unlocks Einstein Events
	era = era_4
	texture = "gfx/interface/icons/invention_icons/verrier_modern_physics_tech.dds"
	category = production

	unlocking_technologies = {
		verrier_electromagnetism_tech
	}

	modifier = {
		country_tech_research_speed_mult = 0.1
	}

	on_researched = {
		custom_tooltip = {
			text = uranium_mining_deposits_visible_tt
		}
	}

	ai_weight = {
		value = 2 

		if = {
			limit = { 
				OR = {
					c:SWI ?= ROOT
					c:GER ?= ROOT
					c:PRU ?= ROOT
					c:NGF ?= ROOT 
				}
				
			}
			add = 3 #German Physics Bohr-Planck-Einstein
		}
	}
}

# Era 5

REPLACE_OR_CREATE:verrier_nuclear_physics_tech = {
	# Unlocks Einstein Events
	era = era_5
	texture = "gfx/interface/icons/invention_icons/verrier_nuclear_physics_tech.dds"
	category = production

	unlocking_technologies = {
		verrier_modern_physics_tech
	}

	modifier = {
		building_group_bg_power_throughput_add = 0.05
	}

	ai_weight = {
		value = 2 

		if = {
			limit = { 
				OR = {
					c:ITA ?= ROOT
					c:USA ?= ROOT
				}
				
			}
			add = 2 #Fermi-Szilard-etc
		}		
	}
	
}

REPLACE_OR_CREATE:mendelejew_synthetic_fuel_tech = {
	# Unlocks Synthetic Fuel Factory
	era = era_6
	texture = "gfx/interface/icons/invention_icons/mendelejew_synthetic_fuel_tech.dds"
	category = production

	modifier = {
		goods_input_oil_mult = -0.05
	}

	unlocking_technologies = {
		selective_mineral_extraction
	}

	ai_weight = {
		value = 1
	}
}

REPLACE_OR_CREATE:mendelejew_synthetic_rubber_tech = {
	# Unlocks Synthetic Rubber Factory
	era = era_5
	texture = "gfx/interface/icons/invention_icons/mendelejew_synthetic_rubber_tech.dds"
	category = production

	unlocking_technologies = {
		oil_distillation
	}

	modifier = {
		building_rubber_plantation_throughput_add = 0.05
	}

	ai_weight = {
		value = 1 # Important tech for modern economies
		
		if = {
			limit = { 
				OR = {
					has_strategy = ai_strategy_industrial_expansion
				}
			}
			add = 1
		}
	}
}

# Era 6

REPLACE_OR_CREATE:vikelas_streamliners_tech = {
    # Modern Tools
    era = era_6
    texture = "gfx/interface/icons/invention_icons/pm_streamlined_railway.dds"
    category = production

    unlocking_technologies = {
		thermal_cracking
    }

	modifier = {
		building_railway_throughput_add = 0.05
	}

	ai_weight = {
		value = 1
	}
}

REPLACE_OR_CREATE:verrier_astro_physics_tech = {
	# Unlocks Lemaître and the Great Debate
	# Unlocks Astrolab
	# Gives additional astronomical objects per year
	era = era_6
	texture = "gfx/interface/icons/invention_icons/verrier_astro_physics_tech.dds"
	category = production

	unlocking_technologies = {
		verrier_nuclear_physics_tech
	}

	modifier = {
		country_tech_research_speed_mult = 0.05
		building_telecommunications_industry_throughput_add = 0.05
	}

	ai_weight = {
		value = 2 

		if = {
			limit = { 
				OR = {
					c:USA ?= ROOT
					c:RUS ?= ROOT
				}
				
			}
			add = 2 #Cold War Space Race
		}		
	}
}

# Era 7

# Era 8
