﻿farmers = {
	texture = "gfx/interface/icons/pops_icons/farmers.dds"
	color = hsv{ 0.54 0.58 0.82 }
	start_quality_of_life = 10
	wage_weight = 2
	pays_land_tax = yes
	paid_private_wage = yes
	dependent_wage = 0.5	# per year
	unemployment = yes

	# 40% - 80% politically engaged
	political_engagement_base = 0.40
	political_engagement_literacy_factor = 0.40

	political_engagement_mult = {
		value = 1

		add = {
			desc = "POP_STARVATION"

			if = {
				limit = {
					is_in_mild_starvation = yes
				}
				value = 0.5
			}
			else_if = {
				limit = {
					is_in_severe_starvation = yes
				}
				value = 1.5
			}
		}

		multiply = {
			desc = "HAS_POLITICAL_AGITATION"
			value = 1.0

			if = {
				limit = {
					owner = {
						has_technology_researched = political_agitation
					}
				}
				value = 1.5
			}
		}

		multiply = {
			desc = "HOMESTEADING_LAW"
			value = 1.0

			if = {
				limit = {
					owner = {
						has_law_or_variant = law_type:law_homesteading
					}
				}
				value = 1.25
			}
		}
	}

	qualifications_growth_desc = "FARMERS_QUALIFICATIONS_DESC"
	qualifications = {
		# baseline: wealth (max 30) / 2, norm 10 for Peasants with Wealth 10
		add = {
			value = wealth
			max = 30
			divide = 2
			desc = "QUALIFICATIONS_WEALTH_FACTOR"
		}
		if = {
			limit = {
				OR = {
					is_pop_type = peasants
					is_pop_type = laborers
				}
			}
			multiply = {
				value = 2 #was 2
				desc = "QUALIFICATIONS_FAVORED_TYPE"
			}
		}
		if = {
			limit = {
				is_pop_type = aristocrats
			}
			multiply = {
				value = 5 #was none
				desc = "QUALIFICATIONS_FAVORED_TYPE"
			}
		}
		if = {
			limit = {
				is_peasant_under_serfdom = yes
			}
			multiply = {
				value = 0.25
				desc = "QUALIFICATIONS_PEASANTS_UNDER_SERFDOM"
			}
		}
		if = {
			limit = {
				has_pop_religion = jewish
			}
			multiply = {
				value = 0.2
				desc = "jewish"
			}
		}
		if = {
			limit = {
				state = {
					state_cultural_acceptance = {  
						target = PREV.culture
						value < acceptance_status_2
					}
				}
			}
			multiply = {
				value = 0.1
				desc = "QUALIFICATIONS_CULTURAL_DISCRIMINATION"
			}
		}
		else_if = {
			limit = {
				state = {
					state_cultural_acceptance = {  
						target = PREV.culture
						value < acceptance_status_3
					}
				}
			}
			multiply = {
				value = 0.25
				desc = "QUALIFICATIONS_CULTURAL_DISCRIMINATION"
			}
		}
		else_if = {
			limit = {
				state = {
					state_cultural_acceptance = {  
						target = PREV.culture
						value < acceptance_status_4
					}
				}
			}
			multiply = {
				value = 0.5
				desc = "QUALIFICATIONS_CULTURAL_DISCRIMINATION"
			}
		}
		else_if = {
			limit = {
				state = {
					state_cultural_acceptance = {  
						target = PREV.culture
						value < acceptance_status_5
					}
				}
			}
			multiply = {
				value = 0.75
				desc = "QUALIFICATIONS_CULTURAL_DISCRIMINATION"
			}
		}
	}

	portrait_age = {
		integer_range = {
			min = define:NPortrait|GRACEFUL_AGING_START
			max = define:NPortrait|GRACEFUL_AGING_END
		}
	}
	portrait_pose = { value = 0 }
	portrait_is_female = { always = yes }
}
