﻿feudal_de_jure_law = {
	law_category = administrative
	
	law_gov_group = monarchy 

	potential = {
		government_type = government_type:monarchy
	}

	by_tradition = {
		country_modifier = {
			cultural_tradition_modifier = 0.05
			monthly_towards_inward = societal_value_monthly_move
		}
		years = 2
		
		estate_preferences = {
			nobles_estate
			clergy_estate
			peasants_estate
		}
	}
	by_blood = {
		country_modifier = {
			global_integration_speed_modifier = 0.10
			monthly_towards_outward = societal_value_monthly_move
		}
		years = 2
		
		estate_preferences = {
			burghers_estate
		}
	}
}

medieval_levy_law = {
	law_category = military

	law_gov_group = monarchy 

	potential = {
		government_type = government_type:monarchy
	}


	all_cultures = {
		country_modifier = {
			wrong_culture_levy_size = 0.2
			monthly_towards_decentralization = societal_value_monthly_move
		}
		years = 2

		estate_preferences = {
			burghers_estate
		}
	}
	noble_levies = {
		country_modifier = {
			nobles_estate_levy_size = 0.50
			monthly_towards_quality = societal_value_monthly_move
		}
		potential = {
			NOT = { tag = MAL }
		}
		
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}
	ton_ta_jon_ta_ni_woro = {
		unique = yes
		country_modifier = {
			nobles_estate_levy_size = 0.33
			global_nobles_estate_power = 0.15
			nobles_estate_target_satisfaction = small_permanent_target_satisfaction
			monthly_towards_quality = societal_value_monthly_move
		}
		potential = {
			has_or_had_tag = MAL
		}
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}
	peasant_levies = {
		country_modifier = {
			peasants_estate_levy_size = 0.10
			monthly_towards_quantity = societal_value_monthly_move
			levy_combat_efficiency_modifier = -0.10
			levy_recovery_modifier = 0.1  
		}
		
		estate_preferences = {
			peasants_estate
		}
		years = 2
	}
	longbow_competitions = {
		unique = yes
		country_modifier = {
			monthly_towards_belligerent = societal_value_monthly_move
			global_peasants_estate_power = 0.1
			levy_combat_efficiency_modifier = 0.10
		}
		potential = {
			OR = {
				has_advance = unlock_early_longbowmen_advance
				has_advance = unlock_longbowmen_advance
				has_advance = unlock_late_longbowmen_advance
			}
		}
		estate_preferences = {
			peasants_estate
		}
		years = 2
	}
	zamanitchka_voyska = {
		unique = yes
		potential = {
			has_or_had_tag = SER
		}
		country_modifier = {
			global_levy_size_modifier = 0.1
			monthly_towards_quality = societal_value_minor_monthly_move
		}
		estate_preferences = {
			peasants_estate
			clergy_estate
		}
		years = 2
	}
	paik_system = {
		unique = yes
		potential = {
			OR = {
				has_or_had_tag = AHO
				has_or_had_tag = MLB
				culture = { has_culture_group = culture_group:indian_group }
			}
		}
		allow = {
			OR = {
				has_advance = paik_system_advance
				has_advance = paik_regiments_advance
				has_advance = advanced_paik_system_advance
			}
		}
		country_modifier = {
			peasants_estate_levy_size = 0.04
			peasants_estate_max_tax = -0.1
			allow_paik_levies = yes
		}
		estate_preferences = {
			peasants_estate	
		}
		years = 2
	}
	alarde = {
		unique = yes
		potential = {
			culture = culture:castilian
		}
		allow = {
			OR = {
				has_or_had_tag = CAS
				has_or_had_tag = SPA
				culture = culture:castilian
			}
		}
		country_modifier = {
			monthly_towards_quality = societal_value_monthly_move
			global_burghers_estate_power = 0.1
			global_levy_recruitment_speed_modifier = 0.15
		}
		estate_preferences = {
			burghers_estate
		}
		years = 2
	}
}

royal_court_customs_law = {
	law_category = administrative

	law_gov_group = monarchy 

	potential = {
		government_type = government_type:monarchy
	}
	aristocratic_court_policy = {
		country_modifier = {
			monthly_towards_aristocracy = societal_value_monthly_move
			nobles_estate_target_satisfaction = medium_permanent_target_satisfaction
			court_spending_efficiency = -0.1
		}
		estate_preferences = {
			nobles_estate	
		}
		years = 2
	}
	balanced_court_policy = {
		country_modifier = {
			legislative_efficiency = 0.1
		}
		estate_preferences = {
			clergy_estate	
		}
		years = 2
	}
	court_of_culture_policy = {
		country_modifier = {
			cultural_influence_modifier = 0.1
			skill_of_new_artists = 0.1
			monthly_towards_innovative = societal_value_monthly_move
			court_spending_efficiency = -0.1
		}
		estate_preferences = {
			burghers_estate
		}
		years = 2
	}
	itinerant_court_policy = {
		allow = {
			societal_value:centralization_vs_decentralization >= 10
		}
		country_modifier = {
			capital_movement_cost_modifier = -0.33
			land_cost_on_distance_from_capital_speed_propagation = 0.10
			monthly_towards_decentralization = societal_value_large_monthly_move
			can_call_rural_parliaments = yes

		}



		estate_preferences = {
			peasants_estate
		}
		years = 2
	}
	harem_policy = {
		unique = yes
		potential = {
			AND = {
				has_slavery = yes
				religion.group = religion_group:muslim
			}
		}
		country_modifier = { #also unlocks the harem_law
			monthly_prestige = 0.1
			allow_female_cabinet = no
			forbid_marrying_lowborn = no
			pure_tooltip_entry = unlocks_harem_law_tt
		}
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}
	military_court_policy = { #prussian court
		unique = yes
		potential = {
			has_or_had_tag = PRU
			has_unlocked_policy_trigger = { type = military_court_policy }
		}
		allow = {
			OR = {
				current_age = age_5_absolutism
				current_age = age_6_revolutions
			}
		}
	
		country_modifier = {
			court_spending_efficiency = 0.2
			monthly_towards_land = societal_value_monthly_move
			army_tradition_decay = -0.002
		}
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}
	humanist_court_policy = { #palatine court
		unique = yes
		potential = {
			has_or_had_tag = PAL
		}
	
		country_modifier = {
			monthly_towards_innovative = societal_value_monthly_move
			monthly_towards_humanist = societal_value_monthly_move
			artist_salary_modifier = -0.2
		}
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}
	timurid_court_policy = {
		unique = yes
		potential = {
			has_unlocked_policy_trigger = { type = timurid_court_policy }
		}
		country_modifier = {
			cultures_capacity = 3
			cultural_influence_modifier = 0.1
		}
		estate_preferences = {
			burghers_estate
			peasants_estate
		}
		years = 2
	}
	

	valide_sultan_court_policy = { #Ottoman court
		unique = yes
		potential = {
			has_unlocked_policy_trigger = { type = valide_sultan_court_policy }
		}
		country_modifier = { #also unlocks the harem_law
			country_cabinet_efficiency = 0.05
			monthly_legitimacy = 0.05
			forbid_marrying_lowborn = no
			pure_tooltip_entry = unlocks_harem_law_tt
		}
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}

	foreign_court_customs_policy = {
		unique = yes
		potential = {
			has_unlocked_policy_trigger = { type = foreign_court_customs_policy }
		}
		country_modifier = {
			monthly_towards_innovative = societal_value_monthly_move
			skill_of_new_artists = 0.15
			court_spending_efficiency = -0.1
			monthly_towards_outward = societal_value_monthly_move
		}
		estate_preferences = {
			burghers_estate
		}
		years = 2
	}
	byz_porphyrogennetos_court_policy = {
		unique = yes
		potential = {
			has_or_had_tag = BYZ
		}
		country_modifier = {
			monthly_legitimacy = 0.05
			monthly_prestige = 0.05
			court_spending_efficiency = -0.1
			monthly_towards_aristocracy = societal_value_monthly_move
		}
		estate_preferences = {
			crown_estate
			nobles_estate
		}
		years = 2
	}
}

legitimization_of_power_law = {
	law_category = administrative
	machiavellian_rule_policy = {
		country_modifier = {
			declaring_war_cost_modifier = -0.1
			diplomatic_reputation = diplomatic_reputation_weak_penalty
			monthly_towards_belligerent = societal_value_minor_monthly_move
		}
		estate_preferences = {
			crown_estate
		}
		years = 2
	}
	six_livres_policy = {
		country_modifier = {
			monthly_legitimacy = 0.05
			stability_investment = small_stability_investment
		}
		estate_preferences = {
			clergy_estate
			nobles_estate
		}
		years = 2
	}
	two_treatises_of_government_policy = {
		allow = {
			OR = {
				current_age = age_5_absolutism
				current_age = age_6_revolutions
			}
		}
		country_modifier = {
			global_estate_target_satisfaction = small_permanent_target_satisfaction
			monthly_towards_liberalism = societal_value_monthly_move
		}
		estate_preferences = {
			burghers_estate
		}
		years = 2
	}
	the_leviathan_policy = {
		allow = {
			OR = {
				current_age = age_5_absolutism
				current_age = age_6_revolutions
			}
		}
		country_modifier = {
			global_crown_estate_power = 0.1
			global_separatism = -0.05
			monthly_towards_absolutism = societal_value_monthly_move
		}
		estate_preferences = {
			crown_estate
		}
		years = 2
	}
	the_social_contract_policy = {
		allow = {
			current_age = age_6_revolutions
		}
		country_modifier = {
			monthly_towards_communalism = societal_value_monthly_move
			tolerance_heretic = 1
			tolerance_heathen = 1
		}
		estate_preferences = {
			peasants_estate
		}
		years = 2
	}
	the_liberty_of_ancients_vs_moderns_policy = {
		allow = {
			current_age = age_6_revolutions
		}
		country_modifier = {
			monthly_towards_individualism = societal_value_monthly_move
			monthly_rebel_growth = -0.0003
			global_estate_target_satisfaction = small_permanent_target_satisfaction
		}
		estate_preferences = {
			burghers_estate
		}
		years = 2
	}
}

harem_law = {
	law_category = administrative
	potential = {
		OR = { 
			has_policy = harem_policy 
			has_policy = valide_sultan_court_policy
		}
	}
	dispersed_harem_policy = {
		country_modifier = {
			court_spending_efficiency = 0.2
			monthly_towards_decentralization = societal_value_minor_monthly_move
			country_child_education = 0.05
		}
		estate_preferences = {
			peasants_estate
		}
		years = 2
	}
	secluded_harem_policy = {
		country_modifier = {
			court_spending_efficiency = 0.1
			counter_espionage = 0.2
			monthly_towards_traditionalist = societal_value_minor_monthly_move
		}
		estate_preferences = {
			clergy_estate	
		}
		years = 2
	}
	public_harem_policy = {
		country_modifier = {
			counter_espionage = -0.2
			monthly_towards_aristocracy = societal_value_minor_monthly_move
			monthly_legitimacy = 0.1
		}
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}
	powerful_harem_policy = {
		country_modifier = {
			nobles_estate_target_satisfaction = medium_permanent_target_satisfaction_penalty
			monthly_towards_conciliatory = societal_value_minor_monthly_move
			global_crown_estate_power = 0.1
			allow_female_cabinet = yes
		}
		estate_preferences = {
			burghers_estate
		}
		years = 2
	}
	luxurious_harem_policy = {
		country_modifier = {
			court_spending_efficiency = -0.1
			skill_of_new_artists = 0.1
			monthly_prestige = 0.1
			monthly_towards_inward = societal_value_minor_monthly_move
		}
		estate_preferences = {
			nobles_estate
		}
		years = 2
	}
}