law_groups = {
	out_of_realm_inheritance_law = {
		law_type = realm
		allowed_for_councillors = yes
	}
	vassal_wars_law = {
		law_type = realm
		allowed_for_councillors = yes
	}
}

de_jure_laws = {
	out_of_realm_inheritance_law_0 = {
		group = out_of_realm_inheritance_law
		default = yes

		potential = {
			has_dlc = "Zeus"
			holder_scope = {
				is_tribal = no
				is_nomadic = no
				is_republic = no
				NOT = {
					government = order_government
				}
			}
		}

		allow = {
			has_law = out_of_realm_inheritance_law_1
		}

		revoke_allowed = {
			always = no
		}

		ai_will_do = {
			factor = 0
		}

		ai_will_revoke = {
			factor = 0
		}

		effect = {
			hidden_tooltip = {
				revoke_law = out_of_realm_inheritance_law_1
			}
			set_protected_inheritance = no
		}
	}
	out_of_realm_inheritance_law_1 = {
		group = out_of_realm_inheritance_law
		default = yes

		potential = {
			has_dlc = "Zeus"
			holder_scope = {
				is_tribal = no
				is_nomadic = no
				is_republic = no
				NOT = {
					government = order_government
				}
			}
		}

		allow = {
			has_law = out_of_realm_inheritance_law_0
		}

		revoke_allowed = {
			always = no
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.05
				always = yes
			}
		}

		ai_will_revoke = {
			factor = 0
		}

		effect = {
			hidden_tooltip = {
				revoke_law = out_of_realm_inheritance_law_0
			}
			set_protected_inheritance = yes
		}
	}

	# VASSAL WAR DECLARATION LAWS
	vassal_wars_law_0 = {
		group = vassal_wars_law
		default = yes

		potential = {
			has_dlc = "Zeus"
			holder_scope = {
				is_tribal = no
				is_nomadic = no
				is_republic = no
				is_theocracy = no
				NOR = {
					government = order_government
					government = panda_bureaucratic_gov
					government = panda_bureaucratic_gov_bis
				}
			}
		}

		allow = {
			OR = {
				has_law = vassal_wars_law_1
				AND = {
					NOT = {	has_law = vassal_wars_law_0 }
					NOT = {	has_law = vassal_wars_law_1 }
					NOT = {	has_law = vassal_wars_law_2 }
				}
			}
		}

		revoke_allowed = {
			always = no
		}

		ai_will_do = {
			factor = 0
		}

		ai_will_revoke = {
			factor = 0
		}

		effect = {
			hidden_tooltip = {
				revoke_law = vassal_wars_law_1
				revoke_law = vassal_wars_law_2
			}
			set_the_kings_peace = no
			set_the_kings_full_peace = no
		}
	}
	vassal_wars_law_1 = {
		group = vassal_wars_law

		potential = {
			has_dlc = "Zeus"
			holder_scope = {
				is_tribal = no
				is_nomadic = no
				is_republic = no
				is_theocracy = no
				NOR = {
					government = order_government
					government = panda_bureaucratic_gov
					government = panda_bureaucratic_gov_bis
				}
			}
		}

		allow = {
			OR = {
				has_law = vassal_wars_law_0
				has_law = vassal_wars_law_2
			}
			holder_scope = {
				primary_title = {
					has_law = ze_administration_laws_2
				}
			}
		}

		revoke_allowed = {
			always = no
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.05
				always = yes
			}
		}

		ai_will_revoke = {
			factor = 0
		}

		effect = {
			hidden_tooltip = {
				revoke_law = vassal_wars_law_0
				revoke_law = vassal_wars_law_2
			}
			set_the_kings_peace = yes
			set_the_kings_full_peace = no
		}
		feudal_opinion = -5
	}
	vassal_wars_law_2 = { # do not need to forcefully add it for dragon anymore
						  # as all CBs trigger has been updated
		group = vassal_wars_law

		potential = {
			has_dlc = "Zeus"
			holder_scope = {
				is_tribal = no
				is_nomadic = no
				is_republic = no
				is_theocracy = no
				NOR = {
					government = order_government
					government = panda_bureaucratic_gov
					government = panda_bureaucratic_gov_bis
				}
			}
		}

		allow = {
			has_law = vassal_wars_law_1
			holder_scope = {
				primary_title = {
					has_law = ze_administration_laws_2
				}
			}
		}

		revoke_allowed = {
			always = no
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.05
				always = yes
			}
		}

		ai_will_revoke = {
			factor = 0
		}

		effect = {
			hidden_tooltip = {
				revoke_law = vassal_wars_law_0
				revoke_law = vassal_wars_law_1
			}
			set_the_kings_peace = yes
			set_the_kings_full_peace = yes
		}
		feudal_opinion = -10
	}
}
