# Era 1

# Era 2

# Era 3

REPLACE_OR_CREATE:dubois_theory_of_evolution_tech = {

	era = era_3
	texture = "gfx/interface/icons/invention_icons/dubois_theory_of_evolution_tech.dds"
	category = society

	modifier = {
		country_tech_spread_mult = 0.25
	}
	
	unlocking_technologies = {
		dialectics
		pharmaceuticals
	}

	ai_weight = {
		value = 1
		if = {
			limit = { 
				c:GBR ?= this #Darwin
			}
			add = 1
		}
	}
}

#(Morgenrote moves camera and film to production techs, we move again to society here)
REPLACE:camera = {
	# Unlocks Photographic Art, Improved Propaganda Centers PMs in Art Academy
	era = era_3
	texture = "gfx/interface/icons/invention_icons/camera.dds"
	category = society

	unlocking_technologies = {
		realism
	}

	ai_weight = {
		value = 1
	}
}

# Era 4

REPLACE:film = {
	# Unlocks Film Propaganda Center PM in Arts Academies
	era = era_4
	texture = "gfx/interface/icons/invention_icons/film.dds"
	category = society

	unlocking_technologies = {
		camera
	}

	ai_weight = {
		value = 1
	}
}

#(Morgenröte moves organized sports to era 3, we move to era 4)
REPLACE:organized_sports = {
	era = era_4 #Morgenröte: changed from Era 2
	texture = "gfx/interface/icons/invention_icons/organized_sports.dds"
	category = society
	
	modifier = {
		country_prestige_mult = 0.05
	}
	
	unlocking_technologies = {
		pan-nationalism #Morgenröte: changed from nationalism
	}

	ai_weight = {
		value = 1

		#Morgenröte: added this part
		if = {
			limit = { 
				exists = c:FRA
				c:FRA = ROOT 
			}
			add = 1 #Pierre de Coubertin
		}

		if = {
			limit = { 
				exists = c:GRE
				c:GRE = ROOT 
			}
			add = 1 #Greece should at least try to host the Games
		}
	}
}

REPLACE_OR_CREATE:dubois_genetics_tech = {

	era = era_4
	texture = "gfx/interface/icons/invention_icons/dubois_genetics_tech.dds"
	category = society

	modifier = {
		state_mortality_mult = -0.025
		building_group_bg_agriculture_throughput_add = 0.1
		building_group_bg_ranching_throughput_add = 0.1
		building_group_bg_plantations_throughput_add = 0.1
		goods_output_grain_mult = 0.05
		goods_output_fruit_mult = 0.05
		goods_output_sugar_mult = 0.05
	}
	
	unlocking_technologies = {
		dubois_nature_protection_tech
	}

	ai_weight = {
		value = 1
	
		if = {
			limit = { 
				exists = c:AUS #Mendel
				c:AUS = ROOT 
			}
			add = 1
		}
	}
}

REPLACE_OR_CREATE:panum_antitoxins_tech = {
	# Treatment for Diphteria and Scarlet
	era = era_4
	texture = "gfx/interface/icons/invention_icons/panum_antitoxins_tech.dds"
	category = society

	unlocking_technologies = {
		malaria_prevention
	}

	modifier = {
		state_mortality_mult = -0.02
	}

	ai_weight = {
		value = 1
	}
}

# Era 5

REPLACE:mass_propaganda = {
	# Unlocks Better Radios PM in Electrics Industries
	# New leaders may spawn with the Fascist Ideology
	era = era_5
	texture = "gfx/interface/icons/invention_icons/mass_propaganda.dds"
	category = society
	
	modifier = {
		country_authority_mult = 0.1
		country_voting_power_mult = 0.1
		state_expected_sol_from_literacy = 1
		country_agitator_slots_add = 1
		country_support_separatism_strength_mult = 0.25
	}
	
	unlocking_technologies = {
		political_agitation
		elgar_mass_culture_tech #Morgenröte: changed from film
	}

	ai_weight = {
		value = 1
	}
}

# Era 6

# Era 7

# Era 8