﻿republic_government_obligations = {
	obligation_levels = {
		default = {
			levies = {
				scope:liege = {
					if = {
						limit = {
							scope:vassal = {
								primary_title.tier >= tier_county
							}
							culture = {
								has_cultural_parameter = republican_vassals_pay_more
							}
						}
						value = {
							add = 0.15
							# Add an extra with the right perk
							if = {
								limit = {
									dynasty ?= {
										has_dynasty_perk = fp2_urbanism_legacy_3
									}
								}
								add = 0.15
							}
						}
					}
					else = {
						value = {
							add = 0.1
							# Add an extra with the right perk
							if = {
								limit = {
									dynasty ?= {
										has_dynasty_perk = fp2_urbanism_legacy_3
									}
								}
								add = 0.15
							}
						}
					}
				}
			}
			tax = {
				scope:liege = {
					if = {
						limit = { government_has_flag = government_is_tribal }
						value = {
							add = 0.05
							# Add an extra with the right perk

							if = {
								limit = {
									dynasty ?= {
										has_dynasty_perk = fp2_urbanism_legacy_3
									}
								}
								add = 0.15
							}
						}
					}
					else_if = {
						limit = {
							scope:subject = {
								primary_title.tier >= tier_county
							}
							culture = {
								has_cultural_parameter = republican_vassals_pay_more
							}
						}
						value = {
							add = 0.3
							# Add an extra with the right perk

							if = {
								limit = {
									dynasty ?= {
										has_dynasty_perk = fp2_urbanism_legacy_3
									}
								}
								add = 0.15
							}
						}
					}
					else = {
						value = {
							add = 0.2
							# Add an extra with the right perk

							if = {
								limit = {
									dynasty ?= {
										has_dynasty_perk = fp2_urbanism_legacy_3
									}
								}
								add = 0.15
							}
						}
					}
				}
			}
			contribution_desc = {
				first_valid = {
					triggered_desc = {
						trigger = { scope:liege = { government_has_flag = government_is_tribal } }
						desc = "tribal_liege_inefficiency"
					}
					triggered_desc = {
						trigger = {
							scope:subject = {
								primary_title.tier >= tier_county
							}
							scope:liege.culture = {
								has_cultural_parameter = republican_vassals_pay_more
							}
						}
						desc = "republican_vassals_pay_more_parameter"
					}
				}
			}
		}
	}
}
