economy_decisions = {

	start_industrial_efforts = {
		icon = generic_construction

		visible = {
			NOT = {has_idea = industrial_efforts}
			any_owned_state = {
				NOT = { has_state_flag = infrastructure_building_slot_flag }
				is_fully_controlled_by = ROOT
				free_building_slots = {
					building = infrastructure
					size < 1
				}
			}
		}

	        allowed = {
	            always = yes
	        }

		available = {
			AND = {
				NOT = {has_idea = industrial_efforts}
				any_owned_state = {
					NOT = { has_state_flag = infrastructure_building_slot_flag }
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = infrastructure
						size < 1
					}
				}
			}
		}
		
		complete_effect = {
			activate_mission = ongoing_industrial_efforts
			add_ideas = industrial_efforts
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_political_power < 300 }
			modifier = {
				factor = 2
				has_political_power > 499 }
		}
	}
	
	end_industrial_efforts = {
		visible = {has_idea = industrial_efforts}
		icon = generic_construction
		complete_effect = {
			remove_mission = ongoing_industrial_efforts
			remove_ideas = industrial_efforts
		}
		
	}
#} 

#industrial_efforts_mission = {
	ongoing_industrial_efforts = {
	
		available = {
			OR = {
				has_political_power < 0
				NOT = { has_idea = industrial_efforts}
				NOT = {
					any_owned_state = {
						NOT = { has_state_flag = infrastructure_building_slot_flag }
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = infrastructure
							size < 1
						}
					}
				}
			}
		}
		
		activation = { always = no}
		is_good = yes 
		icon = generic_construction
		days_mission_timeout = 60
		timeout_effect = { 
			random_owned_state = { 
				limit = { 
					is_fully_controlled_by = ROOT
		            		free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					free_building_slots = {
						building = infrastructure
						size < 1
					}
					NOT = { has_state_flag = infrastructure_building_slot_flag }
				}
				add_extra_state_shared_building_slots = 1
				set_state_flag = infrastructure_building_slot_flag
			}
			activate_mission = ongoing_industrial_efforts
		}
		
		complete_effect = {
			remove_ideas = industrial_efforts
		}
	}
}
