ideas = {
	### Foreign Investment
	fdi_regulations = { 
		law = yes
		fdi_encouraged = {
			available = {
				NOT = {
					OR = { 
						has_government = fascism
						has_government = communism
						has_government = neutrality
						has_country_flag = tariffs_high
						has_country_flag = closed_economy
					}
				}
			}
			cost = 150
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = -0.1
				industrial_capacity_dockyard = -0.1			
				consumer_goods_factor = -0.1
				production_speed_buildings_factor = 0.05
				trade_opinion_factor = 0.25
				political_power_factor = -0.2
				research_speed_factor = 0.05
				local_resources_factor = 0.1
			}
			
			on_add = {
				set_country_flag = fdi_encouraged
				clr_country_flag = fdi_allowed
				clr_country_flag = fdi_regulated
				clr_country_flag = fdi_banned
			}
			
			cancel_if_invalid = no
			
			ai_will_do = {
				factor = 5
				modifier = {
					factor = 10
					has_government = democratic
				}
				modifier = {
					factor = 0
					OR = {
						has_government = fascism
						has_government = communism
						has_government = neutrality
					}
				}
				modifier = {
					factor = 0
					has_war = yes
				}
				
			}
		}
		fdi_allowed = {
		
			available = {
				NOT = { has_government = communism }
			}
			cost = 125
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = -0.05
				industrial_capacity_dockyard = -0.05				
				consumer_goods_factor = -0.05
				production_speed_buildings_factor = 0.05
				trade_opinion_factor = 0.1
				political_power_factor = -0.1
				research_speed_factor = -0.05
				local_resources_factor = 0.15
			}
			
			on_add = {
				set_country_flag = fdi_allowed
				clr_country_flag = fdi_encouraged
				clr_country_flag = fdi_regulated
				clr_country_flag = fdi_banned
			}
			
			cancel_if_invalid = no
			
			ai_will_do = {
				factor = 5
				modifier = {
					factor = 10
					has_government = democratic
				}
				modifier = {
					factor = 0
					has_government = communism
				}
				modifier = {
					factor = 10
					has_war = yes
					NOT = { has_country_flag = fdi_regulated }
				}
			}
		}
		fdi_regulated = {
			
			available = {
				
			}
		
			cost = 125
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1			
				consumer_goods_factor = 0.05
				production_speed_buildings_factor = -0.05
				trade_opinion_factor = -0.1
				political_power_factor = 0.15
				research_speed_factor = -0.05
			}
			
			on_add = {
				set_country_flag = fdi_regulated
				clr_country_flag = fdi_encouraged
				clr_country_flag = fdi_allowed
				clr_country_flag = fdi_banned
			}
			
			default = yes
			cancel_if_invalid = no

			ai_will_do = {
   				factor = 2
				modifier = {
					factor = 10
					OR = {
						has_government = fascism
						has_government = neutrality
						has_government = democratic
					}
				}
			
			}
		}
		fdi_banned = {
			
			available = {
				OR = { 
					has_government = fascism
					has_government = communism
					has_government = neutrality
				}
				NOT = { has_country_flag = tariffs_none has_country_flag = free_trade }
			}
			
			cost = 150
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.15
				industrial_capacity_dockyard = 0.15				
				consumer_goods_factor = 0.1
				production_speed_buildings_factor = -0.1
				trade_opinion_factor = -0.25
				political_power_factor = 0.25
				research_speed_factor = -0.1
			}
			
			on_add = {
				set_country_flag = fdi_banned
				clr_country_flag = fdi_allowed
				clr_country_flag = fdi_regulated
				clr_country_flag = fdi_encouraged
			}
			
			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1
				modifier = {
					factor = 100
					has_government = communism
				}
   			}
		}
	}
}
### EOF ###