﻿el_landed_camp_purpose_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = { has_realm_law = $CAMP_PURPOSE$ }
				add = 5
			}
		}
	}
}

el_landed_camp_purpose_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = { has_realm_law = $CAMP_PURPOSE$ }
				add = -5
			}
		}
	}
}


el_landed_education_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = { has_trait = education_$SKILL$_2 }
				add = 2
			}
			else_if = {
				limit = { has_trait = education_$SKILL$_3 }
				add = 4
			}
			else_if = {
				limit = { has_trait = education_$SKILL$_4 }
				add = 7
			}
			else_if = {
				limit = { has_trait = education_$SKILL$_5 }
				add = 10
			}
		}
	}
}

el_landed_education_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = { has_trait = education_$SKILL$_2 }
				add = -2
			}
			else_if = {
				limit = { has_trait = education_$SKILL$_3 }
				add = -4
			}
			else_if = {
				limit = { has_trait = education_$SKILL$_4 }
				add = -7
			}
			else_if = {
				limit = { has_trait = education_$SKILL$_5 }
				add = -10
			}
		}
	}
}

el_landed_intelect_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = { scope:$SCOPE$ = { has_trait =  intellect_good_1 } }
				add = 5
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_good_2 } }
				add = 10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_good_3 } }
				add = 15
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_bad_1 } }
				add = -5
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_bad_2 } }
				add = -10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_bad_3 } }
				add = -15
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = shrewd } }
				add = 10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = dull } }
				add = -10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = inbred } }
				add = -15
			}			
		}
	}							
}

el_landed_intelect_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = { scope:$SCOPE$ = { has_trait =  intellect_good_1 } }
				add = -5
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_good_2 } }
				add = -10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_good_3 } }
				add = -15
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_bad_1 } }
				add = 5
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_bad_2 } }
				add = 10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = intellect_bad_3 } }
				add = 15
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = shrewd } }
				add = -10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = dull } }
				add = 10
			}
			if = {
				limit = { scope:$SCOPE$ = { has_trait = inbred } }
				add = 15
			}				
		}
	}							
}

el_landed_con_nei_fervor_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			add = scope:el_employer.faith.fervor
			subtract = scope:el_landed_con_nei_fin.faith.fervor
			multiply = 0.3
		}
	}							
}

el_landed_con_nei_fervor_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			add = scope:el_employer.faith.fervor
			subtract = scope:el_landed_con_nei_fin.faith.fervor
			multiply = -0.3
		}
	}							
}

el_landed_con_nei_reformed_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					NOT = { scope:el_landed_con_nei_fin.faith = { has_doctrine_parameter = unreformed } }
				}
				add =  -10
			}
		}
	}							
}

el_landed_con_nei_reformed_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					NOT = { scope:el_landed_con_nei_fin.faith = { has_doctrine_parameter = unreformed } }
				}
				add =  10
			}
		}
	}							
}

el_landed_con_nei_cynical_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					scope:el_landed_con_nei_fin= { has_trait = cynical } 
				}
				add =  10
			}
		}
	}							
}

el_landed_con_nei_cynical_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					scope:el_landed_con_nei_fin= { has_trait = cynical } 
				}
				add =  -10
			}
		}
	}							
}

el_landed_con_nei_theologian_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					 has_trait = theologian 
				}
				add =  5
			}
		}
	}							
}

el_landed_con_nei_theologian_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					 has_trait = theologian 
				}
				add =  -5
			}
		}
	}							
}

el_landed_sup_fac_military_strenght_bonus_more_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					max_military_strength <= 250
				}
				add =  -15
			}
			else_if = {
				limit = {
					max_military_strength > 250
					max_military_strength <= 500
				}
				add =  -5
			}
			else_if = {
				limit = {
					max_military_strength > 500
					max_military_strength <= 1000
				}
				add =  0
			}
			else_if = {
				limit = {
					max_military_strength > 1000
					max_military_strength <= 2000
				}
				add =  5
			}
			else_if = {
				limit = {
					max_military_strength > 2000
				}
				add =  10
			}
		}
	}
}

el_landed_sup_fac_military_strenght_bonus_less_modifier = {
	modifier = {
		add = {
			value = 0
			if = {
				limit = {
					max_military_strength <= 250
				}
				add =  15
			}
			else_if = {
				limit = {
					max_military_strength > 250
					max_military_strength <= 500
				}
				add =  5
			}
			else_if = {
				limit = {
					max_military_strength > 500
					max_military_strength <= 1000
				}
				add =  0
			}
			else_if = {
				limit = {
					max_military_strength > 1000
					max_military_strength <= 2000
				}
				add =  -5
			}
			else_if = {
				limit = {
					max_military_strength > 2000
				}
				add =  -10
			}
		}
	}
}