﻿clan_tax_collector_obligations = {
	obligation_levels = {
		default = {
			levies = {
				value = 0
				if = {
					limit = { exists = scope:tax_collector }
					add = clan_government_levies_default
					multiply = {
						value =	{
							add = scope:tax_collector.tax_collector_aptitude:clan_tax_slot
							save_temporary_value_as = tax_collector_aptitude_value
							if = {
								limit = {
									scope:tax_collector_aptitude_value = 5
								}
								add = 10
							}
							else_if = {
								limit = {
									scope:tax_collector_aptitude_value = 4
								}
								add = 6
							}
							else_if = {
								limit = {
									scope:tax_collector_aptitude_value = 3
								}
								add = 3
							}
							else_if = {
								limit = {
									scope:tax_collector_aptitude_value = 2
								}
								add = 1
							}
							else = {
								add = 0
							}
						}
					}
				}
			}

			tax = {
				value = 0
				if = {
					limit = { exists = scope:tax_collector }
					add = {
						value = clan_government_tax_default
						multiply = {
							value =	{
								add = scope:tax_collector.tax_collector_aptitude:clan_tax_slot
								save_temporary_value_as = tax_collector_aptitude_value
								if = {
									limit = {
										scope:tax_collector_aptitude_value = 5
									}
									add = 10
								}
								else_if = {
									limit = {
										scope:tax_collector_aptitude_value = 4
									}
									add = 6
								}
								else_if = {
									limit = {
										scope:tax_collector_aptitude_value = 3
									}
									add = 3
								}
								else_if = {
									limit = {
										scope:tax_collector_aptitude_value = 2
									}
									add = 1
								}
								else = {
									add = 0
								}
							}
						}
					}
				}
			}
		}
	}
}
