peasantrepublic_obligations = {
	display_mode = tree
	uses_opinion_of_liege = yes
	icon = prestige_icon
	obligation_levels = {
		military_canton_p = {
			position = { 0 0 }
			parent = balanced_canton_p
			levies = {
				value = 0.2
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			tax = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			barter_goods = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			herd = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			
			ai_liege_desire = {
				value = 0
				if = {
					limit = {
						scope:subject = {
							is_ai = yes
							OR = {
								has_trait = education_martial
								martial >= very_high_skill_rating
								primary_title = { any_owned_title_maa_regiment = { count > 4 } }
								AND = { # Large inland themes are good for military
									any_sub_realm_county = { count >= 5 }
									any_sub_realm_county = { percent >= 0.95 is_coastal_county = no }
								}
							}
						}
					}
					add = 2
				}
				if = {
					limit = {
						scope:liege = {
							ai_has_warlike_personality = yes
						}
					}
					add = 1
				}
			}
			subject_opinion = -5
			ai_subject_desire = -1
			
			score = -1
			subject_modifier = {
				fort_level = 2
				hostile_county_attrition = -0.3
				hostile_raid_time = 0.75
				development_growth_factor = -0.25
				men_at_arms_cap = 2
				men_at_arms_maintenance = -0.2
			}
			flag = obligation_high_levies
		}
		
		balanced_canton_p = {
			default = yes
			position = { 1 0 }
			levies = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			tax = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			barter_goods = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			ai_liege_desire = {
				value = 0
				if = {
					limit = {
						scope:subject = {
							is_ai = yes
						}
					}
					add = 1
				}
			}
			
			score = 0
			ai_subject_desire = 1
			
			subject_modifier = {
				monthly_martial_lifestyle_xp_gain_mult = 0.1
				monthly_stewardship_lifestyle_xp_gain_mult = 0.1
				monthly_diplomacy_lifestyle_xp_gain_mult = 0.1
				monthly_treasury_from_military_budget_base = 0.5
				monthly_treasury_from_salary_budget_base = 0.5
			}
		}
		civilian_canton_p = {
			parent = balanced_canton_p
			position = { 2 0 }
			levies = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			tax = {
				value = 0.2
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			barter_goods = {
				value = 0.2
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			herd = {
				max = 1
				scope:liege = {
					add = {
						value = 0.1
						multiply = legitimacy_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = prestige_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = piety_level
					}
				}
				scope:liege = {
					add = {
						value = 0.1
						multiply = dynasty_prestige_level
					}
				}
				if = {
					limit = { OR = { scope:opinion_of_liege > 0 scope:opinion_of_liege < 0} }
					add = {
						value = {
							add = scope:opinion_of_liege
							divide = 100
						}
					}
				}
			}
			ai_liege_desire = {
				value = 0
				if = {
					limit = {
						scope:subject = {
							is_ai = yes
							OR = {
								has_trait = education_stewardship
								stewardship >= very_high_skill_rating
								AND = { # Large semi-coastal themes are good for an economic focus
									any_sub_realm_county = { count >= 2 is_coastal_county = yes }
									any_sub_realm_county = { count >= 2 is_coastal_county = no }
								}
							}
						}
					}
					add = 2
				}
				if = {
					limit = {
						scope:liege = {
							ai_has_builder_or_pious_builder_personality = yes
						}
					}
					add = 1
				}
			}
			ai_subject_desire = 2
			
			subject_opinion = 10
			score = 1
			subject_modifier = {
				development_growth_factor = 0.2
				build_gold_cost = -0.1
				build_speed = -0.1
				men_at_arms_limit = -2
				men_at_arms_cap = -2
			}
			flag = obligation_high_taxes
		}
	}
}
