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

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

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

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

		if = {
			limit = { congress_poland_ai_rejects_law = yes }
			add = -750
		}
	}
}

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

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

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

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

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

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

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

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

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

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

		if = {
			limit = { divided_monarchists_ai_rejects_law = yes }
			add = -750
		}
	}
}

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

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

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

		if = {
			limit = { congress_poland_ai_rejects_law = yes }
			add = -750
		}
	}
}

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

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

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

		if = {
			limit = {
				OR = {
					any_revolution_ongoing = yes
					any_secession_ongoing = yes
				}
			}
			add = 500
		}
	}
}
