﻿ideology_reformer = {
	icon = "gfx/interface/icons/ideology_icons/ideology_leader/ideology_leader_reformer.dds"
	
	character_ideology = yes
	
	lawgroup_citizenship = {
		law_multicultural = disapprove	
		law_ethnostate = disapprove
		law_national_supremacy = disapprove
		law_racial_segregation = neutral
		law_cultural_exclusion = approve
	}
	
	lawgroup_rights_of_women = {
		law_no_womens_rights = neutral
		law_women_own_property = approve
		law_women_in_the_workplace = neutral
		law_womens_suffrage = neutral
	}
	
	lawgroup_childrens_rights = {
		law_child_labor_allowed = disapprove
		law_restricted_child_labor = neutral
		law_compulsory_primary_school = approve
	}
	
	possible = {
		owner = {
			has_technology_researched = egalitarianism
			NOT = { has_technology_researched = feminism }
		}
		# Agitators should have an ideology at odds with current laws
		NAND = {
			has_role = agitator
			owner = {
				has_law = law_type:law_cultural_exclusion
				has_law = law_type:law_compulsory_primary_school
			}
		}
		# Any Interest Group
		scope:interest_group = {
			NOR = {
				has_variable = communist_ig_var
				has_variable = chose_vanguardism
				has_variable = chose_fascism
				has_variable = chose_conservatism
				has_variable = chose_ethno_nationalism
			}
		}
	}
	
	leader_weight = {
		value = 100
		# less likely when issues are not relevant
		if = {
			limit = {
				owner = {
					NOR = {
						has_law = law_type:law_ethnostate
						has_law = law_type:law_national_supremacy
						has_law = law_type:law_racial_segregation
						has_law = law_type:law_no_womens_rights
						has_law = law_type:law_child_labor_allowed
					}
				}
			}
			add = -100
		}
		# less likely among more progressive IG's if they're angry and socialism is researched
		if = {
			limit = {
				owner = {
					has_technology_researched = socialism
				}
				scope:interest_group = {
					OR = {
						is_interest_group_type = ig_intelligentsia
						is_interest_group_type = ig_trade_unions
					}
					ig_approval < 0
				}
			}
			add = -75
		}
		# more likely when issues are relevant
		if = {
			limit = {
				owner = {
					OR = {
						has_law = law_type:law_ethnostate
						has_law = law_type:law_national_supremacy
						has_law = law_type:law_racial_segregation
						has_law = law_type:law_no_womens_rights
						has_law = law_type:law_child_labor_allowed
					}
				}
			}
			add = 50
		}
		# liberal and/or radical leaders have a higher spawn chance if the Dreyfusards won.
		if = {
			limit = {
				scope:interest_group = {
					has_variable = dreyfusard_victory
				}
			}
			add = 50
		}
		# Pedro JE victory
		if = {
			limit = {
				owner = {
					has_variable = brz_enduring_empire
				}
			}
			add = 50
		}
		#Babism in Persia 1
		if = {
			limit = {
				owner = { has_variable = babism_done_1 }
			}
			multiply = 3
		}
		#Babism in Persia 2
		if = {
			limit = {
				owner = { has_variable = babism_done_2 }
			}
			multiply = 2
		}
	}
}

ideology_pacifist = {
	icon = "gfx/interface/icons/ideology_icons/ideology_leader/ideology_leader_pacifist.dds"
	
	character_ideology = yes

	lawgroup_army_model = {
		law_national_militia = approve
		law_professional_army = disapprove
		law_peasant_levies = disapprove
		law_mass_conscription = disapprove
	}

	lawgroup_colonization = {		
		law_no_colonial_affairs = approve
		law_colonial_resettlement = strongly_disapprove
		law_colonial_exploitation = strongly_disapprove
		law_frontier_colonization = strongly_disapprove
	}
	
	possible = {
		# Agitators should have an ideology at odds with current laws
		NAND = {
			has_role = agitator
			owner = {
				has_law = law_type:law_national_militia
				has_law = law_type:law_no_colonial_affairs
			}
		}
		scope:interest_group = {
			NOR = {
				is_interest_group_type = ig_armed_forces
				is_interest_group_type = ig_armed_forces
			}
		}
		scope:interest_group = {
			NOR = {
				has_variable = communist_ig_var
				has_variable = chose_vanguardism
				has_variable = chose_fascism
				has_variable = chose_conservatism
				has_variable = chose_ethno_nationalism
			}
		}
	}
	
	leader_weight = {
		value = 100
		# emerges to counter powerful armed forces
		if = {
			limit = {
				owner = {
					exists = ig:ig_armed_forces
					ig:ig_armed_forces = {
						is_powerful = yes
					}
				}
			}
			add = 50
		}
		# less likely if issues are not relevant
		if = {
			limit = {
				owner = {
					NOR = {
						has_law = law_type:law_colonial_resettlement
						has_law = law_type:law_colonial_exploitation
						has_law = law_type:law_peasant_levies
						has_law = law_type:law_mass_conscription
					}
				}
			}
			add = -75
		}
		# more likely if a war you started isn't going well
		if = {
			limit = {
				owner = {
					is_at_war = yes
					any_scope_war = {
						attacker_warleader = { this = ROOT.owner }
						has_war_support = {
							target = root.owner
							value < 0
						}
					}
				}
			}
			add = 100
		}
		# more likely with devastation in incorporated states
		if = {
			limit = {
				owner = {
					any_scope_state = {
						is_incorporated = yes
						devastation > 20
					}
				}
			}
			add = 50
		}
		# liberal and/or radical leaders have a higher spawn chance if the Dreyfusards won.
		if = {
			limit = {
				scope:interest_group = {
					has_variable = dreyfusard_victory
				}
			}
			add = 50
		}
		#Babism in Persia 1
		if = {
			limit = {
				owner = { has_variable = babism_done_1 }
				scope:interest_group = {
					is_interest_group_type = ig_devout
				}
			}
			multiply = 3
		}
		#Babism in Persia 2
		if = {
			limit = {
				owner = { has_variable = babism_done_2 }
				scope:interest_group = {
					is_interest_group_type = ig_devout
				}
			}
			multiply = 2
		}
	}
}