#Era 1

REPLACE_OR_CREATE:curtiss_montgolfier_balloon_tech = {
	#
	era = era_1
	texture = "gfx/interface/icons/invention_icons/curtiss_montgolfier.dds"
	category = military
	
	unlocking_technologies = {
	}

	ai_weight = {
		value = 1
	}
}

# Era 2

REPLACE_OR_CREATE:curtiss_messenger_pidgeons_tech = {

	era = era_2
	texture = "gfx/interface/icons/invention_icons/curtiss_messenger_pidgeons_tech.dds"
	category = military

	modifier = {
		unit_morale_loss_mult = -0.05
		country_war_exhaustion_casualties_mult = -0.05
	}
	
	unlocking_technologies = {
		curtiss_montgolfier_balloon_tech
	}

	ai_weight = {
		value = 1
	}
}

# Era 3

REPLACE_OR_CREATE:curtiss_reconnaissance_balloon_tech = {

	era = era_3
	texture = "gfx/interface/icons/invention_icons/curtiss_reconnaissance_balloon.dds"
	category = military
	
	unlocking_technologies = {
		curtiss_messenger_pidgeons_tech
	}

	ai_weight = {
		value = 1
	}
}

# Era 4

REPLACE_OR_CREATE:curtiss_early_aviation_tech = {

	era = era_4
	texture = "gfx/interface/icons/invention_icons/curtiss_early_aviation.dds"
	category = military
	
	unlocking_technologies = {
		curtiss_reconnaissance_balloon_tech
	}

	modifier = {
		unit_provinces_captured_mult = 0.05
	}

	ai_weight = {
		value = 1
	}
}

# Era 5

REPLACE_OR_CREATE:agassiz_sounding_tech = {
	era = era_5
	texture = "gfx/interface/icons/invention_icons/agassiz_sounding_tech.dds"
	category = military
	
	modifier = {
		building_group_bg_fishing_throughput_add = 0.1
		ship_detection_mult = 0.15
		ship_screening_mult = 0.1
		ship_accuracy_mult = 0.1
	}
	
	unlocking_technologies = {
		submarine
	}
	ai_weight = {
		value = 1 # Very important in general
		if = {
			limit = {
				has_variable = ztr_bolshevik_ideology_var
			}
			add = 1
		}
	}
}

REPLACE_OR_CREATE:curtiss_seaplanes_tech = {

	era = era_5
	texture = "gfx/interface/icons/invention_icons/curtiss_seaplanes.dds"
	category = military
	
	unlocking_technologies = {
		military_aviation
	}

	modifier = {
		ship_critical_hit_chance_mult = 0.1
		ship_screening_mult = 0.1
		ship_detection_mult = 0.1
		ship_ship_type_aircraft_carrier_hull_damage_mult = 0.1
	}

	ai_weight = {
		value = 1
		
		# Important for naval powers
		if = {
			limit = { navy_size >= 20 }
			add = 0.5
		}		
		#Seaplane countries
		if = {
			limit = { 
				exists = c:FRA
				c:FRA = ROOT 
			}
			add = 0.5
		}	
		if = {
			limit = { 
				exists = c:USA
				c:USA = ROOT 
			}
			add = 0.5
		}		
		if = {
			limit = { 
				exists = c:GBR
				c:GBR = ROOT 
			}
			add = 0.5
		}
		if = {
			limit = { 
				exists = c:ITA
				c:ITA = ROOT 
			}
			add = 0.5
		}
	}
}

# Era 6