# Party for IG's that want free trade when it is not passed yet
# Should usually only appear when the Landowners want Free Trade

free_trade_party = {
	color = { 150 20 20 }
	name = {
		first_valid = {
			# triggered_desc = {
				# desc = party_orleanists
				# trigger = {
					# exists = c:FRA
					# THIS = c:FRA
				# }
			# }
			# triggered_desc = {
				# desc = party_peelites
				# trigger = {
					# exists = c:GBR
					# THIS = c:GBR
				# }
			# }
			triggered_desc = {
				desc = party_historic_party
				trigger = {
					exists = c:POR
					THIS = c:POR
				}
			}
			triggered_desc = {
				desc = party_old_lantmanna_party
				trigger = {
					exists = c:SWE
					THIS = c:SWE
				}
			}
			triggered_desc = {
				desc = party_communications_clique
				trigger = {
					exists = c:CHI
					THIS = c:CHI
				}
			}
			# triggered_desc = {
				# desc = party_national_party
				# trigger = {
					# exists = c:CHL
					# THIS = c:CHL
				# }
			# }
			triggered_desc = {
				desc = party_party_of_peaceful_renovation
				trigger = {
					exists = c:RUS
					THIS = c:RUS
					has_law = law_type:law_monarchy
				}
			}
			triggered_desc = {
				desc = party_free_minded_venstre
				trigger = {
					country_has_primary_culture = cu:scandinavian
				}
			}
			triggered_desc = {
				desc = party_free_conservative_party
				trigger = {
					OR = {
						country_has_primary_culture = cu:north_german
						country_has_primary_culture = cu:south_german
						country_has_primary_culture = cu:rheinish #DVG
					}
				}
			}
			triggered_desc = {
				desc = party_free_trade
				trigger = {
					always = yes
				}
			}
		}
	}
	icon = {
		default = "/gfx/interface/icons/political_parties/free_trade.dds"
	}
	unlocking_technologies = {
		stock_exchange
	}
	# THIS IS RUN ONLY ONCE AT GAME START
	valid_for_country = {
		always = yes
	}
	available_for_interest_group = {
		owner = {
			country_has_voting_franchise = yes
			any_interest_group = {
				is_marginal = no
				OR = {
					is_interest_group_type = ig_industrialists
					leader = {
						has_ideology = ideology_market_liberal
					}
				}
			}
		}
	}
	    
    # 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 = { # capitalists like capitalism
			limit = {
				OR = {
					leader = {
						has_ideology = ideology_market_liberal
					}
					has_ideology = ideology_laissez_faire
				}
			}
			add = {
				value = 5
				desc = "from_capitalism"
			}
		}
		# powerful capitalists likely to form their own party
		if = {
			limit = {
				is_powerful = yes
				OR = {
					leader = {
						has_ideology = ideology_market_liberal
					}
					has_ideology = ideology_laissez_faire
				}
			}
			add = {
				value = 10
				desc = "from_powerful_capitalists"
			}
		}
		# weaker market liberals fall behind powerful industrialists
		if = {
			limit = {
				is_powerful = no
				owner = {
					ig:ig_industrialists = {
						is_powerful = yes
					}
				}
				leader = {
					has_ideology = ideology_market_liberal
				}
			}
			add = {
				value = 5
				desc = "from_powerful_capitalists_other"
			}
		}
		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 = { # capitalists hate children
			limit = {
				owner = {
					NOT = { has_law = law_type:law_child_labor_allowed }
				}
				OR = {
					leader = {
						has_ideology = ideology_market_liberal
					}
					has_ideology = ideology_laissez_faire
				}
			}
			add = {
				value = 3
				desc = "from_hates_children"
			}
		}
		if = { # capitalists want free trade
			limit = {
				owner = {
					NOT = { has_law = law_type:law_free_trade }
				}
				OR = {
					leader = {
						has_ideology = ideology_market_liberal
					}
					has_ideology = ideology_laissez_faire
				}
			}
			add = {
				value = 3
				desc = "from_no_free_trade"
			}
		}
		if = { # capitalists want to have power
			limit = {
				owner = {
					NOR = {
						has_law = law_type:law_oligarchy
						has_law = law_type:law_wealth_voting
					}
				}
				has_ideology = ideology_plutocratic
			}
			add = {
				value = 3
				desc = "from_no_oligarchy_wealth_voting"
			}
		}
		if = { # liberal-capitalist anti-autocracy alliance
			limit = {
				owner = {
					has_law = law_type:law_autocracy
				}
				has_ideology = ideology_republican
			}
			add = {
				value = 3
				desc = "from_autocracy"
			}
		}
		if = { # capitalist-reactionary anti-democracy alliance
			limit = {
				owner = {
					has_law = law_type:law_universal_suffrage
				}
				OR = {
					has_ideology = ideology_paternalistic
					leader = {
						has_ideology = ideology_fascist
					}
				}
			}
			add = {
				value = 3
				desc = "from_universal_suffrage"
			}
		}
		if = { # capitalist-meritocratic taxation alliance
			limit = {
				owner = {
					has_technology_researched = currency_standards
					NOT = { has_law = law_type:law_per_capita_based_taxation }
					NOT = { has_law = law_type:law_consumption_based_taxation }
				}
				OR = {
					has_ideology = ideology_plutocratic
					has_ideology = ideology_meritocratic
				}
			}
			add = {
				value = 3
				desc = "from_no_per_capita_tax"
			}
		}
		if = { # capitalist-conservative taxation alliance
			limit = {
				owner = {
					has_law = law_type:law_graduated_taxation
				}
				OR = {
					has_ideology = ideology_plutocratic
					has_ideology = ideology_meritocratic
					has_ideology = ideology_stratocratic
				}
			}
			add = {
				value = 3
				desc = "from_graduated_taxation"
			}
		}
		if = { # alliance for consumption taxes
			limit = {
				owner = {
					NOT = { has_law = law_type:law_consumption_based_taxation }
					NOT = { has_law = law_type:law_per_capita_based_taxation }
				}
				OR = {
					has_ideology = ideology_agrarian
					has_ideology = ideology_stratocratic
				}
			}
			add = {
				value = 3
				desc = "from_no_consumption_tax"
			}
		}
		if = { # opposition to command economy
			limit = {
				owner = {
					has_law = law_type:law_command_economy
					has_technology_researched = central_planning
				}
				OR = {
					has_ideology = ideology_paternalistic
					has_ideology = ideology_laissez_faire
					has_ideology = ideology_agrarian
					leader = {
						has_ideology = ideology_market_liberal
					}
				}
			}
			add = {
				value = 3
				desc = "from_command_economy"
			}
		}
		if = { # pro-private schools
			limit = {
				owner = {
					has_technology_researched = academia
					OR = {
						has_law = law_type:law_no_schools
						has_law = law_type:law_religious_schools
					}
				}
				OR = {
					has_ideology = ideology_individualist
					has_ideology = ideology_anti_clerical
				}
			}
			add = {
				value = 3
				desc = "from_lack_of_private_schools"
			}
		}
		if = {
            limit = {
                is_interest_group_type = ig_industrialists
                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"
            }
        }
	}
}
