barbarian_tribe = {
	monarchy = yes
	tribal = yes

	color = { 210 200 75 }
	
	valid_for_new_country = yes
	allow_convert = no
	valid_for_nation_designer = yes
	nation_designer_cost = 10
	nation_designer_trigger = {
		technology_group = barbarian
	}
	
	ai_will_do = {
		factor = 0
	}

	rank = {
		1 = {
			land_forcelimit_modifier = 0.75
			global_manpower_modifier = 0.75
 			global_manpower = 1
			global_regiment_cost = -0.4	

			technology_cost = 0.5
			global_prov_trade_power_modifier = -1.0
			development_cost = 0.5
			max_absolutism = -10
		}
		2 = {
			land_forcelimit_modifier = 0.75
			global_manpower_modifier = 0.75
 			global_manpower = 1
			global_regiment_cost = -0.4	

			technology_cost = 0.5
			global_prov_trade_power_modifier = -1.0
			development_cost = 0.5
			max_absolutism = -10
		}
		3 = {
			land_forcelimit_modifier = 0.75
			global_manpower_modifier = 0.75
 			global_manpower = 1
			global_regiment_cost = -0.4	

			technology_cost = 0.5
			global_prov_trade_power_modifier = -1.0
			development_cost = 0.5
			max_absolutism = -10
		}
	}
	
}

parliamentary_republic = {
	republic = yes
	
	color = { 45 205 220 }

	duration = 4

	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			NOT = { government = presidental_republic }
		}
	}
	
	republican_name = yes
	royal_marriage = no

	valid_for_new_country = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 40
	
	ai_importance = 4

	has_parliament = yes
	
	max_states = 3
	
	rank = {
		1 = {
			tolerance_heathen = 1
			stability_cost_modifier = -0.10
			global_autonomy = -0.15
			max_absolutism = -30
		}
		2 = {
			tolerance_heathen = 1
			stability_cost_modifier = -0.10
			global_autonomy = -0.15
			max_absolutism = -30
		}
		3 = {
			tolerance_heathen = 1
			stability_cost_modifier = -0.10
			global_autonomy = -0.15
			max_absolutism = -30
		}
	}

	faction = conservative_party
	faction = communist_party
	faction = liberal_party
	faction = social_democratic_party
	faction = nationalist_party
	faction = national_socialist_party
}

presidental_republic = {
	republic = yes
	
	color = { 35 185 220 }

	duration = 4

	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			NOT = { government = parliamentary_republic }
		}
	}
	
	republican_name = yes
	royal_marriage = no

	valid_for_new_country = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 40

	ai_importance = 4

	has_parliament = yes
	
	max_states = 3
	
	rank = {
		1 = {
			tolerance_heathen = 1
			stability_cost_modifier = -0.10
			global_autonomy = -0.15
			max_absolutism = -30
		}
		2 = {
			tolerance_heathen = 1
			stability_cost_modifier = -0.10
			global_autonomy = -0.15
			max_absolutism = -30
		}
		3 = {
			tolerance_heathen = 1
			stability_cost_modifier = -0.10
			global_autonomy = -0.15
			max_absolutism = -30
		}
	}

	faction = conservative_party
	faction = communist_party
	faction = liberal_party
	faction = social_democratic_party
	faction = nationalist_party
	faction = national_socialist_party
}

parliamentary_monarchy = {
	monarchy = yes
	
	color = { 200 160 160 }
	
	valid_for_new_country = yes
	
	ai_will_do = {
		factor = 1
	}
	ai_importance = 4

	valid_for_new_country = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 40

	has_parliament = yes
	
	max_states = 3

	rank = {
		1 = {
			legitimacy = 1
			years_of_nationalism = -5
			global_autonomy = -0.15
			max_absolutism = -30
		}
		2 = {
			legitimacy = 1
			years_of_nationalism = -5
			global_autonomy = -0.15
			max_absolutism = -30
		}
		3 = {
			legitimacy = 1
			years_of_nationalism = -5
			global_autonomy = -0.15
			max_absolutism = -30
		}
	}

	faction = conservative_party
	faction = communist_party
	faction = liberal_party
	faction = social_democratic_party
	faction = nationalist_party
	faction = national_socialist_party
}

communist_dictatorship = {
	republic = yes
	
	color = { 200 10 10 }

	republican_name = yes
	royal_marriage = no

	valid_for_new_country = no
	allow_convert = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 30

	ai_will_do = {
		factor = 0
	}
	
	max_states = 3
	
	rank = {
		1 = {
			global_regiment_cost = -0.25
			army_tradition = 0.5
			global_manpower_modifier = 0.25
			max_absolutism = 10

			tolerance_heretic = -1
			tolerance_heathen = -1
		}
		2 = {
			global_regiment_cost = -0.25
			army_tradition = 0.5
			global_manpower_modifier = 0.25
			max_absolutism = 10

			tolerance_heretic = -1
			tolerance_heathen = -1
		}
		3 = {
			global_regiment_cost = -0.25
			army_tradition = 0.5
			global_manpower_modifier = 0.25
			max_absolutism = 10

			tolerance_heretic = -1
			tolerance_heathen = -1
		}
	}

}

socialist_republic = {
	republic = yes
	
	color = { 200 10 80 }

	duration = 6

	republican_name = yes
	royal_marriage = no

	valid_for_new_country = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 30

	ai_will_do = {
		factor = 0
	}
	
	max_states = 3

	rank = {
		1 = {
			global_regiment_cost = -0.2
			global_manpower_modifier = 0.2
			max_absolutism = -10
		}
		2 = {
			global_regiment_cost = -0.2
			global_manpower_modifier = 0.2
			max_absolutism = -10
		}
		3 = {
			global_regiment_cost = -0.2
			global_manpower_modifier = 0.2
			max_absolutism = -10
		}
	}

}

fascist_dictatorship = {
	republic = yes
	
	color = { 60 10 10 }
	
	republican_name = yes
	royal_marriage = no

	valid_for_new_country = no
	allow_convert = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 30
	
	militarised_society = yes	

	ai_will_do = {
		factor = 0
	}
	
	max_states = 3
	
	#bonus
	rank = {
		3 = {
			land_forcelimit_modifier = 1.0
			global_regiment_cost = -0.25
			army_tradition = 0.5
			global_manpower_modifier = 0.25
			global_unrest = -1
			culture_conversion_cost = -0.2

			tolerance_heretic = -2
			tolerance_heathen = -2
			unjustified_demands = 0.2
			max_absolutism = 10
		}
	}
	fixed_rank = 3
}

military_junta = {
	dictatorship = yes
	
	color = { 163 81 22 }

	duration = 4

	republican_name = yes
	royal_marriage = no

	valid_for_new_country = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 30
	
	militarised_society = yes	

	ai_will_do = {
		factor = 0
	}
	
	max_states = 3

	rank = {
		1 = {
			global_regiment_cost = -0.2
			global_manpower_modifier = 0.2
			army_tradition = 0.02
			max_absolutism = 10
		}
		2 = {
			global_regiment_cost = -0.2
			global_manpower_modifier = 0.2
			army_tradition = 0.02
			max_absolutism = 10
		}
		3 = {
			global_regiment_cost = -0.2
			global_manpower_modifier = 0.2
			army_tradition = 0.02
			max_absolutism = 10
		}
	}
}

caliphate = {
	monarchy = yes
	
	color = { 39 135 53 }

	valid_for_new_country = no
	allow_convert = no

	valid_for_nation_designer = yes
	nation_designer_cost = 30	
	nation_designer_trigger = {
		religion_group = muslim
	}
	
	max_states = 2
	
	rank = {
		3 = {
			land_morale = 0.05
			discipline = 0.05
			global_missionary_strength = 0.02
			max_absolutism = 5
		}
	}
	fixed_rank = 3
}

imperial_roman_republic = {
	monarchy = yes
	
	color = { 135 35 76 }

	valid_for_new_country = no
	allow_convert = no

	valid_for_nation_designer = yes
	nation_designer_cost = 30

	rank = {
		3 = {
			land_morale = 0.05
			global_autonomy = -0.1
			development_cost = -0.4
			max_absolutism = 5
		}
	}
	fixed_rank = 3

	faction = imperials
	faction = senators
	faction = generals
}

roman_republic = {
	republic = yes
	
	color = { 135 30 155 }
	
	duration = 3

	republican_name = yes
	royal_marriage = no
	
	valid_for_new_country = no
	allow_convert = no
	valid_for_nation_designer = yes
	nation_designer_cost = 30
	
	rank = {
		3 = {
			development_cost = -0.4
			global_own_trade_power = 0.10
			max_absolutism = -30
		}
	}
	fixed_rank = 3
}

margraviate = {
	monarchy = yes
	
	color = { 135 45 20 }
	
	valid_for_new_country = no
	allow_convert = no
	valid_for_nation_designer = yes
	nation_designer_cost = 10
	nation_designer_trigger = {
		is_part_of_hre = yes
	}
	
	max_states = 2
	
	rank = {
		1 = {
			land_forcelimit_modifier = 0.15
			global_manpower_modifier = 0.15
		}
		2 = {
			land_forcelimit_modifier = 0.15
			global_manpower_modifier = 0.15
		}
	}
	fixed_rank = 1
}

plutocratic_republic = {
	republic = yes

	valid_for_new_country = no
	valid_for_nation_designer = yes
	nation_designer_cost = 40	
	
	color = { 255 200 0 }
	
	duration = 4

	republican_name = yes
	royal_marriage = no
	
	boost_income = yes
	can_use_trade_post = yes
	can_form_trade_league = yes
	
	faction = conservative_party
	faction = communist_party
	faction = liberal_party
	faction = social_democratic_party
	faction = nationalist_party
	faction = national_socialist_party

	ai_will_do = {
		factor = 0	
	}
	
	max_states = 3
	
	has_parliament = yes
	
	rank = {
		1 = {
			merchants = 1
			caravan_power = 0.33
			global_autonomy = -0.10
			max_absolutism = -50
		}
		2 = {
			merchants = 1
			caravan_power = 0.33
			global_autonomy = -0.15
			max_absolutism = -50
		}
		3 = {	
			merchants = 1
			caravan_power = 0.33
			global_autonomy = -0.20
			max_absolutism = -50
		}
	}
}

salic_monarchy = {
	monarchy = yes
	
	valid_for_new_country = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 0
	
	color = { 159 41 41 }
	
	ai_will_do = {
		factor = 0
	}
	ai_importance = 0
	
	
	
	#bonus

	max_states = 4

	rank = {
		1 = {
			global_manpower_modifier = 0.1	
			vassal_income = 0.25
			vassal_forcelimit_bonus = 0.33
		}
		2 = {
			global_manpower_modifier = 0.1	
			vassal_income = 0.25
			vassal_forcelimit_bonus = 0.33
		}
		3 = {	
			global_manpower_modifier = 0.1	
			vassal_income = 0.25	
			vassal_forcelimit_bonus = 0.33
			global_autonomy = -0.025
		}
	}
}
