prospect_for_resources = {

	develop_shandong_aluminium_deposits = {

		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			state = 531
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 531
			controls_state = 531
		}

		visible = {
			owns_state = 531
			controls_state = 531
			531 = {
				NOT = {
					has_state_flag = shandong_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			531 = { set_state_flag = shandong_aluminium_developed } 
			531 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_suiyuan_steel_deposits = {

		icon = steel

		allowed = {
			
		}

		highlight_states = {
			state = 626
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 626
			controls_state = 626
		}

		visible = {
			owns_state = 626
			controls_state = 626
			626 = {
				NOT = {
					has_state_flag = suiyuan_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			626 = { set_state_flag = suiyuan_steel_developed } 
			626 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_daqing_deposits = {

		icon = oil

		allowed = {
			
		}

		highlight_states = {
			state = 527
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 527
			controls_state = 527
		}

		visible = {
			owns_state = 527
			controls_state = 527
			527 = {
				NOT = {
					has_state_flag = daqing_oil_developed_1
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			527 = { set_state_flag = daqing_oil_developed_1 } 
			527 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_daqing_deposits_2 = {

		icon = oil

		allowed = {
			
		}

		highlight_states = {
			state = 527
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 527
			controls_state = 527
		}

		visible = {
			owns_state = 527
			controls_state = 527
			527 = {
				has_state_flag = daqing_oil_developed_1
				NOT = {
					has_state_flag = daqing_oil_developed_2
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = 120

		cost = 25

		remove_effect = { 
			527 = { set_state_flag = daqing_oil_developed_2 } 
			527 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_yunnan_aluminium_deposits = {

		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			state = 554
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 554
			controls_state = 554
		}

		visible = {
			owns_state = 554
			controls_state = 554
			554 = {
				NOT = {
					has_state_flag = yunnan_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			554 = { set_state_flag = yunnan_aluminium_developed } 
			554 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_kirin_aluminium_deposits = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 527
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 527
			controls_state = 527
		}

		visible = {
			owns_state = 527
			controls_state = 527
			527 = {
				NOT = {
					has_state_flag = kirin_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			527 = { set_state_flag = kirin_aluminium_developed } 
			527 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_sichuan_aluminium_deposits = {

		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			state = 200
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 200
			controls_state = 200
		}

		visible = {
			owns_state = 200
			controls_state = 200
			200 = {
				NOT = {
					has_state_flag = sichuan_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			200 = { set_state_flag = sichuan_aluminium_developed } 
			200 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_luzon_chromium_deposits = {

		icon = chromium

		allowed = {
			
		}

		highlight_states = {
			state = 123
		}

		available = {
			owns_state = 123
			controls_state = 123
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}

		visible = {
			owns_state = 123
			controls_state = 123
			123 = {
				NOT = {
					has_state_flag = luzon_chromium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			123 = { set_state_flag = luzon_chromium_developed } 
			123 = {
				add_resource = {
					type = chromium
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	develop_mindanao_steel_deposits = {

		icon = steel

		allowed = {
			
		}

		highlight_states = {
			state = 124
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 124
			controls_state = 124
		}

		visible = {
			owns_state = 124
			controls_state = 124
			124 = {
				NOT = {
					has_state_flag = mindanao_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			124 = { set_state_flag = mindanao_steel_developed } 
			124 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_samar_steel_deposits = {

		icon = steel

		allowed = {
			
		}

		highlight_states = {
			state = 589
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 589
			controls_state = 589
		}

		visible = {
			owns_state = 589
			controls_state = 589
			589 = {
				NOT = {
					has_state_flag = samar_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = { 
			589 = { set_state_flag = samar_steel_developed } 
			589 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_nauru_tungsten_deposits = {

		icon = tungsten

		allowed = {
			
		}

		highlight_states = {
			state = 615
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 615
			controls_state = 615
		}

		visible = {
			owns_state = 615
			controls_state = 615
			615 = {
				NOT = {
					has_state_flag = nauru_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			615 = { set_state_flag = nauru_tungsten_developed }
			615 = {
				add_resource = {
					type = tungsten #standin for phosphates
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_tonkin_aluminium_deposits = {

		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			state = 827
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 827
			controls_state = 827
		}

		visible = {
			owns_state = 827
			controls_state = 827
			827 = {
				NOT = {
					has_state_flag = tonkin_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			827 = { set_state_flag = tonkin_aluminium_developed }
			827 = {
				add_resource = {
					type = aluminium
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_singapore_aluminium_deposits = {

		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			state = 580
		}

		available = {	
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 580
			controls_state = 580
		}

		visible = {
			owns_state = 580
			controls_state = 580
			580 = {
				NOT = {
					has_state_flag = singapore_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			580 = { set_state_flag = singapore_aluminium_developed }
			580 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_sirte_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 166
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 166
			controls_state = 166
		}

		visible = {
			owns_state = 166
			controls_state = 166
			166 = {
				NOT = {
					has_state_flag = sirte_oil_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			166 = {
				set_state_flag = sirte_oil_developed
			}
			166 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_benghazi_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 137
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 137
			controls_state = 137
		}

		visible = {
			owns_state = 137
			controls_state = 137
			has_tech = excavation3
			137 = {
				NOT = {
					has_state_flag = benghazi_oil_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			137 = {
				set_state_flag = benghazi_oil_developed
			}
			137 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_tasmania_aluminium_deposits = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 811
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 811
			controls_state = 811
		}

		visible = {
			owns_state = 811
			controls_state = 811
			811 = {
				NOT = {
					has_state_flag = tasmania_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			811 = {
				set_state_flag = tasmania_aluminium_developed
			}
			811 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_west_africa_aluminium_deposits = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 512
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 512
			controls_state = 512
		}

		visible = {
			owns_state = 512
			controls_state = 512
			512 = {
				NOT = {
					has_state_flag = west_Africa_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			512 = {
				set_state_flag = west_Africa_aluminium_developed
			}
			512 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_west_africa_aluminium_deposits_2 = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 512
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 512
			controls_state = 512
		}

		visible = {
			owns_state = 512
			controls_state = 512
			has_tech = excavation3
			512 = {
				has_state_flag = west_Africa_aluminium_developed
			}
			512 = {
				NOT = {
					has_state_flag = west_Africa_aluminium_developed_2
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			512 = {
				set_state_flag = west_Africa_aluminium_developed_2
			}
			512 = {
				add_resource = {
					type = aluminium
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_madagascar_rubber_plantations = {

		icon = rubber

		allowed = {

		}

		highlight_states = {
			state = 156
		}

		available = {
			owns_state = 156
			controls_state = 156
			num_of_civilian_factories_available_for_projects > 2
		}

		visible = {
			owns_state = 156
			controls_state = 156
			156 = {
				NOT = {
					has_state_flag = madagascar_rubber_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 180

		cost = 25

		remove_effect = {
			156 = {
				set_state_flag = madagascar_rubber_developed
			}
			156 = {
				add_resource = {
					type = rubber
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_madagascar_rubber_plantations_2 = {

		icon = rubber

		allowed = {

		}

		highlight_states = {
			state = 156
		}

		available = {
			owns_state = 156
			controls_state = 156
			num_of_civilian_factories_available_for_projects > 4
		}

		visible = {
			owns_state = 156
			controls_state = 156
			156 = {
				has_state_flag = madagascar_rubber_developed
			}
			156 = {
				NOT = {
					has_state_flag = madagascar_rubber_developed_2
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = 180

		cost = 25

		remove_effect = {
			156 = {
				set_state_flag = madagascar_rubber_developed_2
			}
			156 = {
				add_resource = {
					type = rubber
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_nigeria_rubber_plantations = {

		icon = rubber

		allowed = {

		}

		highlight_states = {
			state = 40
		}

		available = {
			owns_state = 40
			controls_state = 40
			num_of_civilian_factories_available_for_projects > 2
		}

		visible = {
			owns_state = 40
			controls_state = 40
			40 = {
				NOT = {
					has_state_flag = nigeria_rubber_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 180

		cost = 25

		remove_effect = {
			40 = {
				set_state_flag = nigeria_rubber_developed
			}
			40 = {
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_ems_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 764
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 764
			controls_state = 764
		}

		visible = {
			owns_state = 764
			controls_state = 764
			has_tech = excavation3
			764 = {
				NOT = {
					has_state_flag = ems_oil_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 120

		cost = 25

		remove_effect = {
			764 = {
				set_state_flag = ems_oil_developed
			}
			764 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_matzen_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 750
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 750
			controls_state = 750
		}

		visible = {
			owns_state = 750
			controls_state = 750
			has_tech = excavation3
			750 = {
				NOT = {
					has_state_flag = ems_oil_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 120

		cost = 25

		remove_effect = {
			750 = {
				set_state_flag = ems_oil_developed
			}
			750 = {
				add_resource = {
					type = oil
					amount = 750
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_friesland_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 715
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 715
			controls_state = 715
		}

		visible = {
			owns_state = 715
			controls_state = 715
			has_tech = excavation3
			715 = {
				NOT = {
					has_state_flag = friesland_oil_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 120

		cost = 25

		remove_effect = {
			715 = { set_state_flag = friesland_oil_developed }
			715 = {
				add_resource = {
					type = oil
					amount = 6
				}
				
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	expand_eregli_steel_works = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 85
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 85
			controls_state = 85
		}

		visible = {
			owns_state = 85
			controls_state = 85
			85 = {
				NOT = {
					has_state_flag = eregli_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			85 = { set_state_flag = eregli_steel_developed }
			85 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_newfoundland_steel = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 202
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 202
			controls_state = 202
		}

		visible = {
			owns_state = 202
			controls_state = 202
			202 = {
				NOT = {
					has_state_flag = newfoundland_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			202 = { set_state_flag = newfoundland_steel_developed }
			202 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_quebec_steel = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 548
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			548 = {
				infrastructure > 2
			}
			owns_state = 548
			controls_state = 548
		}

		visible = {
			owns_state = 548
			controls_state = 548
			548 = {
				NOT = {
					has_state_flag = quebec_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			548 = {
				set_state_flag = quebec_steel_developed
			}
			548 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_cuba_steel = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 802
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 802
			controls_state = 802
		}

		visible = {
			owns_state = 802
			controls_state = 802
			802 = {
				NOT = {
					has_state_flag = cuba_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			802 = {
				set_state_flag = cuba_steel_developed
			}
			802 = {
				add_resource = {
					type = steel
					amount = 6
				}	
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_arkansas_aluminium_deposits = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 498
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 498
			controls_state = 498
		}

		visible = {
			owns_state = 498
			controls_state = 498
			498 = {
				NOT = {
					has_state_flag = { 
						flag = arkansas_aluminium_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_arkansas_aluminium_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_arkansas_aluminium_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_arkansas_aluminium_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_arkansas_aluminium_duration value = 30 }
			498 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = arkansas_aluminium_developed
						}
					}
					set_state_flag = {
						flag = arkansas_aluminium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = arkansas_aluminium_developed
						value = 1
					}
				}
			}
			498 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_new_york_aluminium_deposits = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 356
		}

		available = {
			has_tech = construction2
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 356
			controls_state = 356
		}

		visible = {
			owns_state = 356
			controls_state = 356
			356 = {
				NOT = {
					has_state_flag = {
						flag = new_york_aluminium_developed
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_new_york_aluminium_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_new_york_aluminium_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_new_york_aluminium_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_new_york_aluminium_duration value = 30 }
			356 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = new_york_aluminium_developed
						}
					}
					set_state_flag = {
						flag = new_york_aluminium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = new_york_aluminium_developed
						value = 1
					}
				}
			}
			356 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_tennessee_aluminium_deposits = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 215
		}

		available = {
			has_tech = construction2
			owns_state = 215
			controls_state = 215
			num_of_civilian_factories_available_for_projects > 11
		}

		visible = {
			owns_state = 215
			controls_state = 215
			215 = {
				NOT = {
					has_state_flag = { 
						flag = tennessee_aluminium_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_tennessee_aluminium_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_tennessee_aluminium_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_tennessee_aluminium_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_tennessee_aluminium_duration value = 30 }
			215 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = tennessee_aluminium_developed
						}
					}
					set_state_flag = {
						flag = tennessee_aluminium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = tennessee_aluminium_developed
						value = 1
					}
				}
			}
			215 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_washington_aluminium_deposits = {

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			state = 822
		}

		available = {
			has_tech = construction2
			owns_state = 822
			controls_state = 822
			num_of_civilian_factories_available_for_projects > 11
		}

		visible = {
			owns_state = 822
			controls_state = 822
			822 = {
				NOT = {
					has_state_flag = { 
						flag = washington_aluminium_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_washington_aluminium_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_washington_aluminium_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_washington_aluminium_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_washington_aluminium_duration value = 30 }
			822 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = washington_aluminium_developed
						}
					}
					set_state_flag = {
						flag = washington_aluminium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = washington_aluminium_developed
						value = 1
					}
				}
			}
			822 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_idaho_tungsten_deposits = {

		icon = tungsten

		allowed = {

		}

		highlight_states = {
			state = 824
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 824
			controls_state = 824
		}

		visible = {
			owns_state = 824
			controls_state = 824
			824 = {
				NOT = {
					has_state_flag = { 
						flag = idaho_tungsten_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_idaho_tungsten_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_idaho_tungsten_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_idaho_tungsten_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_idaho_tungsten_duration value = 30 }
			824 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = idaho_tungsten_developed
						}
					}
					set_state_flag = {
						flag = idaho_tungsten_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = idaho_tungsten_developed
						value = 1
					}
				}
			}
			824 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_california_tungsten_deposits = {

		icon = tungsten

		allowed = {

		}

		highlight_states = {
			state = 809
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 809
			controls_state = 809
		}

		visible = {
			owns_state = 809
			controls_state = 809
			809 = {
				NOT = {
					has_state_flag = { 
						flag = california_tungsten_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_california_tungsten_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_california_tungsten_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_california_tungsten_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_california_tungsten_duration value = 30 }
			809 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = california_tungsten_developed
						}
					}
					set_state_flag = {
						flag = california_tungsten_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = california_tungsten_developed
						value = 1
					}
				}
			}
			809 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_minnesota_steel_deposits = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 564
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 564
			controls_state = 564
		}

		visible = {
			owns_state = 564
			controls_state = 564
			564 = {
				NOT = {
					has_state_flag = { 
						flag = minnesota_steel_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_minnesota_steel_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_minnesota_steel_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_minnesota_steel_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_minnesota_steel_duration value = 30 }
			564 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = minnesota_steel_developed
						}
					}
					set_state_flag = {
						flag = minnesota_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = minnesota_steel_developed
						value = 1
					}
				}
			}
			564 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_pennsylvania_steel_deposits = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 354
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 354
			controls_state = 354
		}

		visible = {
			owns_state = 354
			controls_state = 354
			354 = {
				NOT = {
					has_state_flag = { 
						flag = pennsylvania_steel_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_pennsylvania_steel_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_pennsylvania_steel_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_pennsylvania_steel_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_pennsylvania_steel_duration value = 30 }
			354 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = pennsylvania_steel_developed
						}
					}
					set_state_flag = {
						flag = pennsylvania_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = pennsylvania_steel_developed
						value = 1
					}
				}
			}
			354 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_ohio_steel_deposits = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 358
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 358
			controls_state = 358
		}

		visible = {
			owns_state = 358
			controls_state = 358
			358 = {
				NOT = {
					has_state_flag = { 
						flag = ohio_steel_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_ohio_steel_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_ohio_steel_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_ohio_steel_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_ohio_steel_duration value = 30 }
			358 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = ohio_steel_developed
						}
					}
					set_state_flag = {
						flag = ohio_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = ohio_steel_developed
						value = 1
					}
				}
			}
			358 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_indiana_steel_deposits = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 567
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 567
			controls_state = 567
		}

		visible = {
			owns_state = 567
			controls_state = 567
			567 = {
				NOT = {
					has_state_flag = { 
						flag = indiana_steel_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_indiana_steel_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_indiana_steel_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_indiana_steel_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_indiana_steel_duration value = 30 }
			567 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = indiana_steel_developed
						}
					}
					set_state_flag = {
						flag = indiana_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = indiana_steel_developed
						value = 1
					}
				}
			}
			567 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_montana_chromium_deposits = {

		icon = chromium

		allowed = {

		}

		highlight_states = {
			state = 571
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 571
			controls_state = 571
		}

		visible = {
			owns_state = 571
			controls_state = 571
			has_tech = excavation3
			571 = {
				NOT = {
					has_state_flag = { 
						flag = montana_chromium_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_montana_chromium_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_montana_chromium_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_montana_chromium_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_montana_chromium_duration value = 30 }
			571 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = montana_chromium_developed
						}
					}
					set_state_flag = {
						flag = montana_chromium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = montana_chromium_developed
						value = 1
					}
				}
			}
			571 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_california_chromium_deposits = {

		icon = chromium

		allowed = {

		}

		highlight_states = {
			state = 809
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 809
			controls_state = 809
		}

		visible = {
			owns_state = 809
			controls_state = 809
			has_tech = excavation3
			809 = {
				NOT = {
					has_state_flag = { 
						flag = california_chromium_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = USA_california_chromium_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_california_chromium_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_california_chromium_duration value = 30 }
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_california_chromium_duration value = 30 }
			809 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = california_chromium_developed
						}
					}
					set_state_flag = {
						flag = california_chromium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = california_chromium_developed
						value = 1
					}
				}
			}
			809 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				has_political_power < 200
				factor = 0
			}
		}
	}

	develop_south_sakhalin_oil_deposits = {

		icon = oil

		allowed = {
			#Everyone
		}

		highlight_states = {
			state = 524
		}

		available = {
			has_full_control_of_state = 524
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
			controls_state = 524
		}

		visible = {
			controls_state = 524
			524 = { NOT = { has_state_flag = sakhalin_oil_developed } }
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			524 = {
				add_resource = {
					type = oil
					amount = 8
				}
				set_state_flag = sakhalin_oil_developed
			}
		}

		ai_will_do = {
			base = 1
		}
	}

	develop_palau_aluminium_deposits = {

		icon = aluminium

		allowed = {
			#Everyone
		}

		highlight_states = {
			state = 613
		}

		available = {
			has_full_control_of_state = 613
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation2
			controls_state = 613
		}

		visible = {
			controls_state = 613
			613 = { NOT = { has_state_flag = palau_aluminium_developed } }
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			613 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = palau_aluminium_developed				
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_cornwall_tungsten_deposits_1 = {

		icon = tungsten

		allowed = {
			
		}

		highlight_states = {
			state = 265
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 265
			controls_state = 265
		}

		visible = {
			owns_state = 265
			controls_state = 265
			265 = {
				NOT = {
					has_state_flag = cornwall_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			265 = { set_state_flag = cornwall_tungsten_developed }
			265 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_cornwall_tungsten_deposits_2 = {

		icon = tungsten

		allowed = {
			
		}

		highlight_states = {
			state = 265
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 265
			controls_state = 265
		}

		visible = {
			owns_state = 265
			controls_state = 265
			265 = {
				NOT = {
					has_state_flag = cornwall_tungsten_developed_2
				}
				has_state_flag = cornwall_tungsten_developed
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			265 = { set_state_flag = cornwall_tungsten_developed_2 }
			265 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_leningrad_aluminium_deposits = {

		icon = aluminium

		allowed = {
			#Everyone
		}

		highlight_states = {
			state = 648
		}

		available = {
			has_full_control_of_state = 648
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation2
			controls_state = 648
		}

		visible = {
			controls_state = 648
			648 = { NOT = { has_state_flag = leningrad_aluminium_developed } }
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			648 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = leningrad_aluminium_developed				
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_kamensk_aluminium_deposits = {

		icon = aluminium

		allowed = {
			#Everyone
		}

		highlight_states = {
			state = 684
		}

		available = {
			has_full_control_of_state = 684
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation2
			controls_state = 684
		}

		visible = {
			controls_state = 684
			684 = { NOT = { has_state_flag = kamensk_aluminium_developed } }
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			684 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = kamensk_aluminium_developed				
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_stalingrad_aluminium_deposits = {

		icon = aluminium

		allowed = {
			#Everyone
		}

		highlight_states = {
			state = 102
		}

		available = {
			has_full_control_of_state = 102
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation4
			controls_state = 102
		}

		visible = {
			controls_state = 102
			102 = { NOT = { has_state_flag = stalingrad_aluminium_developed } }
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			102 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = stalingrad_aluminium_developed				
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_caucasus_tungsten_deposits_1 = {

		icon = tungsten

		allowed = {
			
		}

		highlight_states = {
			state = 104
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 104
			controls_state = 104
		}

		visible = {
			owns_state = 104
			controls_state = 104
			104 = {
				NOT = {
					has_state_flag = caucasus_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			104 = { set_state_flag = caucasus_tungsten_developed }
			104 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_caucasus_tungsten_deposits_2 = {

		icon = tungsten

		allowed = {
			
		}

		highlight_states = {
			state = 104
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 104
			controls_state = 104
		}

		visible = {
			owns_state = 104
			controls_state = 104
			104 = {
				NOT = {
					has_state_flag = caucasus_tungsten_developed_2
				}
				has_state_flag = caucasus_tungsten_developed
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			104 = { set_state_flag = caucasus_tungsten_developed_2 }
			104 = {
				add_resource = {
					type = tungsten
					amount = 10
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_kyzyl_tungsten_deposits = {

		icon = tungsten

		allowed = {
			
		}

		highlight_states = {
			state = 632
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 632
			controls_state = 632
		}

		visible = {
			owns_state = 632
			controls_state = 632
			has_tech = excavation3
			632 = {
				NOT = {
					has_state_flag = kyzla_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			632 = { set_state_flag = kyzla_tungsten_developed }
			632 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_chelyabinsk_steel_deposits = {

		icon = steel

		allowed = {
			
		}

		highlight_states = {
			state = 684
		}

		available = {
			has_tech = construction4
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 684
			controls_state = 684
			has_tech = construction3
		}

		visible = {
			owns_state = 684
			controls_state = 684
			has_tech = construction3
			684 = {
				NOT = {
					has_state_flag = { 
						flag = chelyabinsk_steel_developed 
						value = 3
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			684 = { 
				if = {
					limit = {
						not = {
							has_state_flag = chelyabinsk_steel_developed 
						}
					}
					set_state_flag = {
						flag = chelyabinsk_steel_developed 
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = chelyabinsk_steel_developed 
						value = 1
					}
				}
			}
			684 = {
				add_resource = {
					type = steel
					amount = 20
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_zlatoust_steel_deposits_1 = {

		icon = steel

		allowed = {
			
		}

		highlight_states = {
			state = 652
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 652
			controls_state = 652
		}

		visible = {
			owns_state = 652
			controls_state = 652
			652 = {
				NOT = {
					has_state_flag = zlatoust_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			652 = { set_state_flag = zlatoust_steel_developed }
			652 = {
				add_resource = {
					type = steel
					amount = 10
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_zlatoust_steel_deposits_2 = {

		icon = steel

		allowed = {
			
		}

		highlight_states = {
			state = 652
		}

		available = {
			has_tech = construction4
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 652
			controls_state = 652
		}

		visible = {
			owns_state = 652
			controls_state = 652
			652 = {
				NOT = {
					has_state_flag = zlatoust_steel_developed_2
				}
				has_state_flag = zlatoust_steel_developed
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			652 = { set_state_flag = zlatoust_steel_developed_2 }
			652 = {
				add_resource = {
					type = steel
					amount = 20
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_kursk_steel_deposits = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 221
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 8
			owns_state = 221
			controls_state = 221
		}

		visible = {
			owns_state = 221
			controls_state = 221
			221 = {
				NOT = {
					has_state_flag = { 
						flag = kursk_steel_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 9
		}

		days_remove = SOV_kursk_steel_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = SOV_kursk_steel_duration value = 30 compare = less_than }
				}
				set_variable = { var = SOV_kursk_steel_duration value = 30 }
			}
		}

		remove_effect = {
			add_to_variable = { var = SOV_kursk_steel_duration value = 30 }
			221 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kursk_steel_developed
						}
					}
					set_state_flag = {
						flag = kursk_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kursk_steel_developed
						value = 1
					}
				}
			}
			221 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_kursk_steel_deposits_2 = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 221
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 221
			controls_state = 221
		}

		visible = {
			owns_state = 221
			controls_state = 221
			221 = {
				NOT = {
					has_state_flag = { 
						flag = kursk_steel_developed_2 
						value = 5
					}
				}
				has_state_flag = { 
					flag = kursk_steel_developed
					value = 5
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = SOV_kursk_steel_duration_2?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = SOV_kursk_steel_duration_2 value = 30 compare = less_than }
				}
				set_variable = { var = SOV_kursk_steel_duration_2 value = 30 }
			}
		}

		remove_effect = {
			add_to_variable = { var = SOV_kursk_steel_duration_2 value = 30 }
			221 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kursk_steel_developed_2
						}
					}
					set_state_flag = {
						flag = kursk_steel_developed_2
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kursk_steel_developed_2
						value = 1
					}
				}
			}
			221 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_kursk_steel_deposits_3 = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 221
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 14
			owns_state = 221
			controls_state = 221
		}

		visible = {
			owns_state = 221
			controls_state = 221
			221 = {
				NOT = {
					has_state_flag = { 
						flag = kursk_steel_developed_3 
						value = 5
					}
				}
				has_state_flag = { 
					flag = kursk_steel_developed_2
					value = 5
				}
			}
		}

		modifier = {
			civilian_factory_use = 15
		}

		days_remove = SOV_kursk_steel_duration_3?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = SOV_kursk_steel_duration_3 value = 30 compare = less_than }
				}
				set_variable = { var = SOV_kursk_steel_duration_3 value = 30 }
			}
		}

		remove_effect = {
			add_to_variable = { var = SOV_kursk_steel_duration_3 value = 30 }
			221 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kursk_steel_developed_3
						}
					}
					set_state_flag = {
						flag = kursk_steel_developed_3
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kursk_steel_developed_3
						value = 1
					}
				}
			}
			221 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_Belgorod_steel_deposits = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 221
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 8
			owns_state = 221
			controls_state = 221
		}

		visible = {
			owns_state = 221
			controls_state = 221
			221 = {
				NOT = {
					has_state_flag = { 
						flag = Belgorod_steel_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 9
		}

		days_remove = SOV_Belgorod_steel_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = SOV_Belgorod_steel_duration value = 30 compare = less_than }
				}
				set_variable = { var = SOV_Belgorod_steel_duration value = 30 }
			}
		}

		remove_effect = {
			add_to_variable = { var = SOV_Belgorod_steel_duration value = 30 }
			221 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = Belgorod_steel_developed
						}
					}
					set_state_flag = {
						flag = Belgorod_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = Belgorod_steel_developed
						value = 1
					}
				}
			}
			221 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_Belgorod_steel_deposits_2 = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 221
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 221
			controls_state = 221
		}

		visible = {
			owns_state = 221
			controls_state = 221
			221 = {
				NOT = {
					has_state_flag = { 
						flag = Belgorod_steel_developed_2 
						value = 5
					}
				}
				has_state_flag = { 
					flag = Belgorod_steel_developed
					value = 5
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = SOV_Belgorod_steel_duration_2?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 compare = less_than }
				}
				set_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 }
			}
		}

		remove_effect = {
			add_to_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 }
			221 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = Belgorod_steel_developed_2
						}
					}
					set_state_flag = {
						flag = Belgorod_steel_developed_2
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = Belgorod_steel_developed_2
						value = 1
					}
				}
			}
			221 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_Belgorod_steel_deposits_3 = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 221
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 14
			owns_state = 221
			controls_state = 221
		}

		visible = {
			owns_state = 221
			controls_state = 221
			221 = {
				NOT = {
					has_state_flag = { 
						flag = Belgorod_steel_developed_3 
						value = 5
					}
				}
				has_state_flag = { 
					flag = Belgorod_steel_developed_2
					value = 5
				}
			}
		}

		modifier = {
			civilian_factory_use = 15
		}

		days_remove = SOV_Belgorod_steel_duration_3?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 compare = less_than }
				}
				set_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 }
			}
		}

		remove_effect = {
			add_to_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 }
			221 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = Belgorod_steel_developed_3
						}
					}
					set_state_flag = {
						flag = Belgorod_steel_developed_3
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = Belgorod_steel_developed_3
						value = 1
					}
				}
			}
			221 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_uralsk_chromium_deposits_1 = {

		icon = chromium

		allowed = {
			
		}

		highlight_states = {
			state = 642
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 642
			controls_state = 642
		}

		visible = {
			owns_state = 642
			controls_state = 642
			642 = {
				NOT = {
					has_state_flag = uralsk_chromium_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			642 = { set_state_flag = uralsk_chromium_developed }
			642 = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_uralsk_chromium_deposits_2 = {

		icon = chromium

		allowed = {
			
		}

		highlight_states = {
			state = 642
		}

		available = {
			has_tech = excavation5
			owns_state = 642
			controls_state = 642
			num_of_civilian_factories_available_for_projects > 4
		}

		visible = {
			owns_state = 642
			controls_state = 642
			642 = {
				NOT = {
					has_state_flag = uralsk_chromium_developed_2
				}
				has_state_flag = uralsk_chromium_developed
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			642 = { set_state_flag = uralsk_chromium_developed_2 }
			642 = {
				add_resource = {
					type = chromium
					amount = 15
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_liaotung_iron_ore_deposits = {

		icon = steel

		allowed = {

		}

		highlight_states = {
			state = 527
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation1
			owns_state = 527
			controls_state = 527
		}

		visible = {
			owns_state = 527
			controls_state = 527
			527 = {
				NOT = {
					has_state_flag = liaotung_steel_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			527 = { set_state_flag = liaotung_steel_developed }
			527 = {
				add_resource = {
					type = steel
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_chosen_tungsten_deposits = {

		icon = tungsten

		allowed = {

		}

		highlight_states = {
			state = 427
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 427
			controls_state = 427
		}

		visible = {
			owns_state = 427
			controls_state = 427
			427 = {
				NOT = {
					has_state_flag = { 
						flag = chosin_tungsten_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 5
		}

		days_remove = chosin_tungsten_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = chosin_tungsten_duration value = 30 compare = less_than }
				}
				set_variable = { var = chosin_tungsten_duration value = 30 }
			}
		}

		remove_effect = {
			add_to_variable = { var = chosin_tungsten_duration value = 30 }
			427 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = chosin_tungsten_developed
						}
					}
					set_state_flag = {
						flag = chosin_tungsten_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = chosin_tungsten_developed
						value = 1
					}
				}
			}
			427 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_abu_dhabi_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 368
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 6
			owns_state = 368
			controls_state = 368
		}

		visible = {
			owns_state = 368
			controls_state = 368
			has_tech = excavation5
			368 = {
				NOT = {
					has_state_flag = abu_dhabi_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 9
		}

		days_remove = 120

		cost = 25

		remove_effect = {
			368 = {
				set_state_flag = abu_dhabi_developed
			}
			368 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_kuwait_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 387
		}

		available = {
			has_tech = excavation5
			owns_state = 387
			controls_state = 387
			num_of_civilian_factories_available_for_projects > 11
		}

		visible = {
			owns_state = 387
			controls_state = 387
			has_tech = excavation2
			387 = {
				NOT = {
					has_state_flag = { 
						flag = kuwait_oil_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = kuwait_oil_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = kuwait_oil_duration value = 30 compare = less_than }
				}
				set_variable = { var = kuwait_oil_duration value = 60 }
			}
		}

		remove_effect = {
			add_to_variable = { var = kuwait_oil_duration value = 30 }
			387 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kuwait_oil_developed
						}
					}
					set_state_flag = {
						flag = kuwait_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kuwait_oil_developed
						value = 1
					}
				}
			}
			387 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_khuzestan_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 113
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 8
			owns_state = 113
			controls_state = 113
		}

		visible = {
			owns_state = 113
			controls_state = 113
			has_tech = excavation2
			113 = {
				NOT = {
					has_state_flag = khuzestan_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 9
		}

		days_remove = 180

		cost = 25

		remove_effect = {
			113 = {
				set_state_flag = khuzestan_developed
			}
			113 = {
				add_resource = {
					type = oil
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_fars_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 115
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 115
			controls_state = 115
		}

		visible = {
			owns_state = 115
			controls_state = 115
			has_tech = excavation3
			115 = {
				NOT = {
					has_state_flag = fars_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 120

		cost = 25

		remove_effect = {
			115 = {
				set_state_flag = fars_developed
			}
			115 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_baghdad_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 95
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 95
			controls_state = 95
		}

		visible = {
			owns_state = 95
			controls_state = 95
			has_tech = excavation4
			95 = {
				NOT = {
					has_state_flag = baghdad_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 12
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			95 = {
				set_state_flag = baghdad_developed
			}
			95 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_mosul_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 93
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 93
			controls_state = 93
		}

		visible = {
			owns_state = 93
			controls_state = 93
			has_tech = excavation3
			93 = {
				NOT = {
					has_state_flag = mosul_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 15
		}

		days_remove = 180

		cost = 25

		remove_effect = {
			93 = {
				set_state_flag = mosul_developed
			}
			93 = {
				add_resource = {
					type = oil
					amount = 28
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_nejd_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 366
		}

		available = {
			has_tech = excavation5
			owns_state = 366
			controls_state = 366
			num_of_civilian_factories_available_for_projects > 14
		}

		visible = {
			owns_state = 366 
			controls_state = 366 
			has_tech = excavation4
			366 = {
				NOT = {
					has_state_flag = { 
						flag = nejd_oil_developed 
						value = 5
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 15
		}

		days_remove = nejd_oil_duration?30

		cost = 25

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = nejd_oil_duration value = 30 compare = less_than }
				}
				set_variable = { var = nejd_oil_duration value = 60 }
			}
		}

		remove_effect = {
			add_to_variable = { var = nejd_oil_duration value = 30 }
			366 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = nejd_oil_developed
						}
					}
					set_state_flag = {
						flag = nejd_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = nejd_oil_developed
						value = 1
					}
				}
			}
			366 = {
				add_resource = {
					type = oil
					amount = 22
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	develop_eastern_desert_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 375
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 375
			controls_state = 375
		}

		visible = {
			owns_state = 375
			controls_state = 375
			has_tech = excavation2
			375 = {
				NOT = {
					has_state_flag = eastern_desert_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 3
		}

		days_remove = 60

		cost = 25

		remove_effect = {
			375 = {
				set_state_flag = eastern_desert_developed
			}
			375 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	develop_qatar_oil_fields = {

		icon = oil

		allowed = {

		}

		highlight_states = {
			state = 368
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 5
			owns_state = 368
			controls_state = 368
		}

		visible = {
			owns_state = 368
			controls_state = 368
			has_tech = excavation2
			368 = {
				NOT = {
					has_state_flag = qatar_developed
				}
			}
		}

		fire_only_once = yes

		modifier = {
			civilian_factory_use = 6
		}

		days_remove = 90

		cost = 25

		remove_effect = {
			368 = {
				set_state_flag = qatar_developed
			}
			368 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}
}

