# Era 1

# Era 2

# Era 3

INJECT:mutual_funds = {
	ai_weight = {
		value = 1
		if = {
			limit = { 
				exists = c:USA # Gilded Age modifier
				c:USA = ROOT 
			}
			add = 2
		}
	}
}

# Era 3

# Era 4

REPLACE:feminism = {
	# Unlocks Women in the Workplace - Rights of Women Law
	era = era_4
	texture = "gfx/interface/icons/invention_icons/feminism.dds"
	category = society
	
	on_researched = {
		if = {
			limit = {
				NOT = { has_variable = feminism_researched }
			}
			set_variable = feminism_researched
			custom_tooltip = {
				text = liberal_and_egalitarian_amended_tt
				every_interest_group = {
					limit = {
						has_ideology = ideology:ideology_liberal
					}
					remove_ideology = ideology_liberal
					add_ideology = ideology_liberal_modern
				}
				every_interest_group = {
					limit = {
						has_ideology = ideology:ideology_egalitarian
					}
					remove_ideology = ideology_egalitarian
					add_ideology = ideology_egalitarian_modern
				}
			}
		}
	}

	modifier = {
		#country_institution_social_security_max_investment_add = 1
		# Moved to socialdemocracy tech
	}

	unlocking_technologies = {
		human_rights
	}
	
	ai_weight = {
		value = 1
		
		if = {
			limit = { 
				has_strategy = ai_strategy_egalitarian_agenda
			}
			add = 1
		}	
		if = {
			limit = { 
				OR = {
					has_strategy = ai_strategy_conservative_agenda
					has_strategy = ai_strategy_reactionary_agenda
					has_strategy = ai_strategy_maintain_mandate_of_heaven
				}			
			}
			add = -0.5
		}		
	}
}

# Era 6

REPLACE:antibiotics = {
    # Mass production of penicillin for widespread medical use
    era = era_6
    texture = "gfx/interface/icons/invention_icons/antibiotics.dds"
    category = society

    unlocking_technologies = {
        molecular_biology
		penicillin
    }

    modifier = {
        state_mortality_mult = -0.01
		state_harvest_condition_disease_outbreak_impact_mult = -0.15
    }

    ai_weight = {
        value = 1
    }
}

# Era 7

# Era 8