﻿### ERA 1
persepolis = {
	# Unlocks rebuilding persepolis
	era = era_1
	texture = "gfx/interface/icons/invention_icons/nationalism.dds"
	category = society
	can_research = no
	
	modifier = {
		state_building_persepolis_max_level_add = 1
	#	building_persepolis_throughput_add = -0.04
	}

}


great_library_of_persia = {
	# Unlocks Great library of Persia in Persepolis
	era = era_1
	texture = "gfx/interface/icons/invention_icons/academia.dds"
	category = society
	can_research = no
	
	#unlocking_technologies = {
	#	persepolis
	#}
}

nationalism = {
	# Unlocks the Immigration Controls Law in Migration
	# New leaders may spawn with the Ethno-Nationalist Ideology
	era = era_2
	texture = "gfx/interface/icons/invention_icons/nationalism.dds"
	category = society
	
	modifier = {
		country_authority_mult = 0.1
	}
	
	unlocking_technologies = {
		mass_communication
		international_relations
	}
	
	ai_weight = {
		value = 2 # Important in general
		
		# Extra-important for major unifications
		if = {
			limit = { 
				OR = {
					country_has_primary_culture = cu:north_german
					country_has_primary_culture = cu:south_german
					country_has_primary_culture = cu:north_italian
					country_has_primary_culture = cu:south_italian
				}				
			}
			add = 2
		}	
		
		if = {
			limit = {
			OR = {
			has_journal_entry = je_shahenshah
			has_journal_entry = je_the_crescent_takes_root
				}
			}
		
			add = 2
		}
			if = {
			limit = {
				OR = {
					country_has_primary_culture = cu:north_italian
					country_has_primary_culture = cu:south_italian
				}
				any_country = {
					has_journal_entry = je_risorgimento
				}
			}
			multiply = 2
		}
		
		
		# Extra-important for major unifications
		if = {
			limit = { 
				OR = {
					country_has_primary_culture = cu:north_german
					country_has_primary_culture = cu:south_german
					country_has_primary_culture = cu:north_italian
					country_has_primary_culture = cu:south_italian
				}				
			}
			add = 2
		}			
	}
}

academia = {
	# Unlocks University building
	era = era_1
	texture = "gfx/interface/icons/invention_icons/academia.dds"
	category = society
	
	modifier = {
		state_education_access_wealth_add = 0.005
	}
	
	unlocking_technologies = {
		rationalism
	}
	
	ai_weight = {
		value = 1.5 # Important in general
		
		if = {
			limit = {
			has_journal_entry = je_the_crescent_takes_root
			}
			add = 2
		}
	}
}

mass_communication = {
	era = era_1
	texture = "gfx/interface/icons/invention_icons/mass_communication.dds"
	category = society
	
	modifier = {
		country_authority_mult = 0.1
	}
	
	unlocking_technologies = {
		democracy
	}
	
	ai_weight = {
		value = 1.5 # Important in general
		
		if = {
			limit = {
			has_journal_entry = je_the_crescent_takes_root
			}
			add = 2
		}
	}
}

