﻿law_no_schools = {
	group = lawgroup_education_system
	
	icon = "gfx/interface/icons/law_icons/no_schools.dds"
	
	progressiveness = 0	
	
	# AI will never abolish institutions entirely
	ai_will_do = {
		always = no
	}
}

law_religious_schools = {
	group = lawgroup_education_system
	
	icon = "gfx/interface/icons/law_icons/religious_schools.dds"
	
	progressiveness = 20
	
	unlocking_technologies = {
		cogito_ergo_sum
	}

	institution = institution_schools
	institution_modifier = {
		state_building_school_max_level_add = 1
	}
	
	possible_political_movements = {
		law_private_schools
		law_public_schools
	}	
	
	pop_support = {
		value = 0	
		add = {
			desc = "POP_WEALTH"			
			if = {
				limit = { 
					wealth >= 20
				}
				value = 0.15
			}
			if = {
				limit = { 
					wealth >= 22
				}
				value = 0.15
			}
			if = {
				limit = { 
					wealth >= 24
				}
				value = 0.15
			}	
			if = {
				limit = { 
					wealth >= 26
				}
				value = 0.15
			}				
			if = {
				limit = { 
					wealth >= 28
				}
				value = 0.15
			}			
			if = {
				limit = { 
					wealth >= 30
				}
				value = 0.15
			}			
		}		
	}	
}

law_private_schools = {
	group = lawgroup_education_system
	
	icon = "gfx/interface/icons/law_icons/private_schools.dds"
	
	progressiveness = 35
	
	unlocking_technologies = {
		academia
	}
	
	institution = institution_schools
	institution_modifier = {
		state_building_school_max_level_add = 1
	}
	
	possible_political_movements = {
		law_religious_schools
		law_public_schools
	}	
	
	pop_support = {
		value = 0	
		add = {
			desc = "POP_WEALTH"			
			if = {
				limit = { 
					wealth >= 20
				}
				value = 0.1
			}
			if = {
				limit = { 
					wealth >= 22
				}
				value = 0.1
			}
			if = {
				limit = { 
					wealth >= 24
				}
				value = 0.1
			}	
			if = {
				limit = { 
					wealth >= 26
				}
				value = 0.1
			}				
			if = {
				limit = { 
					wealth >= 28
				}
				value = 0.1
			}			
			if = {
				limit = { 
					wealth >= 30
				}
				value = 0.1
			}			
		}		
	}
}

law_public_schools = {
	group = lawgroup_education_system

	icon = "gfx/interface/icons/law_icons/public_schools.dds"
	
	progressiveness = 50
	
	unlocking_technologies = {
		empiricism
	}
	
	institution = institution_schools
	institution_modifier = {
		state_building_school_max_level_add = 1
	}
	
	possible_political_movements = {
		law_private_schools
		law_religious_schools
	}	
	
	pop_support = {
		value = 0	
		add = {
			desc = "POP_POVERTY"			
			if = {
				limit = { 
					standard_of_living <= 14
				}
				value = 0.1
			}
			if = {
				limit = { 
					standard_of_living <= 13
				}
				value = 0.1
			}
			if = {
				limit = { 
					standard_of_living <= 12
				}
				value = 0.1
			}	
			if = {
				limit = { 
					standard_of_living <= 11
				}
				value = 0.1
			}				
			if = {
				limit = { 
					standard_of_living <= 10
				}
				value = 0.1
			}			
			if = {
				limit = { 
					standard_of_living <= 9
				}
				value = 0.1
			}
			if = {
				limit = { 
					standard_of_living <= 8
				}
				value = 0.1
			}
			if = {
				limit = { 
					standard_of_living <= 7
				}
				value = 0.1
			}	
			if = {
				limit = { 
					standard_of_living <= 6
				}
				value = 0.1
			}	
			if = {
				limit = { 
					standard_of_living <= 5
				}
				value = 0.1
			}				
		}		
	}
}