ideas = {

	economy = {
		law = yes
		use_list_view = yes

		undisturbed_isolation = {
			
			level = 0
			allowed = {
				always = no
			}
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.50
				production_speed_industrial_complex_factor = -0.5
				production_speed_arms_factory_factor = -0.5
				production_speed_dockyard_factor = -0.5
				conversion_cost_civ_to_mil_factor = 0.5
				conversion_cost_mil_to_civ_factor = 0.5
				generate_wargoal_tension = 1.00
				join_faction_tension = 0.20
				lend_lease_tension = 0.50
				send_volunteers_tension = 0.20
				guarantee_tension = 0.75
				max_fuel_factor = -0.45
				fuel_gain_factor = -0.6
				agency_upgrade_time = 1.0
				factory_energy_consumption = -0.3
			}

			allowed_to_remove = {
				OR = {
					has_war_support > 0.5
					has_war = yes
					if = {
						limit = {
							original_tag = USA
						}
						has_completed_focus = USA_limited_intervention	
					}
				}
			}

			cancel_if_invalid = no
		}

		isolation = {
					
			level = 0
			allowed = {
				always = no
			}
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.4
				production_speed_industrial_complex_factor = -0.4
				production_speed_arms_factory_factor = -0.4
				production_speed_dockyard_factor = -0.4
				conversion_cost_civ_to_mil_factor= 0.4
				conversion_cost_mil_to_civ_factor = 0.4
				generate_wargoal_tension = 1.00
				join_faction_tension = 0.20
				lend_lease_tension = 0.10
				send_volunteers_tension = 0.20
				guarantee_tension = 0.5
				max_fuel_factor = -0.35
				fuel_gain_factor = -0.5
				agency_upgrade_time = 0.8
				factory_energy_consumption = -0.3
			}
			allowed_to_remove = {
				OR = {
					has_war_support > 0.75
					has_war = yes
					if = {
						limit = {
							original_tag = USA
						}
						has_completed_focus = USA_limited_intervention	
					}
				}
			}

			cancel_if_invalid = no
		}

		civilian_economy = {
			
		
			level = 1
			cost = 100
			removal_cost = -1
			
			available = {
				NOT = { has_global_flag = rt56rp_gr_historical_gflag }
			}
			
			modifier = {
				stability_weekly = 0.002
				war_stability_factor = -0.15
				consumer_goods_expected_value = 0.400
				monthly_population = 0.010
				conscription = 0.000

				production_speed_industrial_complex_factor = 0.150
				production_speed_arms_factory_factor = -0.400
				production_speed_dockyard_factor = -0.200
				production_speed_industrial_expansion_factor = 0.100
				
				production_speed_infrastructure_factor = 0.100
				production_speed_rail_way_factor = 0.100
				production_speed_supply_node_factor = -0.050
				production_speed_air_base_factor = -0.050
				production_speed_radar_station_factor = -0.050
				production_speed_naval_base_factor = -0.050
				production_speed_steel_mill_factor = 0.000
				production_speed_aluminum_mill_factor = 0.000
				production_speed_rubber_refinery_factor = 0.000
				production_speed_synthetic_refinery_factor = 0.000
				production_speed_anti_air_building_factor = -0.050
				production_speed_bunker_factor = -0.050
				production_speed_coastal_bunker_factor = -0.050

				conversion_cost_civ_to_mil_factor = 0.40
				conversion_cost_mil_to_civ_factor = -0.400

				max_fuel_factor = -0.300
				fuel_gain_factor = -0.450
				factory_energy_consumption = -0.3
				
				#join_faction_tension = var:var_unrestricted_join_factions

			}

			default = yes

			cancel_if_invalid = no
		}

		low_economic_mobilisation = {
			
			level = 2
			available = {
				NOT = { has_global_flag = rt56rp_gr_historical_gflag }
				
				has_war_support > 0.15
				
				IF = {
					limit = {
						original_tag = HUN
						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 = USA	#56
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					has_war_support > 0.3
					congress_high_support_trigger = yes
				}
				# if = {
				# 	limit = {
				# 		original_tag = TUR
				# 		has_dlc = "Battle for the Bosporus"
				# 	}
				# 	NOT = {
				# 		OR = {
				# 			has_active_mission = TUR_etatism_crisis_2
				# 			has_active_mission = TUR_etatism_crisis_3
				# 			has_active_mission = TUR_etatism_crisis_4
				# 		}
				# 	}
				# }
				if = {	#56?
					limit = {
						original_tag = GER
						OR = {
							has_idea = GER_treaty_of_versailles
							has_idea = GER_treaty_of_versailles_2
							has_idea = GER_treaty_of_versailles_3
						}
					}
					NOT = {
						has_idea = GER_treaty_of_versailles
						has_idea = GER_treaty_of_versailles_2
						has_idea = GER_treaty_of_versailles_3
					}
				}
				if = {
					limit = {
						original_tag = CZE
						has_dlc = "Peace For Our Time"
					}
					custom_trigger_tooltip = {
						tooltip = CZE_bop_no_industrialists_tt
						NOT = {
							OR = {
								has_idea = CZE_industrialists_veto
								has_idea = CZE_industrialists_veto_2
							}
						}
					}
				}
			}
			on_add = {
				if = {
					limit = {
						original_tag = USA	#56
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					USA_congress_large_opposition = yes
				}
			}
			
			cost = 100
			removal_cost = -1
			
			modifier = {
				stability_weekly = 0.001
				war_stability_factor = -0.05
				consumer_goods_expected_value = 0.350
				monthly_population = 0.005
				conscription = 0.000
				
				production_speed_industrial_complex_factor = 0.100
				production_speed_arms_factory_factor = -0.100
				production_speed_dockyard_factor = -0.100
				production_speed_industrial_expansion_factor = 0.050
				
				production_speed_infrastructure_factor = 0.050
				production_speed_rail_way_factor = 0.050
				production_speed_supply_node_factor = -0.025
				production_speed_air_base_factor = -0.025
				production_speed_radar_station_factor = -0.025
				production_speed_naval_base_factor = -0.025
				production_speed_steel_mill_factor = 0.00
				production_speed_aluminum_mill_factor = 0.00
				production_speed_rubber_refinery_factor = 0.00
				production_speed_synthetic_refinery_factor = 0.00
				production_speed_anti_air_building_factor = -0.025
				production_speed_bunker_factor = -0.025
				production_speed_coastal_bunker_factor = -0.025

				conversion_cost_civ_to_mil_factor = 0.200
				conversion_cost_mil_to_civ_factor = -0.200

				max_fuel_factor = -0.200
				fuel_gain_factor = -0.300
				factory_energy_consumption = -0.15
				
				#join_faction_tension = var:var_unrestricted_join_factions

			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 2

   				modifier = {
					factor = 20

					is_major = yes
				}
				modifier = {
					has_war_support > 0.25
					factor = 0 #don't even look at it if you could be taking partial mob
				}
				modifier = {
					tag = ENG
					has_war = no
					date < 1937.6.1
					factor = 0
				}
   			}
		}

		partial_economic_mobilisation = {
			
			level = 3
			available = {
				NOT = { has_global_flag = rt56rp_gr_historical_gflag }
				
				has_war_support > 0.25

				IF = {
					limit = {
						original_tag = HUN
						NOT = {
							has_dlc = "Gotterdammerung"
						}
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						OR = {
							has_completed_focus = HUN_secret_rearmament
							NOT = { has_idea = HUN_treaty_of_triannon_aat }
						}
					}
					ELSE = {
						has_completed_focus = HUN_secret_rearmament
						NOT = { has_idea = HUN_treaty_of_triannon }
					}
				}
				ELSE_IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Gotterdammerung"
					}
					IF = {
						limit = {
							has_dlc = "Arms Against Tyranny"
						}
						OR = {
							has_completed_focus = wuw_HUN_secret_rearmament
							NOT = { has_idea = HUN_treaty_of_triannon_aat_wuw }
						}
					}
					ELSE = {
						OR = {
							has_completed_focus = wuw_HUN_secret_rearmament
							NOT = { has_idea = HUN_treaty_of_triannon_wuw }
						}
					}
				}

				if = {
					limit = {
						original_tag = USA
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					has_war_support > 0.5
					congress_high_support_trigger = yes
				}
				# if = {
				# 	limit = {
				# 		original_tag = TUR
				# 		has_dlc = "Battle for the Bosporus"
				# 	}
				# 	NOT = {
				# 		OR = {
				# 			has_active_mission = TUR_etatism_crisis_1
				# 			has_active_mission = TUR_etatism_crisis_3
				# 			has_active_mission = TUR_etatism_crisis_4
				# 		}
				# 	}
				# }
				if = {	#56?
					limit = {
						original_tag = GER
						OR = {
							has_idea = GER_treaty_of_versailles
							has_idea = GER_treaty_of_versailles_2
							has_idea = GER_treaty_of_versailles_3
						}
					}
					NOT = {
						has_idea = GER_treaty_of_versailles
						has_idea = GER_treaty_of_versailles_2
						has_idea = GER_treaty_of_versailles_3
					}
				}
				if = {
					limit = {
						original_tag = CZE
						has_dlc = "Peace For Our Time"
					}
					custom_trigger_tooltip = {
						tooltip = CZE_bop_no_industrialists_tt
						NOT = {
							OR = {
								has_idea = CZE_industrialists_veto
								has_idea = CZE_industrialists_veto_2
							}
						}
					}
				}
			}

			cost = 100
			removal_cost = -1

			modifier = {
				stability_weekly = 0.000
				consumer_goods_expected_value = 0.250
				monthly_population = 0.000
				conscription = 0.000
				
				production_speed_industrial_complex_factor = 0.000
				production_speed_arms_factory_factor = 0.100
				production_speed_dockyard_factor = 0.000
				production_speed_industrial_expansion_factor = 0.000
				
				production_speed_infrastructure_factor = 0.000
				production_speed_rail_way_factor = 0.000
				production_speed_supply_node_factor = 0.000
				production_speed_air_base_factor = 0.000
				production_speed_radar_station_factor = 0.000
				production_speed_naval_base_factor = 0.000
				production_speed_steel_mill_factor = 0.025
				production_speed_aluminum_mill_factor = 0.025
				production_speed_rubber_refinery_factor = 0.025
				production_speed_synthetic_refinery_factor = 0.025
				production_speed_anti_air_building_factor = 0.000
				production_speed_bunker_factor = 0.000
				production_speed_coastal_bunker_factor = 0.000

				conversion_cost_civ_to_mil_factor = 0.000
				conversion_cost_mil_to_civ_factor = 0.000

				max_fuel_factor = -0.100
				fuel_gain_factor = -0.150
				factory_energy_consumption = -0.1
				
				#join_faction_tension = var:var_unrestricted_join_factions
			}

			cancel_if_invalid = no
			on_add = {
				if = {
					limit = {
						original_tag = USA	#56
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					USA_congress_large_opposition = yes
				}
			}
			ai_will_do = {
   				factor = 2

   				modifier = {
					factor = 20

					is_major = yes
				}
				
				modifier = {	#56 - Minor Countries that need to swap sooner rather then later
					factor = 20

					is_historical_focus_on = yes 
					has_war = no #if war go higher
					NOT = { #Does not have a higher tier
						OR = {
							has_idea = 	war_economy 
							has_idea = 	tot_economic_mobilisation
						}
					}
					OR = { #Countries in question 
						original_tag = ROM
						original_tag = FIN
						original_tag = MEN
						original_tag = GXC
						original_tag = SHX
						original_tag = SIC
						original_tag = XIC
						original_tag = GDC
						original_tag = HBC
						original_tag = SND
						#original_tag = POL 
					}
				}
				## base game additions
				modifier = {
					add = 80
					original_tag = SOV
					date < 1937.1.1
					NOT = { 
						OR = {
							has_idea = war_economy 
							has_idea = tot_economic_mobilisation
						}
					}
				}
				
				modifier = {
					original_tag = SIA
					NOT = { 
						OR = {
							has_idea = war_economy 
							has_idea = tot_economic_mobilisation
						}
					}
					add = 1200 #Prep for invasion
				}

				modifier = {
					factor = 100
					OR = {
						original_tag = URG
						original_tag = PAR
					}
					NOT = {
						has_idea = war_economy
					}
					has_completed_focus = GUAY_coup_detat
				}
				## r56 addition to try to avoid the AI changing war economy needlessly
				modifier = {
					OR = {
						has_idea = war_economy 
						has_idea = tot_economic_mobilisation
						has_idea = totaler_krieg_economy
					}
					has_war = yes
					factor = 0
				}
   			}
		}

		war_economy = {
			
			level = 4
			available = {
				NOT = { has_global_flag = rt56rp_gr_historical_gflag }
				
				has_war_support > 0.5
				OR = {
					has_government = fascism
					has_government = communism
					custom_trigger_tooltip = { tooltip = or_clarification_tooltip always = no }
					AND = {
						has_war = yes
						any_enemy_country = {
							ic_ratio = {
								tag = ROOT
								ratio > 0.4
							}
						}
					}
					if = {
						limit = { PHI_SEA = yes }
						if = {
							limit = { has_idea = PHI_ties_with_nationalist_spain }
							has_idea = PHI_ties_with_nationalist_spain
						}
						else_if = {
							limit = { has_idea = PHI_ties_with_nationalist_spain_2 }
							has_idea = PHI_ties_with_nationalist_spain_2
						}
						else = {
							hidden_trigger = { always = no } #NEED TO HAVE AN ALWAYS AS AN END STATEMENT IF URE USING AN IF ELSE IN AN OR STATEMENT OTHERWISE THE EVALUATION BREAKS!!
						}
					}
					else = {
						hidden_trigger = { always = no } #NEED TO HAVE AN ALWAYS AS AN END STATEMENT IF URE USING AN IF ELSE IN AN OR STATEMENT OTHERWISE THE EVALUATION BREAKS!!
					}
				}

				IF = {
					limit = {
						original_tag = HUN
						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 = USA	#56
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					has_war_support > 0.75
					congress_high_support_trigger = yes
				}
				# if = {	#56
				# 	limit = {
				# 		original_tag = TUR
				# 		has_dlc = "Battle for the Bosporus"
				# 	}
				# 	NOT = {
				# 		OR = {
				# 			has_active_mission = TUR_etatism_crisis_1
				# 			has_active_mission = TUR_etatism_crisis_2
				# 			has_active_mission = TUR_etatism_crisis_4
				# 		}
				# 	}
				# }
				if = {	#56?
					limit = {
						original_tag = GER
						OR = {
							has_idea = GER_treaty_of_versailles
							has_idea = GER_treaty_of_versailles_2
							has_idea = GER_treaty_of_versailles_3
						}
					}
					NOT = {
						has_idea = GER_treaty_of_versailles
						has_idea = GER_treaty_of_versailles_2
						has_idea = GER_treaty_of_versailles_3
					}
				}
				if = {
					limit = {
						original_tag = CZE
						has_dlc = "Peace For Our Time"
					}
					custom_trigger_tooltip = {
						tooltip = CZE_bop_no_industrialists_tt
						NOT = {
							OR = {
								has_idea = CZE_industrialists_veto
								has_idea = CZE_industrialists_veto_2
							}
						}
					}
				}
			}
		
			cost = 100
			removal_cost = -1
			
			modifier = {
				stability_weekly = -0.001
				stability_factor = -0.05
				war_stability_factor = 0.1 
				consumer_goods_expected_value = 0.150
				monthly_population = 0.000
				conscription = -0.005
				
				production_speed_industrial_complex_factor = -0.050
				production_speed_arms_factory_factor = 0.200
				production_speed_dockyard_factor = 0.100
				production_speed_industrial_expansion_factor = -0.050
				
				production_speed_infrastructure_factor = -0.050
				production_speed_rail_way_factor = -0.050
				production_speed_supply_node_factor = 0.025
				production_speed_air_base_factor = 0.025
				production_speed_radar_station_factor = 0.025
				production_speed_naval_base_factor = 0.025
				production_speed_steel_mill_factor = 0.050
				production_speed_aluminum_mill_factor = 0.050
				production_speed_rubber_refinery_factor = 0.050
				production_speed_synthetic_refinery_factor = 0.050
				production_speed_anti_air_building_factor = 0.025
				production_speed_bunker_factor = 0.025
				production_speed_coastal_bunker_factor = 0.025

				conversion_cost_civ_to_mil_factor = -0.200
				conversion_cost_mil_to_civ_factor = 0.200

				max_fuel_factor = 0.000
				fuel_gain_factor = 0.000
				factory_energy_consumption = 0.25
				
				#join_faction_tension = var:var_unrestricted_join_factions
			}

			cancel_if_invalid = no
			on_add = {
				if = {
					limit = {
						original_tag = USA	#56
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					USA_congress_large_opposition = yes
				}
			}
			ai_will_do = {
   				base = 3

				modifier = {
					#High prio on production
					factor = 20
					manpower_per_military_factory >  1000
				}

				modifier = {	#56
					factor = 20
					original_tag = ROM
					OR = {
						has_government = communism
						has_government = fascism
					}
				}

				modifier = {
					# If we CAN go for total mobilization and have enough manpower for it, skip war economy, it's only a waste of PP
					factor = 0

					manpower_per_military_factory > 15000
					has_war = yes
					has_war_support > 0.8
					any_enemy_country = {
						ic_ratio = {
							tag = ROOT
							ratio > 0.5
						}
					}
				}

				modifier = {
					add = 1800

					# revert from closed_economy if we have large allies
					has_idea = closed_economy
					has_large_ally_not_pick_closed_economy = yes
				}

				modifier = {
					# We will lose the war support after the war anyway
					factor = 0
					original_tag = GER
					has_civil_war = yes
					has_government = neutrality
				}
   			}
		}

		tot_economic_mobilisation = {
			
			level = 5
			available = {
				NOT = { has_global_flag = rt56rp_gr_historical_gflag }
				
				has_war = yes
				has_war_support > 0.8
				any_enemy_country = {
					ic_ratio = {
						tag = ROOT
						ratio > 0.5
					}
				}

				IF = {
					limit = {
						original_tag = HUN
						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 = USA	#56
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					has_war_support > 0.9
					congress_high_support_trigger = yes
				}
				# if = {	#56
				# 	limit = {
				# 		original_tag = TUR
				# 		has_dlc = "Battle for the Bosporus"
				# 	}
				# 	NOT = {
				# 		OR = {
				# 			has_active_mission = TUR_etatism_crisis_1
				# 			has_active_mission = TUR_etatism_crisis_2
				# 			has_active_mission = TUR_etatism_crisis_3
				# 		}
				# 	}
				# }
				if = {	#56
					limit = {
						original_tag = GER
						OR = {
							has_idea = GER_treaty_of_versailles
							has_idea = GER_treaty_of_versailles_2
							has_idea = GER_treaty_of_versailles_3
						}
					}
					NOT = {
						has_idea = GER_treaty_of_versailles
						has_idea = GER_treaty_of_versailles_2
						has_idea = GER_treaty_of_versailles_3
					}
				}
				if = {
					limit = {
						original_tag = CZE
						has_dlc = "Peace For Our Time"
					}
					custom_trigger_tooltip = {
						tooltip = CZE_bop_no_industrialists_tt
						NOT = {
							OR = {
								has_idea = CZE_industrialists_veto
								has_idea = CZE_industrialists_veto_2
							}
						}
					}
				}
			}
			on_add = {
				if = {
					limit = {
						original_tag = USA	#56
						has_completed_focus = USA_limited_intervention
						has_defensive_war = no
					}
					USA_congress_large_opposition = yes
				}
			}
			ai_will_do = {
   				factor = 1

				modifier = {
					factor = 25
					#Prio this if nation has a lot of manpower compared to MIC
					manpower_per_military_factory > 15000
				}

				modifier = {
					#Block  unless nation has a lot of manpower
					factor = 0
					manpower_per_military_factory <  10000
				}


				modifier = {
					# never take this if we are on low conscription laws for safety
					factor = 0
					OR = {
						has_idea = volunteer_only
						has_idea = limited_conscription
					}
				}

				# Germany needs to be careful
				modifier = {
					factor = 0

					tag = GER
					has_war = yes
					date < 1944.01.01
				}
				modifier = {
					factor = 0

					tag = SOV
					has_war = yes
					OR = {
						has_manpower < 2000000
						NOT = {
							OR = {
								has_idea = all_adults_serve
								has_idea = service_by_requirement
							}
						}
					}
				}
   			}
			
			cost = 100
			removal_cost = -1
			
			modifier = {
				stability_weekly = -0.002
				stability_factor = -0.15
				war_stability_factor = 0.25
				consumer_goods_expected_value = 0.100
				monthly_population = 0.000
				conscription = -0.010
				
				production_speed_industrial_complex_factor = -0.200
				production_speed_arms_factory_factor = 0.300
				production_speed_dockyard_factor = 0.200
				production_speed_industrial_expansion_factor = -0.100
				
				production_speed_infrastructure_factor = -0.100
				production_speed_rail_way_factor = -0.100
				production_speed_supply_node_factor = 0.050
				production_speed_air_base_factor = 0.050
				production_speed_radar_station_factor = 0.050
				production_speed_naval_base_factor = 0.050
				production_speed_steel_mill_factor = 0.075
				production_speed_aluminum_mill_factor = 0.075
				production_speed_rubber_refinery_factor =0.075
				production_speed_synthetic_refinery_factor = 0.075
				production_speed_anti_air_building_factor = 0.050
				production_speed_bunker_factor = 0.050
				production_speed_coastal_bunker_factor = 0.050

				conversion_cost_civ_to_mil_factor = -0.400
				conversion_cost_mil_to_civ_factor = 0.400
				
				max_fuel_factor = 0.000
				fuel_gain_factor = 0.000
				factory_energy_consumption = 0.5
				
				#join_faction_tension = var:var_unrestricted_join_factions
			}

			cancel_if_invalid = no
		}

		totaler_krieg_economy = {
			picture = PLACEHOLDER_idea_icon
			level = 3

			visible = {
				original_tag = GER
				has_completed_focus = GER_totaler_krieg
			}

			available = {
				has_completed_focus = GER_totaler_krieg
				has_war_with_major = yes
				has_war_support > 0.8
				any_enemy_country = {
					ic_ratio = {
						tag = ROOT
						ratio > 0.5
					}
				}
			}

			cost = 150
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.15
				conscription = -0.02
				production_speed_arms_factory_factor = 0.2
				production_speed_dockyard_factor = 0.2
				conversion_cost_civ_to_mil_factor= -0.3
				conversion_cost_mil_to_civ_factor = -0.3
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				factory_energy_consumption = 0.5
			}
			cancel_if_invalid = no
		}

		national_defense_state = { 

			picture = JAP_national_defense_state
			level = 3

			visible = {
				original_tag = JAP
				OR = {
					has_completed_focus = JAP_prepare_for_the_final_war
					has_completed_focus = JAP_sea_national_defense_state
				}
			}

			available = {
				OR = {
					has_completed_focus = JAP_prepare_for_the_final_war
					has_completed_focus = JAP_sea_national_defense_state
				}
				OR = {
					has_war_with_major = yes
					has_war_support > 0.75
				}
				any_enemy_country = {
					ic_ratio = {
						tag = ROOT
						ratio > 0.5
					}
				}
			}

			cost = 150
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.15
				production_speed_arms_factory_factor = 0.3
				conversion_cost_civ_to_mil_factor= -0.3
				conversion_cost_mil_to_civ_factor = -0.3
				factory_energy_consumption = 0.45
			}
			cancel_if_invalid = no
		}

		new_economic_policy = {

			picture = new_economic_policy
			level = 3
			allowed = {
				always = no
			}
			allowed_to_remove = {
				OR = {
					surrender_progress > 0.75
					NOT = { has_government = communism }
				}
			}

			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.15
				production_speed_buildings_factor = -0.15
				factory_energy_consumption = 0.25
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 0
   			}
		}
		new_economic_policy_2 = {
			name = new_economic_policy
			level = 3
			picture = new_economic_policy

			allowed = {
				always = no
			}
			allowed_to_remove = {
				OR = {
					surrender_progress > 0.75
					NOT = { has_government = communism }
				}
			}

			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.10
				production_speed_buildings_factor = -0.2
				global_building_slots_factor = 0.1
				factory_energy_consumption = 0.35
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 0
   			}
		}

		capital_investment_model = {
			name = capital_investment_model

			picture = RAJ_trickle_down_economy

			allowed = {
				always = no
			}


			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.15
				production_speed_industrial_complex_factor = 0.15
				conversion_cost_civ_to_mil_factor = -0.4
				production_speed_infrastructure_factor = 0.15
				production_speed_arms_factory_factor = -0.15
				trade_opinion_factor = 0.75
				stability_factor = -0.15
				political_power_factor = -0.1
				factory_energy_consumption = 0.35
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 0
   			}
		}

		JAP_war_communism_idea = {

			picture = new_economic_policy

			allowed = {
				always = no
			}
			
			allowed_to_remove = {
				OR = {
					surrender_progress > 0.75
					NOT = { has_government = communism }
				}
			}

			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.15
				production_speed_industrial_complex_factor = -0.1
				global_building_slots_factor = 0.1
				factory_energy_consumption = 0.3
				war_support_factor = 0.1
				stability_factor = -0.1
				conscription = 0.02
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_arms_factory_factor = 0.2
				production_speed_dockyard_factor = 0.2
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 0
   			}
		}
	}

	trade_laws = {
		law = yes
		use_list_view = yes

		uncontrolled_exports = {


			allowed = {
				always = no
			}
			removal_cost = -1
			picture = isolation

			modifier = {
				min_export = 0.25
				consumer_goods_expected_value = 0.05
				civilian_intel_to_others = 40.0
				navy_intel_to_others = 40.0
				agency_upgrade_time = 0.15
				cic_construction_boost = 0.15
			}

			allowed_to_remove = {
				if = {
					limit = {
						original_tag = POL
					}
					OR = {
						has_war = yes
						has_completed_focus = POL_integrate_gdansk_industries
						has_completed_focus = POL_expand_gdynia_seaport
						NOT = {
							owns_state = 85
							owns_state = 807
						}
						any_owned_state = {
							NOT = {
								state = 85
								state = 807
							}
							is_coastal = yes
						}
					}
				}
				if = {	#To represent USA Embargo upon the oil nationalization
					limit = {
						original_tag = MEX
					}
					OR = {
						has_war = yes
						num_of_civilian_factories > 21
						has_completed_focus = MEX_lay_down_the_cooperative_basis
						has_completed_focus = MEX_sign_the_sinclair_agreements
					}
				}
			}

			on_remove = {
				if = {
					limit = {
						tag = POL
						85 = { is_demilitarized_zone = no }
						has_civil_war = no 
					}
					85 = {
						if = {
							limit = {
								has_dynamic_modifier = { modifier = international_city }
							}
							remove_dynamic_modifier = { modifier = international_city }
						}
					}
				}
			}
			
			cancel_if_invalid = no
		}

		free_trade = {

			available = {
				if = {
					limit = { has_global_flag = rt56rp_gr_historical_gflag }
					NOT = { original_tag = LHQ }
				}
				IF = {
					limit = {
						original_tag = GXC
					}
					NOT = { has_completed_focus = GXC_full_self_reliance }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = {
					limit = {
						original_tag = GER
					}
					NOT = { has_completed_focus = GER_autarky_efforts }
				}
				if = {	#56
					limit = {
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				
				if = {	#56
					limit = {
						original_tag = MON
					}
					NOT = { has_completed_focus = MON_changes_within }
				}
				if = {
					limit = {
						original_tag = ISR
					}
					OR = {
						has_completed_focus = ISR_limited_austerity
						has_completed_focus = ISR_lessen_austerity
						has_completed_focus = ISR_undo_austerity
						has_completed_focus = ISR_open_economy
						has_completed_focus = ISR_end_austerity
					}
				}
			}

			cost = 150
			removal_cost = -1

			modifier = {
				min_export = 0.8
				industrial_capacity_factory = 0.15
				industrial_capacity_dockyard = 0.15
				production_speed_buildings_factor = 0.15
				research_speed_factor = 0.10
				civilian_intel_to_others = 40.0
				navy_intel_to_others = 20.0
				cic_construction_boost_factor = 0.05
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 300

					OR = {
						tag = PER
						tag = IRQ
					}
					is_in_faction = no
				}

				modifier = {
					factor = 300

					tag = BRA
					date > 1943.1.1 # at this point we can probably cash in on rubber lack in the world
				}

				# Oil for hitlers oil throne!
				modifier = {
					factor = 600
					tag = ROM
					is_in_faction_with = GER
				}
   			}
		}

		export_focus = {

			available = {
				IF = {
					limit = {
						original_tag = GXC
					}
					NOT = { has_completed_focus = GXC_full_self_reliance }
				}

				if = {
					limit = { has_global_flag = rt56rp_gr_historical_gflag }
					NOT = { original_tag = LHQ }
				}
				
				if = {
					limit = {
						original_tag = HON
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = {	#56
					limit = {
						original_tag = MON
					}
					NOT = { has_completed_focus = MON_changes_within }
				}
				if = {	#56
					limit = {
						original_tag = ISR
					}
					OR = {
						has_completed_focus = ISR_limited_austerity
						has_completed_focus = ISR_lessen_austerity
						has_completed_focus = ISR_undo_austerity
						has_completed_focus = ISR_open_economy
						has_completed_focus = ISR_end_austerity
					}
				}
				if = {
					limit = {
						original_tag = GER
					}
					NOT = { has_completed_focus = GER_autarky_efforts }
				}
			}


			cost = 150
			removal_cost = -1

			modifier = {
				min_export = 0.5
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
				production_speed_buildings_factor = 0.1
				research_speed_factor = 0.05
				civilian_intel_to_others = 20.0
				navy_intel_to_others = 10.0
				cic_construction_boost_factor = 0.1
			}

			default = yes

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

				modifier = {
					factor = 0
					num_of_military_factories > 29
					OR = {
						has_idea = limited_exports
						has_idea = autarkic_economy
						has_idea = autarkic_economy_improved
						has_idea = closed_economy
					}
				
				}
				modifier = {
					factor = 0
					
					is_major = no
					has_war = no
					is_in_faction = no
					OR = {
						# portugal and sweden are special tungsten snowflakes
						tag = POR
						tag = SWE

						# Iraq & Iran are special oil snowflakes
						tag = PER
						tag = IRQ
					}
				}
   			}
		}

		limited_exports = {
			available = {
				
				if = {
					limit = { has_global_flag = rt56rp_gr_historical_gflag }
					NOT = { original_tag = LHQ }
				}
				
				OR = {
					AND = {
						has_government = democratic
						has_war = yes
						any_enemy_country = {
							ic_ratio = {
								tag = ROOT
								ratio > 0.2
							}
						}
					}
					AND = {
						NOT = { has_government = democratic }
						OR = {
							has_idea = partial_economic_mobilisation
							has_idea = war_economy
							has_idea = tot_economic_mobilisation
							if = {
								limit = {
									original_tag = GER
								}
								has_idea = totaler_krieg_economy
							}
							else = {
								hidden_trigger = { always = no } #NEED TO HAVE AN ALWAYS AS AN END STATEMENT IF URE USING AN IF ELSE IN AN OR STATEMENT OTHERWISE THE EVALUATION BREAKS!!
							}
						}
					}
					if = {
						limit = {
							original_tag = RAJ
							has_global_flag = raj_dlc_focus_tree	#56 since r56-native RAJ is available to GOE owners
						}
						has_completed_focus = RAJ_raise_import_duties
					}
					else_if = {
						limit = {
							original_tag = GXC
						}
						has_completed_focus = GXC_full_self_reliance
					}
					else = {
						hidden_trigger = { always = no } #NEED TO HAVE AN ALWAYS AS AN END STATEMENT IF URE USING AN IF ELSE IN AN OR STATEMENT OTHERWISE THE EVALUATION BREAKS!!
					}
				}

				if = {
					limit = {
						original_tag = HON	#56
						has_completed_focus = HON_free_our_markets	#56
					}	#56
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }	#56
				}	#56
				if = {
					limit = {
						original_tag = VEN	#56
					}
					NOT = { has_country_flag = VEN_has_venezuelan_oil }	#56
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
				if = {	#56
					limit = {
						original_tag = ISR
					}
					OR = {
						has_completed_focus = ISR_limited_austerity
						has_completed_focus = ISR_lessen_austerity
						has_completed_focus = ISR_undo_austerity
						has_completed_focus = ISR_open_economy
						has_completed_focus = ISR_end_austerity
					}
				}
			}

			cost = 150
			removal_cost = -1

			modifier = {
				min_export = 0.25
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.05
				research_speed_factor = 0.01
				civilian_intel_to_others = 10.0
				navy_intel_to_others = 5
				lend_lease_tension = 0.20
				cic_construction_boost = -0.05
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

   				modifier = {
					add = -1

					is_major = no
					is_in_faction = yes
					has_war = yes
				}

				# minors not at war should want to get the bonuses from free trade
				modifier = {
					add = -1

					is_major = no
					has_war = no
				}
				modifier = {
					factor = 200
					NOT = { has_government = fascism }
					NOT = { has_idea = closed_economy }
					has_war = yes
					is_major = yes
				}
				modifier = {
					add = 1500

					# revert from closed_economy if we have large allies
					has_idea = closed_economy
					has_large_ally_not_pick_closed_economy = yes
				}
				modifier = { #Germany should keep its Autarkic Economy
					factor = 0 # was 0.5 in the base game
					original_tag = GER
					OR = {
						has_idea = autarkic_economy
						has_idea = autarkic_economy_improved
					}
				}
   			}
		}

		autarkic_economy = {
			visible = {
				original_tag = GER
				has_completed_focus = GER_autarky_efforts
				NOT = { has_completed_focus = GER_autarky_achieved }
			}

			available = {
			}

			cost = 150
			removal_cost = -1

			modifier = {
				min_export = 0.15
				#industrial_capacity_factory = 0.05
				#industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.05
				research_speed_factor = 0.05
				lend_lease_tension = 0.20
				faction_trade_opinion_factor = 0.25
				#cic_construction_boost = -0.05
			}

			cancel_if_invalid = no

			ai_will_do = { #Germany should always for AutarkicEconomy if its available
   				factor = 100

   				modifier = {
   					add = 500
   					has_idea = limited_exports
   				}

   				modifier = {
   					add = 1500
   					has_idea = closed_economy
   					has_large_ally_not_pick_closed_economy = yes
   				}
   			}
		}

		autarkic_economy_improved = {
			picture = autarkic_economy
			name = autarkic_economy
			visible = {
				original_tag = GER
				has_completed_focus = GER_autarky_achieved
			}

			available = {
			}

			cost = 150
			removal_cost = -1

			modifier = {
				min_export = 0.15
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.1
				research_speed_factor = 0.05
				lend_lease_tension = 0.20
				faction_trade_opinion_factor = 0.5
				#cic_construction_boost = -0.05
			}

			cancel_if_invalid = no

			ai_will_do = { #Germany should always for AutarkicEconomy if its available
   				factor = 100

   				modifier = {
   					add = 500
   					has_idea = limited_exports
   				}

   				modifier = {
   					add = 1500
   					has_idea = closed_economy
   					has_large_ally_not_pick_closed_economy = yes
   				}
   			}
		}

		closed_economy = {


			available = {
				has_war = yes
				OR = {
					has_government = fascism
					has_government = communism
				}
				OR = {
					has_idea = war_economy
					has_idea = tot_economic_mobilisation
					if = {
						limit = {
							original_tag = GER
						}
						has_idea = totaler_krieg_economy
					}
					else = {
						hidden_trigger = { always = no } #NEED TO HAVE AN ALWAYS AS AN END STATEMENT IF URE USING AN IF ELSE IN AN OR STATEMENT OTHERWISE THE EVALUATION BREAKS!!
					}
				}
				if = {
					limit = {
						original_tag = HON
						has_completed_focus = HON_free_our_markets
					}
					NOT = { has_idea = r56_idea_capitalism_anarchist_society  }
				}
				if = {
					limit = {
						original_tag = VEN
					}
					NOT = { has_country_flag = VEN_has_venezuelan_oil }
				}
				if = {
					limit = {
						original_tag = SOV
					}
					NOT = { has_opinion_modifier = MR_pact }
				}
			}
			
			cost = 150
			removal_cost = -1

			modifier = {
				min_export = 0
				#civilian_intel_to_others = 0.0
				lend_lease_tension = 0.40
				cic_construction_boost = -0.1
			}

			
			on_add = {
				custom_effect_tooltip = closed_economy_TT
			}
			
			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 0

					is_major = no
					is_in_faction = yes
					has_war = yes
				}

				# minors not at war should want to get the bonuses from free trade
				modifier = {
					factor = 0

					is_major = no
					has_war = no
				}

				modifier = {
					factor = 0

					# don't take if we have a reasonable sized ally
					# since they will require our trades
					has_large_ally_not_pick_closed_economy = yes
				}
   			}
		}

		special_economic_zones = {
			available = {
				always = no
			}
			visible = {
				original_tag = RAJ
				has_completed_focus = RAJ_special_economic_zones
			}
			available = {

			}
			picture = RAJ_special_economic_zones
			cost = 0
			removal_cost = -1

			research_bonus = {
				industry = 0.15
			}

			modifier = {
				min_export = 0.9
				industrial_capacity_factory = 0.2
				industrial_capacity_dockyard = 0.2
				production_speed_buildings_factor = 0.2
				civilian_intel_to_others = 80
				navy_intel_to_others = 30.0
				resource_trade_cost_bonus_per_factory = 1
			}

			cancel_if_invalid = no

		}
	}
}
