ideas = {

	mobilization_laws = { 
		law = yes
		use_list_view = yes
		
		disarmed_nation = {
						
			cost = 150
			removal_cost = -1
			level = 7
			
			available = {
				#has_manpower_for_recruit_change_to = { value = 0.005 group = mobilization_laws }
				if = { 
					limit = {
					 	original_tag = SWI
						has_global_flag = SWI_R56_focus_tree
					 }
					NOT = { has_country_flag = SWI_reliance_on_militia } 
				}
				if = { 
					limit = {
					 	original_tag = CAN
					 }
					has_completed_focus = r56_CAN_conscription_crisis
				}
			}

			modifier = {
				conscription = 0.01
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.075
				training_time_factor = -0.1
				mobilization_speed = 0.01
			}
			
			cancel_if_invalid = no
		}
		
		volunteer_only = {
						
			cost = 150
			removal_cost = -1
			level = 6
			
			available = {
				#has_manpower_for_recruit_change_to =  { value = 0.015 group = mobilization_laws }
				if = {
					limit = {
						original_tag = BHU
					}
					NOT = { has_idea = BHU_no_army }
				}
				IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Death or Dishonor"
						NOT = {
							has_dlc = "Gotterdammerung"
						}
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						NOT = { has_idea = HUN_treaty_of_triannon_aat }
					}
					ELSE = {
						NOT = { has_idea = HUN_treaty_of_triannon }
					}
				}
				ELSE_IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Gotterdammerung"
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_aat_wuw 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_or_army_debuff 
								}
							}
							
						}		
					}
					ELSE = {
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_wuw 
									has_idea = HUN_treaty_of_triannon_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_or_army_debuff 
								}
							}
						}
					}
				}
				if = { 
					limit = {
					 	original_tag = SWI
						has_global_flag = SWI_R56_focus_tree
					 }
					NOT = { has_country_flag = SWI_reliance_on_militia } 
				}
				if = {
					limit = {
						original_tag = USA
					}
					NOT = { has_idea = undisturbed_isolation }
				}
				if = {
					limit = {
						original_tag = SAU
					}
					NOT = { has_idea = isolation }
				}
				if = { 
					limit = {
					 	original_tag = CAN
					 }
					has_completed_focus = r56_CAN_conscription_crisis
				}
				#if = { 
				#	limit = {
				#	 	original_tag = LIE
				#		has_government = democratic
				#	}
				#	OR = {
				#		has_completed_focus = LIE_enact_the_1921_defence_act
				#	}
				#}
			}

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 60 # being disarmed is bad in a wargame yo
					has_idea = disarmed_nation 
				}
			}

			modifier = {
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.05
				training_time_factor = -0.05
				conscription = 0.015
				mobilization_speed = 0.015
				army_attack_factor = 0.015 #Volunteer armies tend to function better than conscripted armies 
			}
			
			default = yes
			
			cancel_if_invalid = no
		}
		
		limited_conscription = {
					
			cost = 150
			removal_cost = -1
			level = 5

			available = {
				#has_manpower_for_recruit_change_to =  { value = 0.025 group = mobilization_laws }
				if = {
					limit = {
						original_tag = BHU
					}
					NOT = { has_idea = BHU_no_army }
				}
				has_war_support > 0.1
				if = {
					limit = {
						original_tag = HON
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				if = {
					limit = {
						original_tag = SWE
					}
					NOT = { 
						has_idea = SWE_swedish_disarmament_idea 
						has_idea = SWE_swedish_disarmament_1_idea
					} 
				}				
				if = { 
					limit = {
						original_tag = SWI
					   has_global_flag = SWI_R56_focus_tree
					 }
					NOT = { has_country_flag = SWI_reliance_on_militia } 
				}
				if = {
					limit = {
						original_tag = USA
					}
					NOT = { has_idea = undisturbed_isolation }
				}
				if = {
					limit = {
						original_tag = SAU
					}
					NOT = { has_idea = isolation }
				}
				if = {
					limit = {
						original_tag = AST
					}
					OR = {
						has_completed_focus = AST_R56_national_security_act
						has_completed_focus = AST_R56_australian_internationalism
						has_completed_focus = AST_R56_socalist_paridice
						has_completed_focus = AST_R56_young_australian_league
						has_completed_focus = AST_R56_everyone_does_their_duty
					}
					
				}
				if = { 
					limit = {
					 	original_tag = CAN
					 }
					has_completed_focus = r56_CAN_conscription_crisis
				}
				if = {
					limit = {
						original_tag = RAJ
					}
					OR = {
						is_subject = no
						has_autonomy_state = autonomy_dominion
						AND = {
							has_war_support > 0.8
							num_of_factories > 75
						}
					}
					custom_trigger_tooltip = {
						tooltip = raj_not_in_famine
						NOT = {
							has_idea = RAJ_agrarian_economy_famine
							has_idea = RAJ_agrarian_economy_recovery
						}
					}
				}
				
				IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Death or Dishonor"
						NOT = {
							has_dlc = "Gotterdammerung"
						}
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						NOT = { has_idea = HUN_treaty_of_triannon_aat }
					}
					ELSE = {
						NOT = { has_idea = HUN_treaty_of_triannon }
					}
				}
				ELSE_IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Gotterdammerung"
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_aat_wuw 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_or_army_debuff 
								}
							}
							
						}		
					}
					ELSE = {
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_wuw 
									has_idea = HUN_treaty_of_triannon_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_or_army_debuff 
								}
							}
						}
					}
				}

				if = {
					limit = {
						original_tag = ENG
						has_dlc = "Man the Guns"
						has_completed_focus = ENG_concessions_to_the_trade_unions
					}
					NOT = { has_country_flag = ENG_cannot_increase_conscription_law }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = {
					limit = {
						original_tag = BUL
						has_global_flag = bul_bftb_focus_tree
					}
					NOT = { has_idea = BUL_army_restrictions }
				}
				if = {
					limit = {
						original_tag = MON
					}
					NOT = { has_completed_focus = MON_changes_within }
				}
				if = { 
					limit = {
					 	original_tag = QBC
					}
					has_completed_focus = QBC_a_standing_army
				}
				if = {
					limit = {
						original_tag = MPL
						has_idea = MPL_mandate
					}
					NOT = {
						has_idea = MPL_mandate
					}
				}
				if = { 
					limit = {
					 	original_tag = LIE
					}
					OR = {
						NOT = {
							has_idea = LIE_legacy_of_1866
						}
						has_completed_focus = LIE_reintroduce_conscription
					}
				}
			}
		



			on_add = {
				if = {
					limit = {
						tag = DEN
					}
					set_variable = {
						den_conscription_focus_cost = 5
					}
				}
			}	

			modifier = {
				conscription = 0.025
				mobilization_speed = 0.025
			}
			
			ai_will_do = {
   				factor = 2
				   modifier = {
					# Ignore if high on manpower
					factor = 0.7
					manpower_per_military_factory > 2000
				}
				modifier = {
					#Prio if low on manpower
					factor = 50
					manpower_per_military_factory < 1000
				}
				modifier = {
					tag = ENG
					has_idea_with_trait = military_theorist
					factor = 20
				}
				modifier = {
					factor = 30

					original_tag = SOV
					has_manpower < 1000000
				}
				modifier = {
					factor = 0
					NOT = { has_idea = volunteer_only }
				}
			}
			
			cancel_if_invalid = no
		}
	
		
		extensive_conscription = {
			
			available = {
				#has_manpower_for_recruit_change_to = { value = 0.05 group = mobilization_laws }
				if = {
					limit = {
						original_tag = BHU
					}
					NOT = { has_idea = BHU_no_army }
				}
				OR = {
					has_government = fascism
					has_government = communism
					AND = {
						has_war = yes
						enemies_strength_ratio > 0.5
						#any_enemy_country = {
						#	strength_ratio = {
						#		tag = ROOT 
						#		ratio > 0.5
						#	}
						#}
					}					
				}
				has_war_support > 0.2
				if = {
					limit = {
						original_tag = HON
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				if = {
					limit = {
						original_tag = AST
					}
					OR = {
						has_completed_focus = AST_R56_advisory_war_council
						has_completed_focus = AST_R56_australian_internationalism
						has_completed_focus = AST_R56_socalist_paridice
						has_completed_focus = AST_R56_young_australian_league
						has_completed_focus = AST_R56_everyone_does_their_duty
					}
				}
				if = { 
					limit = {
					 	original_tag = CAN
					 }
					has_completed_focus = r56_CAN_conscription_crisis
				}
				if = {
					limit = {
						original_tag = RAJ
					}
					OR = {
						is_subject = no
						has_autonomy_state = autonomy_dominion
					}
					custom_trigger_tooltip = {
						tooltip = raj_not_in_famine
						NOT = {
							has_idea = RAJ_agrarian_economy_famine
							has_idea = RAJ_agrarian_economy_recovery
						}
					}
				}
				IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Death or Dishonor"
						NOT = {
							has_dlc = "Gotterdammerung"
						}
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						NOT = { has_idea = HUN_treaty_of_triannon_aat }
					}
					ELSE = {
						NOT = { has_idea = HUN_treaty_of_triannon }
					}
				}
				ELSE_IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Gotterdammerung"
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_aat_wuw 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_or_army_debuff 
								}
							}
							
						}		
					}
					ELSE = {
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_wuw 
									has_idea = HUN_treaty_of_triannon_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_or_army_debuff 
								}
							}
						}
					}
				}
				if = {
					limit = {
						original_tag = SWE
					}
					NOT = { 
						has_idea = SWE_swedish_disarmament_idea 
						has_idea = SWE_swedish_disarmament_1_idea
					} 
				}				
				if = {
					limit = {
						original_tag = SWI
						has_global_flag = SWI_R56_focus_tree
					}
					NOT = { has_country_flag = SWI_reliance_on_militia } 
				}
				if = {
					limit = {
						original_tag = USA
					}
					NOT = { has_idea = undisturbed_isolation }
				}
				if = {
					limit = {
						original_tag = SAU
					}
					NOT = { has_idea = isolation }
				}
				if = {
					limit = {
						original_tag = ENG
						has_dlc = "Man the Guns"
						has_completed_focus = ENG_concessions_to_the_trade_unions
					}
					NOT = { has_country_flag = ENG_cannot_increase_conscription_law }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = { 
					limit = {
					 	original_tag = QBC
					 }
					has_completed_focus = QBC_a_standing_army
				}

				if = {
					limit = {
						original_tag = BUL
						has_global_flag = bul_bftb_focus_tree
					}
					NOT = { has_idea = BUL_army_restrictions }
				}
				if = {
					limit = {
						original_tag = MON
					}
					NOT = { has_completed_focus = MON_changes_within }
				}
				if = {
					limit = {
						original_tag = MPL
						has_idea = MPL_mandate
					}
					NOT = {
						has_idea = MPL_mandate
					}
				}
			}

			ai_will_do = {
   				factor = 2
				   modifier = {
					#Prio if low on manpower
					factor = 20
					manpower_per_military_factory <  700
				}
				modifier = {
					#Lower chance if has decent amount
					factor = 0.5
					manpower_per_military_factory >  1000
				}
				modifier = {
					#Block has plenty manpower
					factor = 0
					NOT = { tag = CHI }
					NOT = { tag = SOV }
					#NOT = { tag = GER }
					manpower_per_military_factory >  3000
				}

				modifier = { # china relies a lot on throwing bodies at the enemy
					factor = 5

					original_tag = CHI
					has_manpower < 200000
				}

				modifier = {
					factor = 5

					original_tag = SOV
					has_manpower < 400000
				}

				modifier = { # germany needs this before russia, badly
					factor = 50

					original_tag = GER
					has_manpower < 450000
				}
			}
			
			cost = 150
			removal_cost = -1
			level = 4
			
			modifier = {
				conscription = 0.05
				mobilization_speed = 0.05
				#industrial_capacity_factory = -0.1
				#production_speed_buildings_factor = -0.1
				training_time_factor = 0.1
			}
			
			cancel_if_invalid = no
		}
	
		service_by_requirement = {
			

			available = {
				#has_manpower_for_recruit_change_to =  { value = 0.1 group = mobilization_laws }
				if = {
					limit = {
						original_tag = BHU
					}
					NOT = { has_idea = BHU_no_army }
				}
				OR = {
					has_government = fascism
					has_government = communism
					AND = {
						has_war = yes
						enemies_strength_ratio > 0.6
						#any_enemy_country = {
						#	strength_ratio = {
						#		tag = ROOT 
						#		ratio > 0.6
						#	}
						#}
					}
				}
				OR = {
					has_war_support > 0.6
					surrender_progress > 0
				}
				if = {
					limit = {
						original_tag = HON
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				if = {
					limit = {
						original_tag = AST
					}
					OR = {
						has_completed_focus = AST_R56_advisory_war_council
						has_completed_focus = AST_R56_australian_internationalism
						has_completed_focus = AST_R56_socalist_paridice
						has_completed_focus = AST_R56_young_australian_league
						has_completed_focus = AST_R56_everyone_does_their_duty
					}
				}
				if = { 
					limit = {
					 	original_tag = CAN
					 }
					has_completed_focus = r56_CAN_conscription_crisis
				}
				if = {
					limit = {
						original_tag = RAJ
					}
					OR = {
						is_subject = no
						has_autonomy_state = autonomy_dominion
					}
					has_war_support > 0.9
					num_of_factories > 120	#Pretty Difficult / Late game
					custom_trigger_tooltip = {
						tooltip = raj_not_in_famine
						NOT = {
							has_idea = RAJ_agrarian_economy_famine
							has_idea = RAJ_agrarian_economy_recovery
						}
					}
				}

				IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Death or Dishonor"
						NOT = {
							has_dlc = "Gotterdammerung"
						}
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						NOT = { has_idea = HUN_treaty_of_triannon_aat }
					}
					ELSE = {
						NOT = { has_idea = HUN_treaty_of_triannon }
					}
				}
				ELSE_IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Gotterdammerung"
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_aat_wuw 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_or_army_debuff 
								}
							}
							
						}		
					}
					ELSE = {
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_wuw 
									has_idea = HUN_treaty_of_triannon_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_or_army_debuff 
								}
							}
						}
					}
				}

				if = {
					limit = {
						original_tag = ENG
						has_dlc = "Man the Guns"
						has_completed_focus = ENG_concessions_to_the_trade_unions
					}
					NOT = { has_country_flag = ENG_cannot_increase_conscription_law }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = {
					limit = {
						original_tag = SWE
					}
					NOT = { 
						has_idea = SWE_swedish_disarmament_idea 
						has_idea = SWE_swedish_disarmament_1_idea
					}
				}				
				if = {
					limit = {
						original_tag = SWI
						has_global_flag = SWI_R56_focus_tree
					}
					NOT = { has_country_flag = SWI_reliance_on_militia } 
				}
				if = {
					limit = {
						original_tag = USA
					}
					NOT = { has_idea = undisturbed_isolation }
				}
				if = {
					limit = {
						original_tag = SAU
					}
					NOT = { has_idea = isolation }
				}
				if = {
					limit = {
						original_tag = BUL
						has_global_flag = bul_bftb_focus_tree
					}
					NOT = { has_idea = BUL_army_restrictions }
				}
				if = {
					limit = {
						original_tag = MON
					}
					NOT = { has_completed_focus = MON_changes_within }
				}
				if = { 
					limit = {
					 	original_tag = QBC
					}
					has_completed_focus = QBC_a_standing_army
				}
				if = {
					limit = {
						original_tag = MPL
						has_idea = MPL_mandate
					}
					NOT = {
						has_idea = MPL_mandate
					}
				}
			}


			ai_will_do = {
   				factor = 1
				modifier = {
					#Prio if low on manpower
					factor = 20
					manpower_per_military_factory <  700
				}
				modifier = {
					#Lower chance if has decent amount
					factor = 0.5
					manpower_per_military_factory >  1000
				}
				modifier = {
					#Block has plenty manpower
					factor = 0
					NOT = { tag = CHI }
					NOT = { tag = SOV }
					manpower_per_military_factory >  3000
				}

				modifier = { # china relies a lot on throwing bodies at the enemy
					factor = 3

					tag = CHI
					has_manpower < 200000
				}
				modifier = { # germany needs this before russia, badly
					factor = 10

					original_tag = GER
					has_manpower < 2000000
				}
				modifier = {
					factor = 1000
					original_tag = SOV
					has_war = yes
					check_variable = { manpower_k < 800 }
				}
			}
			
			cost = 150
			removal_cost = -1
			level = 3

			modifier = {
				conscription = 0.1
				mobilization_speed = 0.1
				industrial_capacity_factory = -0.1
				industrial_capacity_dockyard = -0.1   
				production_speed_buildings_factor = -0.1
				training_time_factor = 0.2
			}
			
			cancel_if_invalid = no
		}
		
		all_adults_serve = {
			
			
			available = {
				#has_manpower_for_recruit_change_to =  { value = 0.2 group = mobilization_laws }
				if = {
					limit = {
						original_tag = BHU
					}
					NOT = { has_idea = BHU_no_army }
				}
				has_war = yes
				OR = {
					has_war_support > 0.7
					surrender_progress > 0
				}
				enemies_strength_ratio > 0.75
				#any_enemy_country = {
				#	strength_ratio = {
				#		tag = ROOT 
				#		ratio > 0.75
				#	}
				#}
				if = {
					limit = {
						original_tag = HON
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				if = {
					limit = {
						original_tag = AST
					}
					OR = {
						AND = {
							has_completed_focus = AST_R56_advisory_war_council
							has_completed_focus = AST_R56_fight_work_or_perish
						}
						has_completed_focus = AST_R56_australian_internationalism
						has_completed_focus = AST_R56_socalist_paridice
						has_completed_focus = AST_R56_young_australian_league
						has_completed_focus = AST_R56_everyone_does_their_duty
					}
				}
				if = { 
					limit = {
					 	original_tag = CAN
					 }
					has_completed_focus = r56_CAN_conscription_crisis
				}
				if = {
					limit = {
						original_tag = RAJ
					}
					OR = {
						is_subject = no
						has_autonomy_state = autonomy_dominion
					}
					has_war_support > 0.99
					num_of_factories > 200	#Basically impossible
					custom_trigger_tooltip = {
						tooltip = raj_not_in_famine
						NOT = {
							has_idea = RAJ_agrarian_economy_famine
							has_idea = RAJ_agrarian_economy_recovery
						}
					}
				}

				IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Death or Dishonor"
						NOT = {
							has_dlc = "Gotterdammerung"
						}
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						NOT = { has_idea = HUN_treaty_of_triannon_aat }
					}
					ELSE = {
						NOT = { has_idea = HUN_treaty_of_triannon }
					}
				}
				ELSE_IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Gotterdammerung"
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_aat_wuw 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_or_army_debuff 
								}
							}
							
						}		
					}
					ELSE = {
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_wuw 
									has_idea = HUN_treaty_of_triannon_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_or_army_debuff 
								}
							}
						}
					}
				}

				if = {
					limit = {
						original_tag = SWE
					}
					NOT = { 
						has_idea = SWE_swedish_disarmament_idea 
						has_idea = SWE_swedish_disarmament_1_idea
					} 
				}				
				if = {
					limit = {
						original_tag = SWI
						has_global_flag = SWI_R56_focus_tree
					}
					NOT = { has_country_flag = SWI_reliance_on_militia } 
				}
				if = {
					limit = {
						original_tag = USA
					}
					NOT = { has_idea = undisturbed_isolation }
				}
				if = {
					limit = {
						original_tag = ENG
						has_dlc = "Man the Guns"
						has_completed_focus = ENG_concessions_to_the_trade_unions
					}
					NOT = { has_country_flag = ENG_cannot_increase_conscription_law }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = {
					limit = {
						original_tag = SAU
					}
					NOT = { has_idea = isolation }
				}
				if = {
					limit = {
						original_tag = BUL
						has_global_flag = bul_bftb_focus_tree
					}
					NOT = { has_idea = BUL_army_restrictions }
				}
				if = { 
					limit = {
					 	original_tag = QBC
					}
					has_completed_focus = QBC_a_standing_army
				}
					
				if = {
					limit = {
						original_tag = MON
					}
					NOT = { has_completed_focus = MON_changes_within }
				}
				if = {
					limit = {
						original_tag = MPL
						has_idea = MPL_mandate
					}
					NOT = {
						has_idea = MPL_mandate
					}
				}
				if = {
					limit = {
						original_tag = LIE
					}
					NOT = {
						has_idea = LIE_legacy_of_1866
					}
				}
			}

			ai_will_do = {
				factor = 1
				modifier = {
				 	#Prio if low on manpower
					 factor = 20
					 manpower_per_military_factory <  600
				}
				 modifier = {
					 #Lower chance if has decent amount
					 factor = 0.5
					 manpower_per_military_factory >  1000
				}
			 	modifier = {
				 #Block has plenty manpower
					 factor = 0
					 NOT = { tag = CHI }
					 manpower_per_military_factory >  2800
			 	}

			 	modifier = { # china relies a lot on throwing bodies at the enemy
					factor = 3

				 	tag = CHI
					has_manpower < 200000
				}

				modifier = {
					factor = 10
					original_tag = SOV
					date > 1943.1.1
			 		has_manpower < 2000000
				}

				modifier = {
					factor = 0
			 		NOT = { has_idea = service_by_requirement }
		 		}	

			}
		
			cost = 150
			removal_cost = -1
			level = 2
			
			modifier = {
				conscription = 0.2
				mobilization_speed = 0.2
				industrial_capacity_factory = -0.3
				industrial_capacity_dockyard = -0.3
				production_speed_buildings_factor = -0.3
				#XP from reinforcement penalty (small)
				training_time_factor = 0.3
			}
			
			cancel_if_invalid = no
		}
		
		scraping_the_barrel = {
			
			
			available = {
				#has_manpower_for_recruit_change_to =  { value = 0.25 group = mobilization_laws }
				if = {
					limit = {
						original_tag = BHU
					}
					NOT = { has_idea = BHU_no_army }
				}
				has_war = yes

				OR = {
					has_war_support > 0.85
					surrender_progress > 0.25
				}
				enemies_strength_ratio > 1
				#any_enemy_country = {
				#	strength_ratio = {
				#		tag = ROOT 
				#		ratio > 1
				#	}
				#}
				if = {
					limit = {
						original_tag = HON
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				if = {
					limit = {
						original_tag = AST
					}
					OR = {
						AND = {
							has_completed_focus = AST_R56_advisory_war_council
							has_completed_focus = AST_R56_fight_work_or_perish
						}
						has_completed_focus = AST_R56_australian_internationalism
						has_completed_focus = AST_R56_socalist_paridice
						has_completed_focus = AST_R56_young_australian_league
						has_completed_focus = AST_R56_everyone_does_their_duty
					}
				}
				if = { 
					limit = {
					 	original_tag = CAN
					 }
					has_completed_focus = r56_CAN_conscription_crisis
				}
				if = {
					limit = {
						original_tag = RAJ
					}
					always = no
				}

				IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Death or Dishonor"
						NOT = {
							has_dlc = "Gotterdammerung"
						}
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						NOT = { has_idea = HUN_treaty_of_triannon_aat }
					}
					ELSE = {
						NOT = { has_idea = HUN_treaty_of_triannon }
					}
				}
				ELSE_IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Gotterdammerung"
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_aat_wuw 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_aat_wuw_no_air_or_army_debuff 
								}
							}
							
						}		
					}
					ELSE = {
						custom_trigger_tooltip = {
							tooltip = wuw_HUN_not_has_trianon_for_laws_tt
							NOT = { 
								OR = {
									has_idea = HUN_treaty_of_triannon_wuw 
									has_idea = HUN_treaty_of_triannon_wuw_no_army_exp_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_debuff 
									has_idea = HUN_treaty_of_triannon_wuw_no_air_or_army_debuff 
								}
							}
						}
					}
				}
				
				if = {
					limit = {
						original_tag = SWE
					}
					NOT = { 
						has_idea = SWE_swedish_disarmament_idea 
						has_idea = SWE_swedish_disarmament_1_idea
					} 
				}				
				if = {
					limit = {
						original_tag = SWI
						has_global_flag = SWI_R56_focus_tree
					}
					NOT = { has_country_flag = SWI_reliance_on_militia } 
				}
				if = {
					limit = {
						original_tag = USA
					}
					NOT = { has_idea = undisturbed_isolation }
				}
				if = {
					limit = {
						original_tag = SAU
					}
					NOT = { has_idea = isolation }
				}
				if = {
					limit = {
						original_tag = ENG
						has_dlc = "Man the Guns"
						has_completed_focus = ENG_concessions_to_the_trade_unions
					}
					NOT = { has_country_flag = ENG_cannot_increase_conscription_law }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = { 
					limit = {
					 	original_tag = QBC
					}
					has_completed_focus = QBC_a_standing_army
				}
				if = {
					limit = {
						original_tag = BUL
						has_global_flag = bul_bftb_focus_tree
					}
					NOT = { has_idea = BUL_army_restrictions }
				}
				if = {
					limit = {
						original_tag = MON
					}
					NOT = { has_completed_focus = MON_changes_within }
				}
				if = {
					limit = {
						original_tag = MPL
						has_idea = MPL_mandate
					}
					NOT = {
						has_idea = MPL_mandate
					}
				}
				if = {
					limit = {
						original_tag = LIE
					}
					NOT = {
						has_idea = LIE_legacy_of_1866
					}
				}
			}

			ai_will_do = {
   				factor = 1
				modifier = {
					#Prio if low on manpower
					factor = 20
					manpower_per_military_factory <  500
				}				
				modifier = {
					#Lower chance if has decent amount
					factor = 0.5
					manpower_per_military_factory >  1000
				}
				modifier = {
					#Block has plenty manpower
					factor = 0
					manpower_per_military_factory >  5000
				}
			}

			cost = 150
			removal_cost = -1
			level = 1

			modifier = {
				conscription = 0.25
				mobilization_speed = 0.25
				industrial_capacity_factory = -0.4
				industrial_capacity_dockyard = -0.4
				production_speed_buildings_factor = -0.4
				training_time_factor = 0.5
			}
			
			cancel_if_invalid = no
		}
		

		### Ethiopian National Levy
		ETH_chitet_law = {
			picture = ETH_chitet_law
			cost = 150
			removal_cost = -1
			level = 6

			allowed = {
				always = no
			}
			allowed_to_remove = {
				always = no
			}

			ai_will_do = {
					factor = 0
			}

			modifier = {
				conscription = 0.045
				custom_modifier_tooltip = ETH_chitet_law_tt
				industrial_capacity_factory = -0.05
				industrial_capacity_dockyard = -0.05
				production_speed_buildings_factor = -0.05
			}

			default = yes

			cancel_if_invalid = no
		}
		ETH_chitet_law_peace_time = {
			picture = ETH_chitet_law

			cost = 150
			removal_cost = -1
			level = 6

			allowed = {
				always = no
			}
			allowed_to_remove = {
				always = no
			}

			ai_will_do = {
					factor = 0
			}

			modifier = {
				conscription = 0.005
				custom_modifier_tooltip = ETH_chitet_law_tt
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.05
			}

			default = yes

			cancel_if_invalid = no
		}

		### Swiss Citizen Militia ###

		SWI_citizen_militia_1 = {
			cost = 200
			picture = citizen_militia_1
			removal_cost = -1
			level = 6

			allowed = {
				always = no
			}
			allowed_to_remove = {
				has_completed_focus = SWI_professionalize_militias
				has_completed_focus = SWI_join_the_allies
				has_completed_focus = SWI_join_france
				has_completed_focus = SWI_jump_into_action
			}
			ai_will_do = {
				factor = 0
			}

			modifier = {
				conscription = 0.1
				custom_modifier_tooltip = SWI_army_limitations_TT
				ai_desired_divisions_factor = 1
			}
		}

		SWI_citizen_militia_2 = {
			picture = citizen_militia_2
			cost = 200
			removal_cost = -1
			level = 6

			allowed = {
				always = no
			}
			allowed_to_remove = {
					has_completed_focus = SWI_professionalize_militias
				has_completed_focus = SWI_join_the_allies
				has_completed_focus = SWI_join_france
				has_completed_focus = SWI_jump_into_action
			}
			ai_will_do = {
				factor = 0
			}

			modifier = {
				conscription = 0.2
				custom_modifier_tooltip = SWI_army_limitations_TT
				ai_desired_divisions_factor = 2
			}
		}
	}
}