﻿INJECT:law_per_capita_based_taxation = {
	ai_enact_weight_modifier = { #Petitions
		value = 0

		if = {
			limit = { ai_has_enact_weight_modifier_journal_entries = yes }
			add = 750
		}

		# KAI: Tax reform is important
		if = {
			limit = {
				OR = {
					has_law_or_variant = law_type:law_consumption_based_taxation
					has_law_or_variant = law_type:law_land_based_taxation
				}
				pop_type_percent_country = {
					pop_type = peasants
					percent < 0.75
				}
			}
			add = 1000
		}

		if = {
			limit = {
				has_law_or_variant = law_type:law_proportional_taxation
				kai_gdp_per_capita >= 1.5
			}
			add = -1000
		}

		# Once the AI gets to a certain society tech level they should try to ditch Land Taxation for Per-Capital Taxtion
		if = {
			limit = {
				OR = {
					has_technology_researched = civilizing_mission
					has_technology_researched = human_rights
					has_technology_researched = pan-nationalism
				}
				has_law_or_variant = law_type:law_land_based_taxation
			}

			add = 1000
		}

		if = {
			limit = {
				OR = {
					has_journal_entry = je_sick_man_bureaucracy
					has_journal_entry = je_meiji_main
					has_journal_entry = je_great_reforms_bureaucratic
					has_journal_entry = je_hawaii
					has_journal_entry = je_portugal_regeneration
				}
				has_law_or_variant = law_type:law_land_based_taxation
			}
			add = 5000
		}
	}
}

INJECT:law_proportional_taxation = {
	ai_enact_weight_modifier = { #Petitions
		value = 0

		if = {
			limit = { ai_has_enact_weight_modifier_journal_entries = yes }
			add = 750
		}

		# KAI: Tax reform is important
		if = {
			limit = {
				OR = {
					has_law_or_variant = law_type:law_consumption_based_taxation
					has_law_or_variant = law_type:law_land_based_taxation
					has_law_or_variant = law_type:law_per_capita_based_taxation
				}
				kai_gdp_per_capita >= 1.5
			}
			add = 1000
		}

		if = {
			limit = {
				OR = {
					has_journal_entry = je_sick_man_bureaucracy
					has_journal_entry = je_meiji_main
					has_journal_entry = je_great_reforms_bureaucratic
					has_journal_entry = je_hawaii
					has_journal_entry = je_portugal_regeneration
				}
				has_law_or_variant = law_type:law_land_based_taxation
			}
			add = 5000
		}
	}
}
