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

		if = {
			limit = {
				NOT = { has_institution = institution_police }
				kai_can_afford_institution = no
			}
			add = -1000
		}

		if = {
			limit = {
				has_law_or_variant = law_type:law_no_police
			}
			add = 500
		}

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

		if = {
			limit = {
				has_journal_entry = je_hawaii
			}
			add = 1000
		}
	}
}

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

		if = {
			limit = {
				NOT = { has_institution = institution_police }
				kai_can_afford_institution = no
			}
			add = -1000
		}

		if = {
			limit = {
				has_law_or_variant = law_type:law_no_police
			}
			add = 500
		}

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

		if = {
			limit = {
				has_journal_entry = je_hawaii
			}
			add = 1000
		}
	}
}

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

		if = {
			limit = {
				NOT = { has_institution = institution_police }
				kai_can_afford_institution = no
			}
			add = -1000
		}

		if = {
			limit = {
				has_law_or_variant = law_type:law_no_police
			}
			add = 500
		}

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