#To be set on the subject's scope

afr_check_autonomy_score_effect = {
	hidden_effect = {
		if = {
			limit = {
				OVERLORD = { 
					has_tech = telephone 
				}
			}
			add_to_variable = { afr_check_autonomy_score = 10 }
		}
		else_if = {
			limit = {
				OVERLORD = { 
					has_tech = electrical_telegraph 
				}
			}
			add_to_variable = { afr_check_autonomy_score = 5 }
		}
		else_if = {
			limit = {
				OVERLORD = { 
					has_tech = tribal_carrier_birds 
				}
			}
			add_to_variable = { afr_check_autonomy_score = 1 }
		}
		if = {
			limit = {
				OVERLORD = { has_tech = wireless_telegraphy }
			}
			add_to_variable = { afr_check_autonomy_score = 10 }
		}
		if = {
			limit = {
				OVERLORD = { has_tech = early_radio }
			}
			add_to_variable = { afr_check_autonomy_score = 10 }
		}
		if = {
			limit = {
				OVERLORD = { 
					all_owned_state = {
						if = {
							limit = {
								is_in_home_area = yes
							}
							is_in_home_area = yes
							infrastructure > 0
						}
					}
				}
			}
			add_to_variable = { afr_check_autonomy_score = 10 }
		}
	}
}










