ideas = {

	economy = {
		law = yes
		use_list_view = yes

		undisturbed_isolation = {

			allowed = {
				always = no
			}
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.35
				
				production_speed_arms_factory_factor = -0.15
				production_speed_dockyard_factor = -0.15
				industrial_capacity_factory = -0.1
				industrial_capacity_dockyard = -0.1
		        production_factory_efficiency_gain_factor = -0.1
				
				guarantee_cost = 0.5
				generate_wargoal_tension = 0.15
				join_faction_tension = 0.15
			    embargo_cost_factor = 0.2
			    embargo_threshold_factor = 0.2
				
				max_fuel_factor = -0.5
				fuel_gain_factor = -0.5
				agency_upgrade_time = 0.5
                experience_gain_air_factor = -0.2
	            experience_gain_army_factor = -0.2
	            experience_gain_navy_factor = -0.2
			}
			
			rule = {
                can_not_declare_war = yes
			}

			allowed_to_remove = {
				IF = {
					limit = { original_tag = USA }
					OR = {
						surrender_progress > 0.15
						has_defensive_war = yes
						AND = { 
						has_war_support > 0.7 
						has_completed_focus = USA_limited_intervention 
						}
					}
				}
				ELSE = {
					OR = {
						has_war_support > 0.7
						surrender_progress > 0.15
					}
				}
			}

			cancel_if_invalid = no
		}

		isolation = {

			allowed = {
				always = no
			}
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.35
				
				production_speed_arms_factory_factor = -0.1
				production_speed_dockyard_factor = -0.1
				industrial_capacity_factory = -0.1
				industrial_capacity_dockyard = -0.1
		        production_factory_efficiency_gain_factor = -0.1
				
				guarantee_cost = 0.25
				generate_wargoal_tension = 0.1
				join_faction_tension = 0.1
			    political_power_factor = 0.05
				research_speed_factor = 0.05
			    embargo_cost_factor = 0.2
			    embargo_threshold_factor = 0.2
				
				max_fuel_factor = -0.5
				fuel_gain_factor = -0.5
				agency_upgrade_time = 0.5
                experience_gain_air_factor = -0.2
	            experience_gain_army_factor = -0.2
	            experience_gain_navy_factor = -0.2
			}
			allowed_to_remove = {
				IF = {
					limit = { original_tag = USA }
					OR = {
						surrender_progress > 0.15
						has_defensive_war = yes
						AND = { 
						has_war_support > 0.75
						has_completed_focus = USA_limited_intervention 
						}
					}
				}
				ELSE = {
					OR = {
						has_war_support > 0.7
						surrender_progress > 0.1
					}
				}
			}
			

			cancel_if_invalid = no
		}

		civilian_economy = {


			cost = 50
			removal_cost = -1
			level = 0

			modifier = {
				consumer_goods_expected_value = 0.35
				
				production_speed_arms_factory_factor = -0.1
				production_speed_dockyard_factor = -0.1
				industrial_capacity_factory = -0.1
				industrial_capacity_dockyard = -0.1
		        production_factory_efficiency_gain_factor = -0.1
				
			    political_power_factor = 0.05
				research_speed_factor = 0.05
				
				max_fuel_factor = -0.5
				fuel_gain_factor = -0.5
				agency_upgrade_time = 0.5
                experience_gain_air_factor = -0.25
	            experience_gain_army_factor = -0.25
	            experience_gain_navy_factor = -0.25
			}

			default = yes

			cancel_if_invalid = no

		}

		low_economic_mobilisation = {

			available = {
				OR = {
				    AND = {
					    OR = { has_government = fascism has_government = communism }
						OR = { threat > 0.2 has_war_support > 0.3 }
					}
				    AND = {
					    OR = { has_government = democratic has_government = neutrality }
				        threat > 0.2
						has_war_support > 0.3
					}
				    has_war = yes
					has_war_support > 0.5
				}
				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 = {
						has_completed_focus = USA_limited_intervention
					}
					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
						}
					}
				}
			}
			on_add = {
				if = {
					limit = {
						tag = USA
						has_completed_focus = USA_limited_intervention
					}
					USA_congress_large_opposition = yes
				}
			}

			cost = 50
			removal_cost = -1
			level = 1

			modifier = {
				consumer_goods_expected_value = 0.3
				
				industrial_capacity_factory = -0.1
				industrial_capacity_dockyard = -0.1
			    production_factory_max_efficiency_factor = 0.05

				max_fuel_factor = -0.25
				fuel_gain_factor = -0.25
				agency_upgrade_time = 0.25
                experience_gain_air_factor = -0.1
	            experience_gain_army_factor = -0.1
	            experience_gain_navy_factor = -0.1
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 10
					has_war = yes
				}
   			}
		}

		partial_economic_mobilisation = {

			available = {
				
				OR = {
				    AND = {
					    OR = { has_government = fascism has_government = communism }
						threat > 0.3
						has_war_support > 0.4
					}
				    AND = {
					    OR = { has_government = democratic has_government = neutrality }
				        threat > 0.4 
						has_war_support > 0.4
					}
					any_enemy_country = { ic_ratio = { tag = ROOT  ratio > 0.5 } }
					surrender_progress > 0.01
				}

				IF = {
					limit = {
						original_tag = HUN
						has_dlc = "Death or Dishonor"
						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 = {
						has_completed_focus = wuw_HUN_secret_rearmament
						NOT = { has_idea = HUN_treaty_of_triannon_wuw }
					}
				}
				if = {
					limit = {
						has_completed_focus = USA_limited_intervention
					}
					has_completed_focus = USA_the_giant_wakes
					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
						}
					}
				}
			}

			cost = 100
			removal_cost = -1
			level = 2

			modifier = {
				consumer_goods_expected_value = 0.25
			    production_factory_max_efficiency_factor = 0.1
			}

			cancel_if_invalid = no
			on_add = {
				if = {
					limit = {
						tag = USA
						has_completed_focus = USA_limited_intervention
					}
					USA_congress_large_opposition = yes
				}
			}
			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 15
					has_war = yes
				}
				modifier = {
					factor = 15
					is_major = yes
					threat > 0.90
				}
				modifier = {
					factor = 0
					has_war = no
					is_major = no
				}
   			}
		}

		war_economy = {


			available = {
				OR = {
				    AND = {
					    OR = { has_government = fascism has_government = communism }
						OR = { threat > 0.5 has_war_support > 0.8 }
					}
					AND = { 
					    has_war_support > 0.6
                        longest_war_length > 2 
						OR = { 
						    any_enemy_country = { ic_ratio = { tag = ROOT  ratio > 1.0 } }
							surrender_progress > 0.1
						}
						
					}
				}
			    NOT = { has_idea = disarmed_nation }

				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 = {
						has_completed_focus = USA_limited_intervention
					}
                    has_completed_focus = USA_the_giant_wakes
					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_2
							has_active_mission = TUR_etatism_crisis_4
						}
					}
				}
			}

			cost = 100
			removal_cost = -1
			level = 3

			modifier = {
				consumer_goods_expected_value = 0.2
			    production_factory_max_efficiency_factor = 0.15
				#
				production_speed_buildings_factor = -0.05
				production_lack_of_resource_penalty_factor = -0.05
			}

			cancel_if_invalid = no
			on_add = {
				if = {
					limit = {
						tag = USA
						has_completed_focus = USA_limited_intervention
					}
					USA_congress_large_opposition = yes
				}
			}
			ai_will_do = {
   				factor = 2

				modifier = {
					factor = 0
					has_war = no
				}
				
   			}
		}

		tot_economic_mobilisation = {

			visible = {
				if = {
					limit = {
						original_tag = GER
					}
					NOT = { has_completed_focus = GER_totaler_krieg }
				}
			}
			available = {
			    has_war_support > 0.75
				longest_war_length > 5 
				OR = {
					surrender_progress > 0.15
					any_enemy_country = { ic_ratio = { tag = ROOT  ratio > 1.25 } }
				}
			    NOT = { OR = { has_idea = disarmed_nation has_idea = volunteer_only } }
				NOT = { has_idea = free_trade }
				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 = {
						has_completed_focus = USA_limited_intervention
					}
					has_completed_focus = USA_the_giant_wakes
					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_2
							has_active_mission = TUR_etatism_crisis_3
						}
					}
				}
			}
			on_add = {
				if = {
					limit = {
						tag = USA
						has_completed_focus = USA_limited_intervention
					}
					USA_congress_large_opposition = yes
				}
			}
			ai_will_do = {
   				factor = 0
   			}

			cost = 100
			removal_cost = -1
			level = 4

			modifier = {
				consumer_goods_expected_value = 0.15
			    production_factory_max_efficiency_factor = 0.15
				conscription = -0.01
				production_lack_of_resource_penalty_factor = -0.1
				production_speed_buildings_factor = -0.1
			}

			cancel_if_invalid = no
		}

		totaler_krieg_economy = {

			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.75
				has_stability > 0.25
				any_enemy_country = { ic_ratio = { tag = ROOT ratio > 0.75 } }
			    NOT = { OR = { has_idea = disarmed_nation has_idea = volunteer_only } }
			}

			cost = 150
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.15
			    production_factory_max_efficiency_factor = 0.15
				conscription = -0.01
				production_lack_of_resource_penalty_factor = -0.1
				production_speed_buildings_factor = -0.1
			}
			cancel_if_invalid = no
		}
		new_economic_policy = {

			picture = new_economic_policy
			
			available = {
			     has_completed_focus = SOV_back_to_the_nep
			}

			visible = {
			   has_completed_focus = SOV_back_to_the_nep
			}
			
			allowed_to_remove = {
				OR = {
					surrender_progress > 0.15
					NOT = { has_government = communism }
				}
			}

            cost = 150
			removal_cost = -1
			level = 4

			modifier = {
				consumer_goods_expected_value = 0.25
			    production_factory_max_efficiency_factor = 0.1
				production_speed_buildings_factor = 0.05
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 0
   			}
		}
		new_economic_policy_2 = {
			name = new_economic_policy

			picture = new_economic_policy

			available = {
			     has_war = no
			     has_completed_focus = SOV_back_to_the_nep
			}
			
			visible = {
			     has_civil_war = no
			     has_completed_focus = SOV_back_to_the_nep
			}

			allowed_to_remove = {
				OR = {
					surrender_progress > 0.15
					NOT = { has_government = communism }
				}
			}

            cost = 150
			removal_cost = -1
			level = 5

			modifier = {
				consumer_goods_expected_value = 0.2	
			    production_factory_max_efficiency_factor = 0.15
				production_speed_buildings_factor = 0.05
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 0
   			}
		}
		
		capital_investment_model = {
		
			name = capital_investment_model

			picture = RAJ_trickle_down_economy

			available = {
				NOT = { has_idea = tot_economic_mobilisation }
			}
			
			visible = {
			    has_civil_war = no
				has_completed_focus = RAJ_new_economic_policy 
			}
			

            cost = 150
			removal_cost = -1
			level = 4

			modifier = {
				consumer_goods_expected_value = 0.25
			    production_factory_max_efficiency_factor = 0.1

				production_speed_arms_factory_factor = -0.25
				cic_construction_boost_factor = 0.1
				trade_opinion_factor = 0.1
			}

			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

			rule = {
				can_access_market = no
			}

			modifier = {
				min_export = 0.6
				political_power_factor = 0.15
				civilian_intel_to_others = 10
			    army_intel_to_others = 5
			    navy_intel_to_others = 5
			    airforce_intel_to_others = 5
				agency_upgrade_time = 0.5
			    embargo_cost_factor = 0.2
			    embargo_threshold_factor = 0.2
			}

			allowed_to_remove = {
				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
					}
				}
			}

			on_remove = {
				effect_tooltip =  {
					remove_dynamic_modifier = { modifier = international_city }
				}
				hidden_effect = {
					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 = {
						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 }
				}
				NOT = { has_idea = tot_economic_mobilisation }
			}

			cost = 100
			removal_cost = -1
			level = 0

			modifier = {
				min_export = 0.85
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
				political_power_factor = 0.05
				civilian_intel_to_others = 5
			    army_intel_to_others = 5
			    navy_intel_to_others = 5
			    airforce_intel_to_others = 5
				agency_upgrade_time = 0.5
		        resource_trade_cost_bonus_per_factory = 1	
                cic_construction_boost_factor = 0.1				
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

				modifier = {
					factor = 75

					OR = {
						tag = BRA
						tag = ARG
						tag = PER
						tag = IRQ
						tag = AFG
						tag = POR
						tag = ROM
						tag = TUR
						tag = INS
						tag = MAL
						tag = VEN
						tag = CUB
						tag = CAN
						tag = HOL
						tag = SWE
					}
					date > 1938.1.1
				}
   			}
		}

		export_focus = {

			available = {

				if = {
					limit = {
						original_tag = CHI
						has_dlc = "Waking the Tiger"
					}
					NOT = { has_idea = CHI_nine_power_treaty }
				}
				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 }
				}
			}


			cost = 100
			removal_cost = -1
			level = 1

			modifier = {
				min_export = 0.5
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				civilian_intel_to_others = 5
			    army_intel_to_others = 5
			    navy_intel_to_others = 5
			    airforce_intel_to_others = 5
			}

			default = yes

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 25
					is_major = yes
					has_idea = free_trade
				}
   				modifier = {
					factor = 0
					is_major = no
					has_war = no
				}
   			}
		}

		limited_exports = {
			available = {
				OR = {
					AND = {
				        has_government = democratic
						any_enemy_country = {
							ic_ratio = { 
								tag = ROOT 
								ratio > 0.50
							}
						}
						OR = {
							has_idea = war_economy
							has_idea = tot_economic_mobilisation
							has_idea = totaler_krieg_economy
							has_idea = new_economic_policy
							has_idea = new_economic_policy_2
						}
						has_war = yes
					}
					AND = {
						NOT = { has_government = democratic }
						OR = {
							has_idea = partial_economic_mobilisation
							has_idea = war_economy
							has_idea = tot_economic_mobilisation
							has_idea = new_economic_policy
							has_idea = new_economic_policy_2
							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 = CHI
						has_dlc = "Waking the Tiger"
					}
					NOT = { has_idea = CHI_nine_power_treaty }
				}
				if = {
					limit = {
						original_tag = SPR
						has_dlc = "La Resistance"
					}
					NOT = { has_completed_focus = SPR_all_must_bear_the_torch }
				}
			}

			cost = 100
			removal_cost = -1
			level = 2

			modifier = {
				min_export = 0.3
				production_speed_buildings_factor = 0.05
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 0
					is_major = no
				}
				
				modifier = {
					factor = 0
					OR = {
						tag = BRA
						tag = ARG
						tag = PER
						tag = IRQ
						tag = POR
						tag = ROM
						tag = TUR
						tag = INS
						tag = MAL
						tag = NZL
						tag = VEN
						tag = CUB
						tag = CAN
						tag = HOL
					}
				}
				
				modifier = {
					factor = 2
					has_war = yes
					is_major = 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!!
					}
				}
				OR = {
					NOT = {	tag = SOV }
					NOT = { has_opinion_modifier = MR_pact }
				}

				if = {
					limit = {
						original_tag = CHI
						has_dlc = "Waking the Tiger"
					}
					NOT = { has_idea = CHI_nine_power_treaty }
				}
			}
			
			rule = {
				can_access_market = no
				desc = can_not_access_market_closed_economy
			}

			cost = 100
			removal_cost = -1
			level = 3

			modifier = {
				min_export = 0.05
		        drift_defence_factor = 0.10
				production_speed_buildings_factor = 0.05
			}

			cancel_if_invalid = no

			ai_will_do = {
   				factor = 0
   			}
		}
		

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

			available = {
				has_completed_focus = GER_autarky_efforts 
			}

			cost = 150
			removal_cost = -1
			level = 4

			modifier = {
				min_export = 0.25
				production_speed_arms_factory_factor = 0.1
				production_speed_infrastructure_factor = 0.1
			}

			cancel_if_invalid = no

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

   				modifier = {
   					add = 500
   					has_idea = limited_exports
   				}

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

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

			available = {
			    has_completed_focus = GER_autarky_achieved
			}

			cost = 150
			removal_cost = -1

			modifier = {
				min_export = 0.35
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
			}

			cancel_if_invalid = no

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

   				modifier = {
   					add = 0
   					has_idea = limited_exports
   				}

   				modifier = {
   					add = 0
   					has_idea = closed_economy
   					has_large_ally_not_pick_closed_economy = yes
   				}
   			}
		}
		
		special_economic_zones = {
			name = RAJ_special_economic_zones
			available = {
				has_completed_focus = RAJ_look_to_the_future 
			}
			
			visible = {
			   has_completed_focus = RAJ_look_to_the_future 
			}
			
			picture = RAJ_special_economic_zones
			cost = 150
			removal_cost = -1
			level = 4

			modifier = {
				min_export = 0.9
				production_speed_buildings_factor = 0.15
			    drift_defence_factor = -0.20
				civilian_intel_to_others = 10
			    army_intel_to_others = 10
			    navy_intel_to_others = 10
			    airforce_intel_to_others = 10
				agency_upgrade_time = 1.0
				cic_construction_boost_factor = 0.5
				resource_trade_cost_bonus_per_factory = 2
			}

			cancel_if_invalid = no
        }
	}
}
