peasantrepublic_obligations = {
	uses_opinion_of_liege = yes
	obligation_levels = {
		default = {
			levies = {
				value = 0.1
				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.1
				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.1
				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 = {
				value = 0.1
				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
						}
					}
				}
			}
		}
	}
}
