prospect_for_resources = {
	develop_shandong_aluminium_deposits = { #597
		
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 597
			} 
		}

		available = {
		
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 597
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 597
				}
				has_resources_rights = {
					state = 597
				}									
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_shandong_aluminium_deposits
			#	}
			#}
			597 = {
				NOT = {
					has_state_flag = shandong_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}
		remove_effect = { 
			597 = { set_state_flag = shandong_aluminium_developed } 
			597 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}

	develop_suiyuan_steel_deposits = { #621
		
		icon = steel
		highlight_states = {
			highlight_state_targets = {
				state = 621
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2

		}

		
        visible = {
			OR = {
				has_full_control_of_state = 621
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 621
				}
				has_resources_rights = {
					state = 621
				}								
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_suiyuan_steel_deposits
			#	}
			#}
			621 = {
				NOT = {
					has_state_flag = suiyuan_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}
		remove_effect = { 
			621 = { set_state_flag = suiyuan_steel_developed } 
			621 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}	
	}

	develop_daqing_deposits = { #943
		
		icon = oil
		highlight_states = {
			highlight_state_targets = {
				state = 943
			} 
		}
		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 943
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 943
				}
				has_resources_rights = {
					state = 943
				}								
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_daqing_deposits
			#	}
			#}
			943 = {
				NOT = {
					has_state_flag = daqing_oil_developed_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			943 = { set_state_flag = daqing_oil_developed_1 } 
			943 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}
	develop_daqing_deposits_2 = { #943
		
		icon = oil
		highlight_states = {
			highlight_state_targets = {
				state = 943
			} 
		}
		available = {
			has_tech = excavation_d
			num_of_civilian_factories_available_for_projects > 4
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 943
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 943
				}	
				has_resources_rights = {
					state = 943
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_daqing_deposits_2
			#	}
			#}
			943 = {
				has_state_flag = daqing_oil_developed_1
				NOT = {
					has_state_flag = daqing_oil_developed_2
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			943 = { set_state_flag = daqing_oil_developed_2 } 
			943 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}	
	}
	develop_yunnan_aluminium_deposits = { #325
		
		icon = aluminium

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = {
			highlight_state_targets = {
				state = 325
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 325
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 325
				}
				has_resources_rights = {
					state = 325
				}								
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_yunnan_aluminium_deposits
			#	}
			#}
			325 = {
				NOT = {
					has_state_flag = yunnan_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}
		remove_effect = { 
			325 = { set_state_flag = yunnan_aluminium_developed } 
			325 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}	
	}
	develop_kirin_aluminium_deposits = { #328
		
		icon = aluminium

		allowed = {
			NOT = { tag = MAN }
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2

		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 328
			} 
		}

		
        visible = {
			OR = {
				AND = {
					owns_state = 328
					controls_state = 328
				}
				has_resources_rights = {
					state = 328
				}	
			}
			328 = {
				NOT = {
					has_state_flag = kirin_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}
		remove_effect = { 
			328 = { set_state_flag = kirin_aluminium_developed } 
			328 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}	
	}
	develop_sichuan_aluminium_deposits = { #605
		
		icon = aluminium

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = {
			highlight_state_targets = {
				state = 605
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 605
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 605
				}	
				has_resources_rights = {
					state = 605
				}						
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_sichuan_aluminium_deposits
			#	}
			#}
			605 = {
				NOT = {
					has_state_flag = sichuan_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}
		remove_effect = { 
			605 = { set_state_flag = sichuan_aluminium_developed } 
			605 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}	
	}

	develop_mindanao_steel_deposits = { #627
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 627
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 627
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 627
				}
				has_resources_rights = {
					state = 627
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_mindanao_steel_deposits
			#	}
			#}
			627 = {
				NOT = {
					has_state_flag = mindanao_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}
		remove_effect = { 
			627 = { set_state_flag = mindanao_steel_developed } 
			627 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}

	develop_samar_steel_deposits = { #625
		
		icon = steel

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 625
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 625
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 625
				}
				has_resources_rights = {
					state = 625
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_samar_steel_deposits
			#	}
			#}
			625 = {
				NOT = {
					has_state_flag = samar_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = { 
			625 = { set_state_flag = samar_steel_developed } 
			625 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
		}	
	}
#removed
#	develop_nauru_tungsten_deposits = { #725
#		
#		icon = tungsten
#
#		allowed = {
#			
#		}
#
#		available = {
		#	225 = {
		#		OR = {
		#			has_resistance = no
		#			AND = {
		#				compliance > 30
		#				resistance < 75
		#			}
		#		}
		#	}
#			has_tech = excavation4
#			num_of_civilian_factories_available_for_projects > 2
#			owns_state = 725
#			controls_state = 725
#		}
#
#		highlight_state_targets = {
#			state = 725
#		}
#
#		
        #visible = {
#			owns_state = 725
#			controls_state = 725
#			725 = {
#				NOT = {
#					has_state_flag = nauru_tungsten_developed
#				}
#			}
#		}
#
#		fire_only_once = yes
#
#		cost = 25
#		days_remove = 60
#
#		modifier = {
#			civilian_factory_use = 3
#		}
#
#		ai_will_do = {
#			factor = 1
#			modifier = {
#				tag = ENG
#				has_war = no
#				factor = 0
#			}
#		}
#
#		remove_effect = {
#			725 = { set_state_flag = nauru_tungsten_developed }
#			725 = {
#				add_resource = {
#					type = tungsten #standin for phosphates
#					amount = 4
#				}
#			}
#		}
#	}
	develop_tonkin_aluminium_deposits = { #671
		
		icon = aluminium

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 671
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 671
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 671
				}
				has_resources_rights = {
					state = 671
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_tonkin_aluminium_deposits
			#	}
			#}
			671 = {
				NOT = {
					has_state_flag = tonkin_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			671 = { set_state_flag = tonkin_aluminium_developed }
			671 = {
				add_resource = {
					type = aluminium
					amount = 6
				}
			}
		}
	}
	develop_singapore_aluminium_deposits = { #336-> 951
		
		icon = aluminium

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 951
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 951
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 951
				}
				has_resources_rights = {
					state = 951
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_singapore_aluminium_deposits
			#	}
			#}
			951 = {
				NOT = {
					has_state_flag = singapore_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			951 = { set_state_flag = singapore_aluminium_developed }
			951 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}
	develop_sirte_oil_fields = { #662
		
		icon = oil
		
		allowed = {
			NOT = {
				tag = ITA
			}
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 662
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 662
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 662
				}
				has_resources_rights = {
					state = 662
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_sirte_oil_fields
			#	}
			#}
			662 = {
				NOT = {
					has_state_flag = sirte_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			662 = {
				set_state_flag = sirte_oil_developed
			}
			662 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	develop_benghazi_oil_fields = { #450
		
		icon = oil

		allowed = {
			NOT = {
				tag = ITA
			}
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 450
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 450
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 450
				}
				has_resources_rights = {
					state = 450
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_benghazi_oil_fields
			#	}
			#}
			has_tech = excavation3
			450 = {
				NOT = {
					has_state_flag = benghazi_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			450 = {
				set_state_flag = benghazi_oil_developed
			}
			450 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}
	develop_brunei_oil_fields = { #1014
		
		icon = oil

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 7
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1014
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 1014
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 1014
				}
				has_resources_rights = {
					state = 1014
				}							
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_brunei_oil_fields
			#	}
			#}
			1014 = {
				NOT = {
					has_state_flag = brunei_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 5
		}

		remove_effect = {
			1014 = {
				set_state_flag = brunei_oil_developed
			}
			1014 = {
				add_resource = {
					type = oil
					amount = 13
				}
			}
		}
	}
	develop_tasmania_aluminium_deposits = { #518
		
		icon = aluminium

		available = {
			has_tech = aluminum_production_1
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 5
		}

		highlight_states = {
			highlight_state_targets = {
				state = 518
			} 
		}
		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 518
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 518
				}
				has_resources_rights = {
					state = 518
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_tasmania_aluminium_deposits
			#	}
			#}			
			518 = {
				NOT = {
					has_state_flag = tasmania_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}

		remove_effect = {
			518 = {
				set_state_flag = tasmania_aluminium_developed
			}
			518 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}
	develop_west_africa_aluminium_deposits = { #556 mali changed to guinea 780
		
		icon = aluminium

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3
		}

		highlight_states = {
			highlight_state_targets = {
				state = 780
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 780
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 780
				}
				has_resources_rights = {
					state = 780
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_west_africa_aluminium_deposits
			#	}
			#}
			780 = {
				NOT = {
					has_state_flag = west_Africa_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 10
				date > 1948.01.01
			}				
		}

		remove_effect = {
			780 = {
				set_state_flag = west_Africa_aluminium_developed
			}
			780 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}
	develop_west_africa_aluminium_deposits_2 = { #780
		
		icon = aluminium

		available = {
			has_tech = aluminum_production_1
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		highlight_states = {
			highlight_state_targets = {
				state = 780
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 780
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 780
				}
				has_resources_rights = {
					state = 780
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_west_africa_aluminium_deposits_2
			#	}
			#}
			has_tech = excavation3
			780 = {
				has_state_flag = west_Africa_aluminium_developed
			}
			780 = {
				NOT = {
					has_state_flag = west_Africa_aluminium_developed_2
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			780 = {
				set_state_flag = west_Africa_aluminium_developed_2
			}
			780 = {
				add_resource = {
					type = aluminium
					amount = 4
				}
			}
		}
	}
	develop_madagascar_rubber_plantations = { #543
		
		icon = rubber

		available = {
			owns_state = 543
			controls_state = 543
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = {
			highlight_state_targets = {
				state = 543
			} 
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 3
		}

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

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				rubber < 5
			}			
			modifier = {
				add = 4
				rubber < 1
			}	
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}
	}
	develop_madagascar_rubber_plantations_2 = { #543
		
		icon = rubber

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

		highlight_states = {
			highlight_state_targets = {
				state = 543
			} 
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				rubber < 5
			}			
			modifier = {
				add = 4
				rubber < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}

		remove_effect = {
			543 = {
				set_state_flag = madagascar_rubber_developed_2
			}
			543 = {
				add_resource = {
					type = rubber
					amount = 8
				}
			}
		}
	}
	develop_nigeria_rubber_plantations = { #558
		
		icon = rubber

		available = {
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 558
			} 
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 360

		modifier = {
			civilian_factory_use = 2
		}
		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				rubber < 5
			}			
			modifier = {
				add = 4
				rubber < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				tag = ENG
				has_war = no
				558 = { CONTROLLER = { is_in_faction_with = ROOT } }
				factor = 0
			}			
		}

		remove_effect = {
			558 = {
				set_state_flag = nigeria_rubber_developed
			}
			558 = {
				add_resource = {
					type = rubber
					amount = 10
				}
			}
		}
	}
	develop_ems_oil_fields = { #56
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 56
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 56
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 56
				}
				has_resources_rights = {
					state = 56
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_ems_oil_fields
			#	}
			#}
			has_tech = excavation3
			56 = {
				NOT = {
					has_state_flag = ems_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}

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

	develop_matzen_oil_fields = { #4
		
		icon = oil

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 4
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 4
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 4
				}
				has_resources_rights = {
					state = 4
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_matzen_oil_fields
			#	}
			#}
			has_tech = excavation3
			4 = {
				NOT = {
					has_state_flag = ems_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			4 = {
				set_state_flag = ems_oil_developed
			}
			4 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}
	develop_friesland_oil_fields = { #36
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 36
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 36
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 36
				}
				has_resources_rights = {
					state = 36
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_friesland_oil_fields
			#	}
			#}
			has_tech = excavation3
			36 = {
				NOT = {
					has_state_flag = friesland_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = {
			36 = { set_state_flag = friesland_oil_developed }
			36 = {
				add_resource = {
					type = oil
					amount = 6
				}
				
			}
		}
	}
	expand_eregli_steel_works = { #347
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 347
			} 
		}

		available = {
			has_tech = construction3
			has_tech = steel_production_1
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 347
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 347
				}
				has_resources_rights = {
					state = 347
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_eregli_steel_works
			#	}
			#}
			347 = {
				NOT = {
					has_state_flag = eregli_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		remove_effect = {
			347 = { set_state_flag = eregli_steel_developed }
			347 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = steel_mill
					level = 3
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}
	}
	develop_newfoundland_steel = { #331
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 331
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 331
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 331
				}
				has_resources_rights = {
					state = 331
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_newfoundland_steel
			#	}
			#}
			331 = {
				NOT = {
					has_state_flag = newfoundland_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}
		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				tag = ENG
				has_war = no
				date < 1938.1.1
				factor = 0
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}

		remove_effect = {
			331 = { set_state_flag = newfoundland_steel_developed }
			331 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}
	}
	develop_quebec_steel = { #466
		
		icon = steel

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			466 = {
				infrastructure > 2
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 466
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 466
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 466
				}
				has_resources_rights = {
					state = 466
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_quebec_steel
			#	}
			#}
			466 = {
				NOT = {
					has_state_flag = quebec_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}
		remove_effect = {
			466 = {
				set_state_flag = quebec_steel_developed
			}
			466 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}	
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}
	}

	develop_cuba_steel = { #315
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 315
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 315
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 315
				}
				has_resources_rights = {
					state = 315
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_cuba_steel
			#	}
			#}
			315 = {
				NOT = {
					has_state_flag = cuba_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

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

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}	
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}
	}

	develop_arkansas_aluminium_deposits = { #372
		
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 372
			} 
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 372
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 372
				}
				has_resources_rights = {
					state = 372
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_arkansas_aluminium_deposits
			#	}
			#}
			372 = {
				NOT = {
					has_state_flag = { 
						flag = arkansas_aluminium_developed 
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = USA_arkansas_aluminium_duration

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			add_to_variable = { var = USA_arkansas_aluminium_duration value = 30 }
			372 = {
				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
					}
				}
			}
			372 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		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 }
			}
		}
	}
	develop_new_york_aluminium_deposits = { #358
		
		icon = aluminium
		highlight_states = {
			highlight_state_targets = {
				state = 358
			} 
		}
		available = {
			has_tech = construction2
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 358
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 358
				}
				has_resources_rights = {
					state = 358
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_new_york_aluminium_deposits
			#	}
			#}
			358 = {
				NOT = {
					has_state_flag = {
						flag = new_york_aluminium_developed
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = USA_new_york_aluminium_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_new_york_aluminium_duration value = 30 }
			358 = {
				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
					}
				}
			}
			358 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_tennessee_aluminium_deposits = { #368
		
		icon = aluminium

		available = {
			has_tech = construction2
			num_of_civilian_factories_available_for_projects > 11
		}

		highlight_states = {
			highlight_state_targets = {
				state = 368
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 368
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 368
				}
				has_resources_rights = {
					state = 368
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_tennessee_aluminium_deposits
			#	}
			#}
			368 = {
				NOT = {
					has_state_flag = { 
						flag = tennessee_aluminium_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_tennessee_aluminium_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_tennessee_aluminium_duration value = 30 }
			368 = {
				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
					}
				}
			}
			368 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_washington_aluminium_deposits = { #386
		
		icon = aluminium

		available = {
			has_tech = construction2
			num_of_civilian_factories_available_for_projects > 11
		}

		highlight_states = {
			highlight_state_targets = {
				state = 386
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 386
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 386
				}	
				has_resources_rights = {
					state = 386
				}	
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_washington_aluminium_deposits
			#	}
			#}
			386 = {
				NOT = {
					has_state_flag = { 
						flag = washington_aluminium_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_washington_aluminium_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_washington_aluminium_duration value = 30 }
			386 = {
				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
					}
				}
			}
			386 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_idaho_tungsten_deposits = { #387
		
		icon = tungsten

		highlight_states = {
			highlight_state_targets = {
				state = 387
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 387
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 387
				}
				has_resources_rights = {
					state = 387
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_idaho_tungsten_deposits
			#	}
			#}
			387 = {
				NOT = {
					has_state_flag = { 
						flag = idaho_tungsten_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_idaho_tungsten_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_idaho_tungsten_duration value = 30 }
			387 = {
				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
					}
				}
			}
			387 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

		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 }
			}
		}
	}
	develop_california_tungsten_deposits = { #378
		
		icon = tungsten

		highlight_states = {
			highlight_state_targets = {
				state = 378
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 378
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 378
				}
				has_resources_rights = {
					state = 378
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_california_tungsten_deposits
			#	}
			#}
			378 = {
				NOT = {
					has_state_flag = { 
						flag = california_tungsten_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_california_tungsten_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_california_tungsten_duration value = 30 }
			378 = {
				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
					}
				}
			}
			378 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

		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 }
			}
		}
	}
	develop_minnesota_steel_deposits = { #391
		
		icon = steel

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 11
		}

		highlight_states = {
			highlight_state_targets = {
				state = 391
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 391
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 391
				}
				has_resources_rights = {
					state = 391
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_minnesota_steel_deposits
			#	}
			#}
			391 = {
				NOT = {
					has_state_flag = { 
						flag = minnesota_steel_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_minnesota_steel_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_minnesota_steel_duration value = 30 }
			391 = {
				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
					}
				}
			}
			391 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_pennsylvania_steel_deposits = { #360
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 360
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 360
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 360
				}
				has_resources_rights = {
					state = 360
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_pennsylvania_steel_deposits
			#	}
			#}
			360 = {
				NOT = {
					has_state_flag = { 
						flag = pennsylvania_steel_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_pennsylvania_steel_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_pennsylvania_steel_duration value = 30 }
			360 = {
				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
					}
				}
			}
			360 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}

	develop_ohio_steel_deposits = { #261
		
		icon = steel

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 11
		}

		highlight_states = {
			highlight_state_targets = {
				state = 261
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 261
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 261
				}
				has_resources_rights = {
					state = 261
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_ohio_steel_deposits
			#	}
			#}
			261 = {
				NOT = {
					has_state_flag = { 
						flag = ohio_steel_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_ohio_steel_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_ohio_steel_duration value = 30 }
			261 = {
				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
					}
				}
			}
			261 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_indiana_steel_deposits = { #396
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 396
			} 
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 11

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 396
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 396
				}
				has_resources_rights = {
					state = 396
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_indiana_steel_deposits
			#	}
			#}
			396 = {
				NOT = {
					has_state_flag = { 
						flag = indiana_steel_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_indiana_steel_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_indiana_steel_duration value = 30 }
			396 = {
				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
					}
				}
			}
			396 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}

	develop_montana_chromium_deposits = { #388
		
		icon = chromium

		highlight_states = {
			highlight_state_targets = {
				state = 388
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 388
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 388
				}
				has_resources_rights = {
					state = 388
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_montana_chromium_deposits
			#	}
			#}
			has_tech = excavation3
			388 = {
				NOT = {
					has_state_flag = { 
						flag = montana_chromium_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_montana_chromium_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				chromium < 5
			}			
			modifier = {
				add = 4
				chromium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_montana_chromium_duration value = 30 }
			388 = {
				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
					}
				}
			}
			388 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}

		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 }
			}
		}
	}

	develop_california_chromium_deposits = { #378
		
		icon = chromium
		highlight_states = {
			highlight_state_targets = {
				state = 378
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 378
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 378
				}
				has_resources_rights = {
					state = 378
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_california_chromium_deposits
			#	}
			#}
			has_tech = excavation3
			378 = {
				NOT = {
					has_state_flag = { 
						flag = california_chromium_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = USA_california_chromium_duration

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				chromium < 5
			}			
			modifier = {
				add = 4
				chromium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				has_political_power < 200
				add = -4
			}			
		}

		remove_effect = {
			add_to_variable = { var = USA_california_chromium_duration value = 30 }
			378 = {
				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
					}
				}
			}
			378 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}

		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 }
			}
		}
	}
	#develop_oregon_chromium_deposits = { #385
	#	
	#	icon = chromium
#
	#	allowed = {
#
	#	}
#
	#	highlight_states = {
	#		highlight_state_targets = {
	#			state = 385
	#		} 
	#	}
#
	#	available = {
	#		has_tech = excavation4
	#		num_of_civilian_factories_available_for_projects > 11
	#		owns_state = 385
	#		controls_state = 385
	#	}
#
	#	
    #    visible = {
	#		owns_state = 385
	#		controls_state = 385
	#		has_tech = excavation3
	#		385 = {
	#			NOT = {
	#				has_state_flag = { 
	#					flag = oregon_chromium_developed 
	#					value = 5
	#				}
	#			}
	#		}
	#	}
#
	#	cost = 25
	#	days_remove = USA_oregon_chromium_duration?30
#
	#	modifier = {
	#		civilian_factory_use = 12
	#	}
#
	#	ai_will_do = {
	#		factor = 1
	#		modifier = {
	#			has_political_power < 200
	#			factor = 0
	#		}
	#	}
#
	#	remove_effect = {
	#		custom_effect_tooltip = repeatable_decision_tt
	#		add_to_variable = { var = USA_oregon_chromium_duration value = 30 }
	#		385 = {
	#			if = {
	#				limit = {
	#					NOT = {
	#						has_state_flag = oregon_chromium_developed
	#					}
	#				}
	#				set_state_flag = {
	#					flag = oregon_chromium_developed
	#					value = 1
	#				}
	#			}
	#			else = {
	#				modify_state_flag = {
	#					flag = oregon_chromium_developed
	#					value = 1
	#				}
	#			}
	#		}
	#		385 = {
	#			add_resource = {
	#				type = chromium
	#				amount = 26
	#			}
	#		}
	#	}
#
	#	complete_effect = {
	#		if = {
	#			limit = {
	#				check_variable = { var = USA_oregon_chromium_duration value = 30 compare = less_than }
	#			}
	#			set_variable = { var = USA_oregon_chromium_duration value = 30 }
	#		}
	#	}
	#}
#
	develop_alaska_chromium_deposits = { #463
		
		icon = chromium

		highlight_states = {
			highlight_state_targets = {
				state = 463
			} 
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 11
			OR = {
				AND = {
					owns_state = 463
					controls_state = 463					
				}
				has_resources_rights = {
					state = 463
				}				
			}

		}
		
        visible = {
			OR = {
				AND = {
					owns_state = 463
					controls_state = 463					
				}
				has_resources_rights = {
					state = 463
				}				
			}
			has_tech = excavation3
			463 = {
				NOT = {
					has_state_flag = { 
						flag = alaska_chromium_developed 
						value = 1
					}
				}
			}
		}
		cost = 25
		days_remove = USA_alaska_chromium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

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

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = USA_oregon_chromium_duration value = 30 }
			463 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = alaska_chromium_developed
						}
					}
					set_state_flag = {
						flag = alaska_chromium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = alaska_chromium_developed
						value = 1
					}
				}
			}
			463 = {
				add_resource = {
					type = chromium
					#amount = 26
					amount = 10
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_alaska_chromium_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_alaska_chromium_duration value = 30 }
			}
		}
	}
	develop_south_sakhalin_oil_deposits = { #537 #removed, moved to north Sakhalin
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 537
			} 
		}

		allowed = {
			always = no
		}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 537
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 537
				}
				has_resources_rights = {
					state = 537
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_south_sakhalin_oil_deposits
			#	}
			#}
			537 = { NOT = { has_state_flag = sakhalin_oil_developed } }
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 3
		}

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


	develop_palau_aluminium_deposits = { #647 # sand is not aluminium
		icon = aluminium
		
		highlight_states = {
			highlight_state_targets = {
				state = 647
			} 
		}

		allowed = {
			always = no
		}

		available = {
			647 = {
				OR = {
					has_resistance = no
					AND = {
						compliance > 30
						resistance < 75
					}

				}
			}
			OR = {
				AND = {
					has_full_control_of_state = 647
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 647
				}
				has_resources_rights = {
					state = 647
				}			
			}
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 647
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 647
				}
				has_resources_rights = {
					state = 647
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_palau_aluminium_deposits
			#	}
			#}
			647 = { NOT = { has_state_flag = palau_aluminium_developed } }
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			647 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = palau_aluminium_developed				
			}
		}
	}
	develop_cornwall_tungsten_deposits_1 = { #123
		
		icon = tungsten

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 123
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 123
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 123
				}
				has_resources_rights = {
					state = 123
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_cornwall_tungsten_deposits_1
			#	}
			#}
			123 = {
				NOT = {
					has_state_flag = cornwall_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}
		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}				
			modifier = {
				tag = ENG
				has_war = no
				factor = 0
			}			
		}

		remove_effect = {
			123 = { set_state_flag = cornwall_tungsten_developed }
			123 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}
	}
	develop_cornwall_tungsten_deposits_2 = { #123
		
		icon = tungsten

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 4
		}

		highlight_states = {
			highlight_state_targets = {
				state = 123
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 123
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 123
				}
				has_resources_rights = {
					state = 123
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_cornwall_tungsten_deposits_2
			#	}
			#}
			123 = {
				NOT = {
					has_state_flag = cornwall_tungsten_developed_2
				}
				has_state_flag = cornwall_tungsten_developed
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}	
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			123 = { set_state_flag = cornwall_tungsten_developed_2 }
			123 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}
	}
	develop_leningrad_aluminium_deposits = { #195
		icon = aluminium
		
		highlight_states = {
			highlight_state_targets = {
				state = 195
			} 
		}

		allowed = {
			#Everyone
		}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation2

		}

		
        visible = {
			owns_state = 195
			controls_state = 195
			195 = { NOT = { has_state_flag = leningrad_aluminium_developed } }
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}		
		}
		remove_effect = {
			195 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = leningrad_aluminium_developed				
			}
		}
	}
	develop_kamensk_aluminium_deposits = { #653
		icon = aluminium
		
		highlight_states = {
			highlight_state_targets = {
				state = 653
			} 
		}

		allowed = {
			#Everyone
		}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 653
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 653
				}
				has_resources_rights = {
					state = 653
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kamensk_aluminium_deposits
			#	}
			#}
			653 = { NOT = { has_state_flag = kamensk_aluminium_developed } }
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}	
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			653 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = kamensk_aluminium_developed				
			}
		}
	}
	develop_stalingrad_aluminium_deposits = { #217
		icon = aluminium
		
		highlight_states = {
			highlight_state_targets = {
				state = 217
			} 
		}

		allowed = {
			#Everyone
		}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation4
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 217
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 217
				}
				has_resources_rights = {
					state = 217
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kamensk_aluminium_deposits
			#	}
			#}
			217 = { NOT = { has_state_flag = stalingrad_aluminium_developed } }
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}
		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 4
				aluminium < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}	
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}					
		}

		remove_effect = {
			217 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = stalingrad_aluminium_developed				
			}
		}
	}
	develop_caucasus_tungsten_deposits_1 = { #233
		
		icon = tungsten

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = {
			highlight_state_targets = {
				state = 233
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 233
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 233
				}
				has_resources_rights = {
					state = 233
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_caucasus_tungsten_deposits_1
			#	}
			#}
			233 = {
				NOT = {
					has_state_flag = caucasus_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			233 = { set_state_flag = caucasus_tungsten_developed }
			233 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}
	}
	develop_caucasus_tungsten_deposits_2 = { #233
		
		icon = tungsten

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 4
		}

		highlight_states = {
			highlight_state_targets = {
				state = 233
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 233
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 233
				}
				has_resources_rights = {
					state = 233
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_caucasus_tungsten_deposits_2
			#	}
			#}
			233 = {
				NOT = {
					has_state_flag = caucasus_tungsten_developed_2
				}
				has_state_flag = caucasus_tungsten_developed
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			233 = { set_state_flag = caucasus_tungsten_developed_2 }
			233 = {
				add_resource = {
					type = tungsten
					amount = 10
				}
			}
		}
	}
	develop_kyzyl_tungsten_deposits = { #404 State not found
		
		icon = tungsten

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 404
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 404
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 404
				}
				has_resources_rights = {
					state = 404
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kyzyl_tungsten_deposits
			#	}
			#}
			has_tech = excavation3
			404 = {
				NOT = {
					has_state_flag = kyzla_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}		
		}

		remove_effect = {
			404 = { set_state_flag = kyzla_tungsten_developed }
			404 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}
	}
	develop_chelyabinsk_steel_deposits = { #572 
		
		icon = steel

		available = {
			has_tech = construction4
			num_of_civilian_factories_available_for_projects > 4
			has_tech = construction3
		}

		highlight_states = {
			highlight_state_targets = {
				state = 572
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 572
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 572
				}
				has_resources_rights = {
					state = 572
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_chelyabinsk_steel_deposits
			#	}
			#}
			has_tech = construction3
			572 = {
				NOT = {
					has_state_flag = { 
						flag = chelyabinsk_steel_developed 
						value = 3
					}
				}
			}
		}

		

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}					
		}

		remove_effect = {
			572 = { 
				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
					}
				}
			}
			572 = {
				add_resource = {
					type = steel
					amount = 20
				}
			}
		}
	}
	develop_zlatoust_steel_deposits_1 = { #573
		
		icon = steel

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 573
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 573
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 573
				}
				has_resources_rights = {
					state = 573
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_zlatoust_steel_deposits_1
			#	}
			#}
			573 = {
				NOT = {
					has_state_flag = zlatoust_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			573 = { set_state_flag = zlatoust_steel_developed }
			573 = {
				add_resource = {
					type = steel
					amount = 10
				}
			}
		}
	}
	develop_zlatoust_steel_deposits_2 = { #573
		
		icon = steel

		available = {
			has_tech = construction4
			num_of_civilian_factories_available_for_projects > 4
		}

		highlight_states = {
			highlight_state_targets = {
				state = 573
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 573
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 573
				}
				has_resources_rights = {
					state = 573
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_zlatoust_steel_deposits_2
			#	}
			#}
			573 = {
				NOT = {
					has_state_flag = zlatoust_steel_developed_2
				}
				has_state_flag = zlatoust_steel_developed
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}					
		}

		remove_effect = {
			573 = { set_state_flag = zlatoust_steel_developed_2 }
			573 = {
				add_resource = {
					type = steel
					amount = 20
				}
			}
		}
	}
	develop_kursk_steel_deposits = { #220
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 220
			} 
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 8
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 220
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 220
				}
				has_resources_rights = {
					state = 220
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kursk_steel_deposits
			#	}
			#}
			220 = {
				NOT = {
					has_state_flag = { 
						flag = kursk_steel_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = SOV_kursk_steel_duration

		modifier = {
			civilian_factory_use = 9
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			add_to_variable = { var = SOV_kursk_steel_duration value = 30 }
			220 = {
				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
					}
				}
			}
			220 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_kursk_steel_deposits_2 = { #220
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 220
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 220
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 220
				}
				has_resources_rights = {
					state = 220
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kursk_steel_deposits_2
			#	}
			#}
			220 = {
				NOT = {
					has_state_flag = { 
						flag = kursk_steel_developed_2 
						value = 5
					}
				}
				has_state_flag = { 
					flag = kursk_steel_developed
					value = 5
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = SOV_kursk_steel_duration_2

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			add_to_variable = { var = SOV_kursk_steel_duration_2 value = 30 }
			220 = {
				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
					}
				}
			}
			220 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_kursk_steel_deposits_3 = { #220
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 220
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 14
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 220
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 220
				}
				has_resources_rights = {
					state = 220
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kursk_steel_deposits_3
			#	}
			#}
			220 = {
				NOT = {
					has_state_flag = { 
						flag = kursk_steel_developed_3 
						value = 5
					}
				}
				has_state_flag = { 
					flag = kursk_steel_developed_2
					value = 5
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = SOV_kursk_steel_duration_3

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			add_to_variable = { var = SOV_kursk_steel_duration_3 value = 30 }
			220 = {
				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
					}
				}
			}
			220 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_Belgorod_steel_deposits = { #240
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 240
			} 
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 8
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 240
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 240
				}
				has_resources_rights = {
					state = 240
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_Belgorod_steel_deposits
			#	}
			#}
			240 = {
				NOT = {
					has_state_flag = { 
						flag = Belgorod_steel_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = SOV_Belgorod_steel_duration

		modifier = {
			civilian_factory_use = 9
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			add_to_variable = { var = SOV_Belgorod_steel_duration value = 30 }
			240 = {
				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
					}
				}
			}
			240 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_Belgorod_steel_deposits_2 = { #240
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 240
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 240
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 240
				}
				has_resources_rights = {
					state = 240
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_Belgorod_steel_deposits_2
			#	}
			#}
			240 = {
				NOT = {
					has_state_flag = { 
						flag = Belgorod_steel_developed_2 
						value = 5
					}
				}
				has_state_flag = { 
					flag = Belgorod_steel_developed
					value = 5
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = SOV_Belgorod_steel_duration_2

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			add_to_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 }
			240 = {
				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
					}
				}
			}
			240 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_Belgorod_steel_deposits_3 = { #240
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 240
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 14
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 240
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 240
				}
				has_resources_rights = {
					state = 240
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_Belgorod_steel_deposits_3
			#	}
			#}
			240 = {
				NOT = {
					has_state_flag = { 
						flag = Belgorod_steel_developed_3 
						value = 5
					}
				}
				has_state_flag = { 
					flag = Belgorod_steel_developed_2
					value = 5
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = SOV_Belgorod_steel_duration_3

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			add_to_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 }
			240 = {
				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
					}
				}
			}
			240 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		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 }
			}
		}
	}
	develop_uralsk_chromium_deposits_1 = { #407
		
		icon = chromium

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 407
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 407
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 407
				}
				has_resources_rights = {
					state = 407
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_uralsk_chromium_deposits_1
			#	}
			#}
			407 = {
				NOT = {
					has_state_flag = uralsk_chromium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				chromium < 5
			}			
			modifier = {
				add = 4
				chromium < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			407 = { set_state_flag = uralsk_chromium_developed }
			407 = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}
	}
	develop_uralsk_chromium_deposits_2 = { #407
		
		icon = chromium

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 4
		}
		highlight_states = {
			highlight_state_targets = {
				state = 407
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 407
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 407
				}
				has_resources_rights = {
					state = 407
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_uralsk_chromium_deposits_2
			#	}
			#}
			407 = {
				NOT = {
					has_state_flag = uralsk_chromium_developed_2
				}
				has_state_flag = uralsk_chromium_developed
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				chromium < 5
			}			
			modifier = {
				add = 4
				chromium < 1
			}
			modifier = {
				factor = 0
				original_tag = SOV
				SOV_save_pp_for_manpower_trouble = yes
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			407 = { set_state_flag = uralsk_chromium_developed_2 }
			407 = {
				add_resource = {
					type = chromium
					amount = 15
				}
			}
		}
	}	
	develop_liaotung_iron_ore_deposits = { #716
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 716
			} 
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation1
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 716
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 716
				}
				has_resources_rights = {
					state = 716
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_liaotung_iron_ore_deposits
			#	}
			#}
			716 = {
				NOT = {
					has_state_flag = liaotung_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

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

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}
	}

	develop_chosen_tungsten_deposits = { #525
		
		icon = tungsten

		highlight_states = {
			highlight_state_targets = {
				state = 525
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 525
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 525
				}
				has_resources_rights = {
					state = 525
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_chosen_tungsten_deposits
			#	}
			#}
			525 = {
				NOT = {
					has_state_flag = { 
						flag = chosin_tungsten_developed 
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = chosin_tungsten_duration

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}

		remove_effect = {
			add_to_variable = { var = chosin_tungsten_duration value = 30 }
			525 = {
				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
					}
				}
			}
			525 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}

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

	develop_abu_dhabi_oil_fields  = { #658
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 658
			} 
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 6
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 658
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 658
				}
				has_resources_rights = {
					state = 658
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_abu_dhabi_oil_fields
			#	}
			#}
			has_tech = excavation5
			658 = {
				NOT = {
					has_state_flag = abu_dhabi_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 9
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			658 = {
				set_state_flag = abu_dhabi_developed
			}
			658 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	develop_kuwait_oil_fields = { #656
		
		icon = oil

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 11
		}

		highlight_states = {
			highlight_state_targets = {
				state = 656
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 656
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 656
				}	
				has_resources_rights = {
					state = 656
				}		
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kuwait_oil_fields
			#	}
			#}
			has_tech = excavation2
			656 = {
				NOT = {
					has_state_flag = { 
						flag = kuwait_oil_developed 
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = kuwait_oil_duration
		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			add_to_variable = { var = kuwait_oil_duration value = 30 }
			656 = {
				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
					}
				}
			}
			656 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = kuwait_oil_duration value = 30 compare = less_than }
				}
				set_variable = { var = kuwait_oil_duration value = 60 }
			}
		}
	}
	develop_khuzestan_oil_fields   = { #413
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 413
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 8
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 413
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 413
				}
				has_resources_rights = {
					state = 413
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_khuzestan_oil_fields
			#	}
			#}
			has_tech = excavation2
			413 = {
				NOT = {
					has_state_flag = khuzestan_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 9
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			413 = {
				set_state_flag = khuzestan_developed
			}
			413 = {
				add_resource = {
					type = oil
					amount = 16
				}
			}
		}
	}
	develop_fars_oil_fields = { #412
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 412
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 412
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 412
				}
				has_resources_rights = {
					state = 412
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_fars_oil_fields
			#	}
			#}
			has_tech = excavation3
			412 = {
				NOT = {
					has_state_flag = fars_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			412 = {
				set_state_flag = fars_developed
			}
			412 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}
	}
	develop_baghdad_oil_fields  = { #it's now Basra 1045
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 1045
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 11
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 1045
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 1045
				}	
				has_resources_rights = {    # Used in country scope
					state = 1045 
					#resources = { oil }
				}						
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_baghdad_oil_fields
			#	}
			#}
			has_tech = excavation3
			1045 = {
				NOT = {
					has_state_flag = basra_developed
				}
			}
			#has_country_flag = IRQ_gui_basra_selected  --> does this do anything except hide the decision?
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			1045 = {
				set_state_flag = basra_developed
			}
			1045 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}
	}
	develop_mosul_oil_fields   = { #1048
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 1048
			} 
		}

		available = {
			num_of_civilian_factories_available_for_projects > 5
			has_tech = excavation3
		}

		
        visible = {
			owns_state = 1048
			controls_state = 1048
			
			1048 = {
				NOT = {
					has_state_flag = mosul_developed
				}
			}
			#has_country_flag = IRQ_gui_kirkuk_selected
		}

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			1048 = {
				set_state_flag = mosul_developed
			}
			1048 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}
	}
	develop_nejd_oil_fields = { #292 
		
		icon = oil

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 14
		}
		highlight_states = {
			highlight_state_targets = {
				state = 292
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 292
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 292
				}	
				has_resources_rights = {
					state = 292
				}		
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_nejd_oil_fields
			#	}
			#}
			has_tech = excavation4
			292 = {
				NOT = {
					has_state_flag = { 
						flag = nejd_oil_developed 
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = nejd_oil_duration
		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			add_to_variable = { var = nejd_oil_duration value = 30 }
			292 = {
				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
					}
				}
			}
			292 = {
				add_resource = {
					type = oil
					amount = 22
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = nejd_oil_duration value = 30 compare = less_than }
				}
				set_variable = { var = nejd_oil_duration value = 60 }
			}
		}
	}
	develop_eastern_desert_oil_fields   = { #457
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 457
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 457
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 457
				}
				has_resources_rights = {
					state = 457
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_eastern_desert_oil_fields
			#	}
			#}
			has_tech = excavation2
			457 = {
				NOT = {
					has_state_flag = eastern_desert_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			457 = {
				set_state_flag = eastern_desert_developed
			}
			457 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}
	develop_qatar_oil_fields   = { #765
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 765
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 5
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 765
				}
                any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 765
				}
				has_resources_rights = {
					state = 765
				}		
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_qatar_oil_fields
			#	}
			#}
			has_tech = excavation2
			765 = {
				NOT = {
					has_state_flag = qatar_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			765 = {
				set_state_flag = qatar_developed
			}
			765 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	###BBA
	develop_tripoli_oil_fields = { #448

		icon = oil

		allowed = {
			original_tag = ITA			
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			OR = { 
				has_full_control_of_state = 448 
				any_subject_country = { #FOR PUPPETS
					has_full_control_of_state = 448
				}
				has_resources_rights = {
					state = 448
				}
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 448
			}
		}

		
        visible = {
			has_completed_focus = ITA_oil_in_tripoli
			448 = {
				NOT = {
					has_state_flag = {
						flag = tripoli_oil_developed
						value = 3
					}
				}
			}
		}

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {  # Too low PP
				factor = 0.5
					has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			448 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = tripoli_oil_developed
						}
					}
					set_state_flag = {
						flag = tripoli_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = tripoli_oil_developed
						value = 1
					}
				}
			}	
			448 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}

	develop_tripoli_steel_deposits = { #448

		icon = steel

		allowed = {
			original_tag = ITA
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			OR = { 
				has_full_control_of_state = 448 
				any_subject_country = { #FOR PUPPETS
					has_full_control_of_state = 448
				}
				has_resources_rights = {
					state = 448
				}
			} 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 448
			}
		}

		
        visible = {
			has_completed_focus = ITA_steel_in_tripoli
			448 = {
				NOT = {
					has_state_flag = {
						flag = tripoli_steel_developed
						value = 3
					}
				}
			}
		}

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {  # Too low PP
				factor = 0.5
					has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}
		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			448 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = tripoli_steel_developed
						}
					}
					set_state_flag = {
						flag = tripoli_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = tripoli_steel_developed
						value = 1
					}
				}
			}	
			448 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}





	deeper_swedish_mines = { #76

		icon = steel

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 666
			}
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 5
			controls_state = 666
			owns_state = 666
		}

		
        visible = {
			owns_state = 666
			controls_state = 666
			666 = {
				NOT = {
					has_state_flag = has_expanded_mines
				}
			}

			has_completed_focus = SWE_deep_mining_complexes
		}

		fire_only_once = yes

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 1
		}

		remove_effect = {
			666 = { set_state_flag = has_expanded_mines }
			666 = {
				add_resource = {
					type = steel
					amount = 24
				}
			}

			666 = {
				add_resource = {
					type = tungsten
					amount = 12
				}
			}

			666 = {
				add_resource = {
					type = chromium
					amount = 5
				}
			}
		}
	}

	#AAT added Derna oil here, but we had that already in R56_prospecting, the rest is not duplicate

	expand_greenlands_mines = { #101

		icon = steel

		allowed = {
			original_tag = DEN
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			OR = {
				has_full_control_of_state = 101 
				any_subject_country = { #FOR PUPPETS
					has_full_control_of_state = 448
				}				
				has_resources_rights = {
					state = 463
				}
			}
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 101
			}
		}

		
        visible = {
			OR = {
				has_completed_focus = DEN_prospecting_new_sites
				has_completed_focus = GRL_prospecting_new_sites
			}
			
			101 = {
				NOT = {
					has_state_flag = {
						flag = expand_greenlands_mines_flag
						value = 3
					}
				}
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_greenlands_mines
			#	}
			#}			
		}

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 0.5
					has_political_power < 80
			}
			modifier = {
				factor = 3
				has_political_power > 200
				has_resources_in_country = {
					resource = chromium
					amount < 1
				}
				has_resources_in_country = {
					resource = tungsten
					amount < 1
				}
			}
			modifier = { 
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}
		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			101 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = expand_greenlands_mines_flag
						}
					}
					set_state_flag = {
						flag = expand_greenlands_mines_flag
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = expand_greenlands_mines_flag
						value = 1
					}
				}
			}	
			101 = {
				add_resource = {
					type = steel
					amount = 8
				}
				add_resource = {
					type = chromium
					amount = 4
				}
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}
	}

	#GD
	HUN_tap_the_nagylengyel_oil_field = { #155

		icon = oil

		allowed = {
			original_tag = HUN
			is_ai1 = yes
			has_dlc = "Gotterdammerung"
		}
		highlight_states = {
			highlight_state_targets = {
				state = 155
			}
		}

		
        visible = {
			original_tag = HUN
			owns_state = 155
			controls_state = 155
			has_completed_focus = wuw_HUN_expand_the_lignite_industry
			155 = {
				NOT = {
					has_state_flag = nagylengyel_oil_developed
				}
			}
		}

		available = {
			has_tech = excavation3
			has_completed_focus = wuw_HUN_tap_newfound_oil_deposits
			num_of_civilian_factories_available_for_projects > 14
			owns_state = 155
			controls_state = 155
		}

		fire_only_once = yes

		cost = 75
		days_remove = 60

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			base = 0 #Not historically excavated until later
		}

		remove_effect = {
			155 = { set_state_flag = nagylengyel_oil_developed }
			155 = {
				add_resource = {
					type = oil
					amount = 14
				}
			}
		}
	}

	HUN_explore_the_oil_fields_around_nagykanizsa = { #155

		icon = oil

		allowed = {
			original_tag = HUN
			has_dlc = "Gotterdammerung"
		}
		highlight_states = {
			highlight_state_targets = {
				state = 155
			}
		}

		
        visible = {
			original_tag = HUN
			owns_state = 155
			controls_state = 155
			has_completed_focus = wuw_HUN_expand_the_lignite_industry
			155 = {
				NOT = {
					has_state_flag = nagykanizsa_oil_developed
				}
			}
		}

		available = {
			has_tech = excavation3
			has_completed_focus = wuw_HUN_tap_newfound_oil_deposits
			num_of_civilian_factories_available_for_projects > 9
			owns_state = 155
			controls_state = 155
		}

		fire_only_once = yes

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			base = 20
		}

		remove_effect = {
			155 = { set_state_flag = nagykanizsa_oil_developed }
			155 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
}