﻿nomad_government_herd = {
	display_mode = tree
	icon = herd_icon
	obligation_levels = {
		herd_tax_exempt = {
			position = { 0 0 }

			herd = exempt_herd_tax
			subject_opinion = 10

			ai_liege_desire = 1
			ai_subject_desire = 5
			score = 2
		}
		herd_tax_low = {
			parent = herd_tax_exempt
			position = { 1 0 }

			herd = low_herd_tax
			subject_opinion = 5

			ai_liege_desire = {
				value = 2
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_nomadic
								vassal_contract_obligation_level:nomad_government_herd <= herd_tax_exempt_level
							}
						}
					}
					add = 8
				}
			}
			ai_subject_desire = 4
			score = 1
		}
		herd_tax_normal = {
			default = yes
			parent = herd_tax_low
			position = { 2 0 }

			herd = normal_herd_tax

			ai_liege_desire = {
				value = 3
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_nomadic
								vassal_contract_obligation_level:nomad_government_herd <= herd_tax_low_level
							}
						}
					}
					add = 7
				}
			}
			ai_subject_desire = 3
			score = 0
		}
		herd_tax_high = {
			parent = herd_tax_normal
			position = { 3 0 }
			
			herd = high_herd_tax
			subject_opinion = -15

			ai_liege_desire = {
				value = 4
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_nomadic
								vassal_contract_obligation_level:nomad_government_herd <= herd_tax_normal_level
							}
						}
					}
					add = 6
				}
			}
			ai_subject_desire = 2
			score = -1
			flag = obligation_high_taxes
		}
		herd_tax_extortionate = {
			parent = herd_tax_high
			position = { 4 0 }
			
			herd = extortionate_herd_tax
			subject_opinion = -25

			ai_liege_desire = {
				value = 5
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_nomadic
								vassal_contract_obligation_level:nomad_government_herd <= herd_tax_high_level
							}
						}
					}
					add = 5
				}
			}
			ai_subject_desire = 1
			score = -2
			flag = obligation_high_taxes
		}
	}
}

nomad_government_taxes = {
	display_mode = tree
	icon = gold_icon
	obligation_levels = {
		nomad_tax_exempt = {
			default = yes
			position = { 0 0 }

			tax = exempt_nomad_tax

			ai_liege_desire = 1
			ai_subject_desire = 5
			score = 2
		}
		nomad_tax_low = {
			parent = nomad_tax_exempt
			position = { 1 0 }

			tax = low_nomad_tax
			subject_opinion = -5

			ai_liege_desire = {
				value = 2
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_feudal
								vassal_contract_obligation_level:feudal_government_taxes <= feudal_tax_exempt_level
							}
						}
					}
					add = 8
				}
			}
			ai_subject_desire = 4
			score = 1
		}
		nomad_tax_normal = {
			parent = nomad_tax_low
			position = { 2 0 }

			tax = normal_nomad_tax
			subject_opinion = -15

			ai_liege_desire = {
				value = 3
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_feudal
								vassal_contract_obligation_level:feudal_government_taxes <= feudal_tax_low_level
							}
						}
					}
					add = 7
				}
			}
			ai_subject_desire = 3
			score = 0
		}
		nomad_tax_high = {
			parent = nomad_tax_normal
			position = { 3 0 }
			
			tax = high_nomad_tax
			subject_opinion = -25

			ai_liege_desire = {
				value = 4
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_feudal
								vassal_contract_obligation_level:feudal_government_taxes <= feudal_tax_normal_level
							}
						}
					}
					add = 6
				}
			}
			ai_subject_desire = 2
			score = -1
			flag = obligation_high_taxes
		}
		nomad_tax_extortionate = {
			parent = nomad_tax_high
			position = { 4 0 }
			
			tax = extortionate_nomad_tax
			subject_opinion = -40

			ai_liege_desire = {
				value = 5
				if = {
					limit = {
						scope:liege = {
							ai_should_focus_on_building_in_their_capital = yes
						}
						scope:subject = {
							AND = {
								government_has_flag = government_is_feudal
								vassal_contract_obligation_level:feudal_government_taxes <= feudal_tax_high_level
							}
						}
					}
					add = 5
				}
			}
			ai_subject_desire = 1
			score = -2
			flag = obligation_high_taxes
		}
	}
}

nomad_government_prestige = {
	display_mode = tree
	icon = prestige_icon
	obligation_levels = {
		prestige_transfer_none = {
			position = { 0 0 }

			prestige = 0

			ai_liege_desire = 1
			ai_subject_desire = 5
			score = 2
		}
		prestige_transfer_normal = {
			parent = prestige_transfer_none
			position = { 1 0 }

			prestige = 0.15
			subject_opinion = -10

			ai_liege_desire = 5
			ai_subject_desire = 3
			score = 1
		}
		prestige_transfer_high = {
			parent = prestige_transfer_normal
			position = { 2 0 }

			prestige = 0.3
			subject_opinion = -25

			ai_liege_desire = 7
			ai_subject_desire = 1
			score = 0
		}
	}
}
