﻿centeral_law_policy = {
	cumulative = no
	flag = policy_4
	flag = policy
	flag = policy_5_buttons

	centeral_law_policy_0 = {
		default = yes
		modifier = {
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = centeral_law_policy_1 
				AND = {
					NOT = {
						has_realm_law = centeral_law_policy_2
					}
					NOT = {
						has_realm_law = centeral_law_policy_3 
					}
					NOT = {
						has_realm_law = centeral_law_policy_4 
					}
				}

			}
			NOT = {
				has_realm_law = de_centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_2
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_4 
			}
		}
		
		on_pass = {
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_central 
				level = imperial_special_contracts_central_none
			}
		 }

		
	}
	centeral_law_policy_1 = {
		modifier = {
			liege_opinion = 10
			dread_gain_mult = -0.25
			development_growth_factor = 0.1
			fellow_vassal_opinion = 10
			monthly_county_control_change_add = 1
			levy_reinforcement_rate = -0.1
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = centeral_law_policy_0
				has_realm_law = centeral_law_policy_2
			}
			
			NOT = {
				has_realm_law = de_centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_2
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_central 
				level = imperial_special_contracts_central_1
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value > 30
					}
				}
				value = 1
			}
		}

		
	}
	centeral_law_policy_2 = {
		modifier = {
			liege_opinion = 15
			dread_gain_mult = -0.4
			development_growth_factor = 0.2
			fellow_vassal_opinion = 20
			monthly_county_control_change_add = 2
			levy_reinforcement_rate = -0.2
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = centeral_law_policy_3
				has_realm_law = centeral_law_policy_1
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_2
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_central 
				level = imperial_special_contracts_central_2
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value > 30
					}
				}
				value = 1
			}
		}

		
	}
	centeral_law_policy_3 = {
		modifier = {
			liege_opinion = 20
			dread_gain_mult = -0.5
			development_growth_factor = 0.3
			fellow_vassal_opinion = 30
			monthly_county_control_change_add = 3
			levy_reinforcement_rate = -0.3
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = centeral_law_policy_4
				has_realm_law = centeral_law_policy_2
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_2
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_central 
				level = imperial_special_contracts_central_3
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value > 30
					}
				}
				value = 1
			}
		}

		
	}
	centeral_law_policy_4 = {
		modifier = {
			liege_opinion = 30
			dread_gain_mult = -0.6
			development_growth_factor = 0.4
			fellow_vassal_opinion = 40
			monthly_county_control_change_add = 4
			levy_reinforcement_rate = -0.4
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			has_realm_law = centeral_law_policy_3
			NOT = {
				has_realm_law = de_centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_2
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = de_centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_central 
				level = imperial_special_contracts_central_4
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value > 30
					}
				}
				value = 1
			}
		}

		
	}
}

de_centeral_law_policy = {
	cumulative = no
	flag = policy_5
	flag = policy
	flag = policy_5_buttons

	de_centeral_law_policy_0 = {
		default = yes
		modifier = {
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = de_centeral_law_policy_1 
				AND = {
					NOT = {
						has_realm_law = de_centeral_law_policy_2
					}
					NOT = {
						has_realm_law = de_centeral_law_policy_3 
					}
					NOT = {
						has_realm_law = de_centeral_law_policy_4 
					}
				}

			}
			NOT = {
				has_realm_law = centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = centeral_law_policy_2
			}
			NOT = {
				has_realm_law = centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = centeral_law_policy_4 
			}
		}
		
		on_pass = {
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_de_central 
				level = imperial_special_contracts_de_central_none
			}
		}

		
	}
	de_centeral_law_policy_1 = {
		modifier = {
			liege_opinion = -10
			development_growth_factor = -0.1
			fellow_vassal_opinion = -10
			monthly_county_control_change_add = -1
			levy_reinforcement_rate = 0.1
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = de_centeral_law_policy_0
				has_realm_law = de_centeral_law_policy_2
			}
			NOT = {
				has_realm_law = centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = centeral_law_policy_2
			}
			NOT = {
				has_realm_law = centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_de_central 
				level = imperial_special_contracts_de_central_1
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value < -30
					}
				}
				value = 1
			}
		}

		
	}
	de_centeral_law_policy_2 = {
		modifier = {
			liege_opinion = -15
			development_growth_factor = -0.2
			fellow_vassal_opinion = -20
			monthly_county_control_change_add = -2
			levy_reinforcement_rate = 0.2
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = de_centeral_law_policy_1
				has_realm_law = de_centeral_law_policy_3
			}
			NOT = {
				has_realm_law = centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = centeral_law_policy_2
			}
			NOT = {
				has_realm_law = centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_de_central 
				level = imperial_special_contracts_de_central_2
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value < -30
					}
				}
				value = 1
			}
		}

		
	}
	de_centeral_law_policy_3 = {
		modifier = {
			liege_opinion = -20
			development_growth_factor = -0.3
			fellow_vassal_opinion = -30
			monthly_county_control_change_add = -3
			levy_reinforcement_rate = 0.3
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			OR = {
				has_realm_law = de_centeral_law_policy_2
				has_realm_law = de_centeral_law_policy_4
			}
			NOT = {
				has_realm_law = centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = centeral_law_policy_2
			}
			NOT = {
				has_realm_law = centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_de_central 
				level = imperial_special_contracts_de_central_3
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value < -30
					}
				}
				value = 1
			}
		}

		
	}
	de_centeral_law_policy_4 = {
		modifier = {
			liege_opinion = -30
			development_growth_factor = -0.4
			fellow_vassal_opinion = -40
			monthly_county_control_change_add = -4
			levy_reinforcement_rate = 0.4
		}

		can_keep = { has_imperial_vassal_laws = yes }

		can_pass = { 
			has_imperial_vassal_laws = yes
			has_realm_law = de_centeral_law_policy_3
			NOT = {
				has_realm_law = centeral_law_policy_1 
			}
			NOT = {
				has_realm_law = centeral_law_policy_2
			}
			NOT = {
				has_realm_law = centeral_law_policy_3 
			}
			NOT = {
				has_realm_law = centeral_law_policy_4 
			}
		}
		
		pass_cost = {
			gold = 250
		}
		
		on_pass = { 
			vassal_contract_set_obligation_level = {
				type = imperial_special_contracts_de_central 
				level = imperial_special_contracts_de_central_4
			}
		}
		ai_will_do = {
			if = {
				limit = { 
					opinion = {
						target = liege
						value < -30
					}
				}
				value = 1
			}
		}

		
	}
}
	
