polish_constitutionalism_reform = {
	icon = poland_constitution_painting
	allow_normal_conversion = yes
	lock_level_when_selected = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			tag = POL
			tag = PLC
			has_reform = polish_constitutionalism_reform
		}
	}
	trigger = {
		has_reform = polish_constitutionalism_reform
	}
	modifiers = {
		monarch_admin_power = 1
		administrative_efficiency = 0.05
		max_absolutism = -10
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				ge_National_Strenghtening_province_update = yes
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = National_Strenghtening_Project
			}
		}
	}
	has_parliament = yes
	custom_attributes = {
		enables_national_strenghtening_project = yes #+15% Manpower, -0.05 monthly devastation and -10 Hostile Movement Speed in provinces with accepted culture.
	}
	ai = {
		factor = 100
	}
}

szlachta_authority_reform = {
	icon = szlachta_noble_1
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
			AND = {
				accepted_culture = polish
				num_of_owned_provinces_with = {
					value = 1
					culture = polish
				}
			}
		}
		NOT = { has_reform = polish_constitutionalism_reform }
	}
	trigger = { 
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
			AND = {
				accepted_culture = polish
				num_of_owned_provinces_with = {
					value = 5
					culture = polish
				}
			}
		}
		NOT = { has_reform = polish_constitutionalism_reform }
	}
	modifiers = {
		manpower_recovery_speed = 0.15
	}
	ai = {
		factor = 100
	}
	#5% Noble Loyalty
}

every_man_a_noble_reform = {
	icon = szlachta_noble_2
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
		has_reform = polish_constitutionalism_reform
	}
	trigger = { 
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
		has_reform = polish_constitutionalism_reform
	}
	modifiers = {
		manpower_recovery_speed = 0.10
		global_trade_goods_size_modifier = 0.05
	}
	ai = {
		factor = 101
	}
}

revoke_magnate_estates_reform = {
	icon = magnates_2
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
			has_reform = revoke_magnate_estates_reform 
		}
		has_reform = polish_constitutionalism_reform
	}
	trigger = { 
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
			has_reform = revoke_magnate_estates_reform 
		}
		has_reform = polish_constitutionalism_reform
	}
	modifiers = {
		governing_capacity = 150
		nobles_influence_modifier = -0.10
	}
	ai = {
		factor = 101
	}
}

abolish_the_sejm_reform = {
	icon = poland_sejm
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
		has_reform = polish_constitutionalism_reform
	}
	trigger = { 
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
		has_reform = polish_constitutionalism_reform
	}
	modifiers = {
		global_spy_defence = 0.25
		advisor_cost = -0.10
		promote_culture_cost = -0.50
	}
	ai = {
		factor = 101
	}
}

reform_the_sejm_reform = {
	icon = poland_sejm
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
		NOT = { has_reform = polish_constitutionalism_reform }
	}
	trigger = { 
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
		NOT = { has_reform = polish_constitutionalism_reform }
	}
	modifiers = {
		monthly_support_heir_gain = 0.10
		global_spy_defence = 0.25
		same_culture_advisor_cost = -0.1
	}
	ai = {
		factor = 100
	}
}

constitution_third_may_reform = {
	icon = poland_constitution_paper
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
	}
	trigger = {
		OR = {
			have_had_reform = reform_the_sejm_reform
			has_reform = reform_the_sejm_reform
		}
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish
		}
		NOT = { has_estate_privilege = estate_nobles_golden_liberty }
	}
	modifiers = {
		global_unrest = -2
		legitimacy = 1
		max_absolutism = -10
	}
	effect = {
		add_government_reform = polish_constitutionalism_reform
	}
	ai = {
		factor = 100
	}
}

pospolite_ruszenie_reform = {
	icon = national_guard
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish 
		}
		NOT = { has_reform = polish_constitutionalism_reform }
	}
	trigger = { 
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish 
		}
	}
	modifiers = {
		shock_damage = 0.10
		cavalry_flanking = 0.5
	}
	custom_attributes = {
		enables_white_knights = yes # Free buffed 'request additional manpower'
		#enables_rallied_for_war = yes # +5 Morale and 10% Morale Recovery for 5 years 
	}
	ai = {
		factor = 100
	}
}

polish_national_guard_reform = {
	icon = national_guard
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = { 
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish 
		}
		has_reform = polish_constitutionalism_reform
	}
	trigger = {
		OR = {
			tag = POL
			tag = PLC
			primary_culture = polish 
		}
		has_reform = polish_constitutionalism_reform
	}
	modifiers = {
		reinforce_speed = 0.33
		reinforce_cost_modifier = -0.20
		recover_army_morale_speed = 0.1
	}
	ai = {
		factor = 100
	}
}