# Bastion of the Landowners
# Can also appeal to the Devout, PB, and Industrialists

conservative_party = {
	color = { 108 64 179 }
	name = {
		first_valid = {
			triggered_desc = {
				desc = party_christian_social_party
				trigger = {
					exists = c:AUS
					THIS = c:AUS
				}
			}
			# triggered_desc = {
				# desc = party_constitutional_party
				# trigger = {
					# exists = c:PEU
					# THIS = c:PEU
				# }
			# }
			# triggered_desc = {
				# desc = party_national_autonomist
				# trigger = {
					# exists = c:ARG
					# THIS = c:ARG
				# }
			# }
			# triggered_desc = {
				# desc = party_tories
				# trigger = {
					# exists = c:GBR
					# THIS = c:GBR
				# }
			# }
			# triggered_desc = {
				# desc = party_us_democrats
				# trigger = {
					# exists = c:USA
					# THIS = c:USA
				# }
			# }
			triggered_desc = {
				desc = party_moderate_party
				trigger = {
					exists = c:SPA
					THIS = c:SPA
				}
			}
			triggered_desc = {
				desc = party_regenerator_party
				trigger = {
					exists = c:POR
					THIS = c:POR
				}
			}
			triggered_desc = {
				desc = party_lantmanna_party
				trigger = {
					exists = c:SWE
					THIS = c:SWE
				}
			}
			triggered_desc = {
				desc = party_finnish_party
				trigger = {
					exists = c:FIN
					THIS = c:FIN
				}
			}
			# triggered_desc = {
				# desc = party_catholic_party
				# trigger = {
					# exists = c:BEL
					# THIS = c:BEL
				# }
			# }
			# triggered_desc = {
				# desc = party_party_of_the_right
				# trigger = {
					# exists = c:LUX
					# THIS = c:LUX
				# }
			# }
			triggered_desc = {
				desc = party_peoples_party
				trigger = {
					exists = c:MON
					THIS = c:MON
				}
			}
			# triggered_desc = {
				# desc = party_bonapartist_party
				# trigger = {
					# exists = c:FRA
					# THIS = c:FRA
				# }
			# }
			# triggered_desc = {
				# desc = party_octobrist_party
				# trigger = {
					# exists = c:RUS
					# THIS = c:RUS
					# has_law = law_type:law_monarchy
				# }
			# }
			triggered_desc = {
				desc = party_constitutional_association
				trigger = {
					exists = c:CHI
					THIS = c:CHI
					has_law = law_type:law_monarchy
				}
			}
			triggered_desc = {
				desc = party_imperial_rule_party
				trigger = {
					exists = c:JAP
					THIS = c:JAP
					has_law = law_type:law_monarchy
				}
			}
			triggered_desc = {
				desc = party_moderate_socialists_party
				trigger = {
					exists = c:PER
					THIS = c:PER
				}
			}
			# triggered_desc = {
				# desc = party_russian_party
				# trigger = {
					# exists = c:GRE
					# THIS = c:GRE
				# }
			# }
			# triggered_desc = {
				# desc = party_blanco_party
				# trigger = {
					# exists = c:URU
					# THIS = c:URU
				# }
			# }
			# triggered_desc = {
				# desc = party_colorado_party
				# trigger = {
					# exists = c:PRG
					# THIS = c:PRG
				# }
			# }
			triggered_desc = {
				desc = party_the_right
				trigger = {
					OR = {
						country_has_primary_culture = cu:north_italian
						country_has_primary_culture = cu:south_italian
						country_has_primary_culture = cu:central_italian #DVG
						country_has_primary_culture = cu:sardinian #DVG
						country_has_primary_culture = cu:venetian #DVG
					}
				}
			}
			# triggered_desc = {
				# desc = party_hoyre
				# trigger = {
					# country_has_primary_culture = cu:norwegian
				# }
			# }
			# triggered_desc = {
				# desc = party_democratic_party
				# trigger = {
					# country_has_primary_culture = cu:dixie
				# }
			# }
			triggered_desc = {
				desc = party_hojre
				trigger = {
					country_has_primary_culture = cu:scandinavian
				}
			}
			# triggered_desc = {
				# desc = party_liberal_conservative_party
				# trigger = {
					# country_has_primary_culture = cu:anglo_canadian
				# }
			# }
			triggered_desc = {
				desc = party_the_iron_ring
				trigger = {
					exists = c:QIN
					THIS = c:QIN
				}
			}
			triggered_desc = {
				desc = party_moderate_party
				trigger = {
					country_has_primary_culture = cu:anglois
				}
			}
			triggered_desc = {
				desc = party_conservative
				trigger = {
					always = yes
				}
			}
		}
	}
	icon = {
		default = "/gfx/interface/icons/political_parties/conservatism.dds"
	}
	# THIS IS RUN ONLY ONCE AT GAME START
	valid_for_country = {
		always = yes
	}
	available_for_interest_group = {
		owner = {
			country_has_voting_franchise = yes
			ig:ig_landowners = {
				is_marginal = no
			}
		}
		# unions can never be conservative
		NOT = { is_interest_group_type = ig_trade_unions }
	}
	    
	# Root - IG considering joining
	# scope:number - the number of IGs that would join this party before the root IG
	join_weight = {
		value = {
			value = -5
			desc = "base_value"
		}
		if = { # socialists and radicals won't join conservative parties
			limit = {
				leader = { 
					OR = {
						has_ideology = ideology_communist
						has_ideology = ideology_vanguardist
						has_ideology = ideology_anarchist
						has_ideology = ideology_social_democrat
						has_ideology = ideology_radical
						has_ideology = ideology_atheist
					}
				}
			}
			add = {
				value = -20
				desc = "from_leftist"
			}
		}
		if = { # conservatives love conservativism
			limit = {
				leader = {
					OR = {
						has_ideology = ideology_traditionalist
						has_ideology = ideology_royalist
						has_ideology = ideology_theocrat
						has_ideology = ideology_slaver
					}
				}
			}
			add = {
				value = 5
				desc = "from_conservative_leader"
			}
		}
		if = { # conservatives love conservativism
			limit = {
				OR = {
					has_ideology = ideology_paternalistic
					has_ideology = ideology_stratocratic
					has_ideology = ideology_patriarchal
					has_ideology = ideology_moralist
				}
			}
			add = {
				value = 5
				desc = "from_conservative_ig"
			}
		}
		if = { # armed forces will join if a more powerful member has jingoist leader
			limit = {
				is_interest_group_type = ig_armed_forces
				exists = owner.py:conservative_party
				owner = {
					any_interest_group = {
						is_member_of_party = owner.py:conservative_party
						is_powerful = yes
						leader = {
							has_ideology = ideology_jingoist_leader
						}
					}
				}
			}
			add = {
				value = 5
				desc = "from_jingoist_party_leader"
			}
		}
		if = { # landowners will join if they are even moderately powerful
			limit = {
				ig_clout >= 0.15
				is_interest_group_type = ig_landowners
			}
			add = {
				value = 5
				desc = "from_powerful_conservative_ig"
			}
		}
		if = { # various progressives dislike conservativism
			limit = {
				leader = {
					OR = {
						has_ideology = ideology_feminist
						has_ideology = ideology_pacifist
						has_ideology = ideology_reformer
					}
				}
			}
			add = {
				value = -5
				desc = "from_progressive_con"
			}
		}
		# Abolitionists won't join conservative party
		if = {
			limit = {
				leader = {
					has_ideology = ideology_abolitionist
				}
				owner = {
					NOT = { has_law = law_type:law_slavery_banned }
				}
			}
			add = {
				value = -20
				desc = "from_anti_slavery"
			}
		}
		if = { # patriots are inclined towards conservativism
			limit = {
				has_ideology = ideology_patriotic
			}
			add = {
				value = 5
				desc = "from_patriot"
			}
		}
		if = { # capitalists more likely to join conservatives when the poor can vote
			limit = {
				OR = {
					has_ideology = ideology_plutocratic
					has_ideology = ideology_paternalistic
				}
				owner = {
					has_law = law_type:law_universal_suffrage
				}
			}
			add = {
				value = 5
				desc = "from_capitalists_suffrage"
			}
		}
		if = { # capitalists and landowners more likely to join with progressive taxation
			limit = {
				OR = {
					has_ideology = ideology_plutocratic
					has_ideology = ideology_stratocratic
				}
				owner = {
					has_law = law_type:law_graduated_taxation
				}
			}
			add = {
				value = 2
				desc = "from_capitalists_tax"
			}
		}
		if = { # capitalists more likely to join conservatives with public health
			limit = {
				has_ideology = ideology_individualist
				owner = {
					has_law = law_type:law_public_health_insurance
				}
			}
			add = {
				value = 2
				desc = "from_capitalists_health"
			}
		}
		if = { # devout, industrialists more likely to join conservatives with public schools
			limit = {
				OR = {
					has_ideology = ideology_individualist
					has_ideology = ideology_pious
				}
				owner = {
					has_law = law_type:law_public_schools
				}
			}
			add = {
				value = 2
				desc = "from_capitalists_schools"
			}
		}
		if = { # devout more likely to join conservatives with total separation
			limit = {
				has_ideology = ideology_moralist
				owner = {
					has_law = law_type:law_total_separation
				}
			}
			add = {
				value = 5
				desc = "from_devout_separation"
			}
		}
		if = { # devout more likely to join conservatives with freedom of conscience
			limit = {
				has_ideology = ideology_moralist
				owner = {
					has_law = law_type:law_freedom_of_conscience
				}
			}
			add = {
				value = 3
				desc = "from_devout_conscience"
			}
		}
		if = { # patriarchs more likely to join conservatives with women's suffrage
			limit = {
				has_ideology = ideology_patriarchal
				owner = {
					has_law = law_type:law_womens_suffrage
				}
			}
			add = {
				value = 3
				desc = "from_patriarchy"
			}
		}
		if = { # patriarchs more likely to join conservatives with working women
			limit = {
				has_ideology = ideology_patriarchal
				owner = {
					has_law = law_type:law_women_in_the_workplace
				}
			}
			add = {
				value = 2
				desc = "from_patriarchy_lesser"
			}
		}
		if = { # reactionaries like regressing from multiculturalism
			limit = {
				has_ideology = ideology_reactionary
				owner = {
					has_law = law_type:law_multicultural
				}
			}
			add = {
				value = 2
				desc = "from_multiculturalism"
			}
		}
		if = { # patriots don't like freedom
			limit = {
				has_ideology = ideology_patriotic
				owner = {
					has_law = law_type:law_guaranteed_liberties
				}
			}
			add = {
				value = 2
				desc = "from_liberty"
			}
		}
		if = { # conservatives like censorship
			limit = {
				owner = {
					has_technology_researched = law_enforcement
					OR = { 
						has_law = law_type:law_right_of_assembly
						has_law = law_type:law_protected_speech
					}
				}
				has_ideology = ideology_patriarchal
			}
			add = {
				value = 3
				desc = "from_no_censorship"
			}
		}
		if = { # conservatives hate republics
			limit = {
				OR = {
					has_ideology = ideology_moralist
					has_ideology = ideology_paternalistic
				}
				owner = {
					NOR = {
						has_law = law_type:law_monarchy
						has_law = law_type:law_theocracy
					}
				}
			}
			add = {
				value = 3
				desc = "from_republic"
			}
		}
		if = { # landowners and industrialists hate labor rights
			limit = {
				OR = {
					has_ideology = ideology_stratocratic
					has_ideology = ideology_laissez_faire
				}
				OR = {
					owner = {
						has_law = law_type:law_regulatory_bodies
						has_law = law_type:law_worker_protections
					}
				}
			}
			add = {
				value = 5
				desc = "from_labor_rights"
			}
		}
		if = { # conservatives hate welfare
			limit = {
				OR = {
					has_ideology = ideology_stratocratic
					has_ideology = ideology_individualist
				}
				OR = {
					owner = {
						has_law = law_type:law_wage_subsidies
						has_law = law_type:law_old_age_pension
					}
				}
			}
			add = {
				value = 5
				desc = "from_welfare"
			}
		}
		if = { # conservatives like police
			limit = {
				OR = {
					has_paternalist_ideology = yes
					has_ideology = ideology_patriotic
				}
				owner = {
					has_technology_researched = law_enforcement
					has_law = law_type:law_no_police
				}
			}
			add = {
				value = 3
				desc = "from_no_police"
			}
		}

		if = {
			limit = {
				is_interest_group_type = ig_landowners
				is_powerful = yes
			}
			multiply = {
				value = 2
				desc = "from_archetype_party"
			}
		}
		if = {
			limit = {
				scope:number = 1
				is_powerful = no
				is_marginal = no
			}
			multiply = {
				value = 2
				desc = "from_influential_supporting_member"
			}
		}
		else_if = {
			limit = {
				scope:number = 2
			}
			multiply = {
				value = 0.5
				desc = "from_two_prior_members"
			}
		}
		else_if = {
			limit = {
				scope:number = 3
			}
			multiply = {
				value = 0.25
				desc = "from_three_prior_members"
			}
		}
		else_if = {
			limit = {
				scope:number > 3
			}
			multiply = {
				value = 0.1
				desc = "from_more_than_three_prior_members"
			}
		}
	}
}