### removed the now useless non wtt versions

economy_decisions = {
	SOV_replace_baku_with_volga_ural_basin = { #accelerate oil decisions if lost azerbaijan
		
		icon = oil

		allowed = {
			original_tag = SOV
		}
		highlight_states = {
			highlight_state_targets = {
				state = 249
			} 
		}
		available = {
			has_tech = excavation2
			owns_state = 249
			has_full_control_of_state = 249
			num_of_civilian_factories_available_for_projects > 5			
			NOT = {
				has_idea = generic_resource_extraction_effort
				has_full_control_of_state = 229
			}			
		}

		
        visible = {
			NOT = {
				has_full_control_of_state = 229
				has_tech = excavation_a
			}

		}

		fire_only_once = yes

		cost = 100
		days_remove = 210

		modifier = {
		}

		complete_effect = {
			add_timed_idea = {
				idea = generic_resource_extraction_effort
				days = 120
			}
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			set_country_flag = prospect_volga_ural_basin
		}	
	}

	develop_petsamo_nickel_deposits = { #722 - transferred from Norwegian-Finnish decision - Fantom
		
		icon = chromium
		
		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 2			
			NOT = {
				has_idea = generic_resource_extraction_effort
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 722
			} 
		}
		
		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 722
				}				
				AND = {
                    any_of_scopes = {
				    array = ROOT.subjects
						has_full_control_of_state = 722
					}
				}
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_petsamo_nickel_deposits
			#	}
			#}			
			772 = {
				NOT = {
					has_state_flag = petsamo_nickel_developed
				}
			}
		}
		
		fire_only_once = yes
		
		cost = 25
		days_remove = 60
		
		modifier = {
			civilian_factory_use = 3
		}
		
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.5
				has_war = yes
			}
			modifier = {
				factor = 10
				num_of_military_factories > 9
			}
			modifier = {
				factor = 5
				num_of_civilian_factories_available_for_projects > 9
			}
		}
		remove_effect = { 
			722 = { set_state_flag = petsamo_nickel_developed }
			722 = {
				add_resource = {
					type = chromium	### Represents nickel
					amount = 8
				}
				add_resource = {
					type = tungsten	### Represents nickel
					amount = 4
				}
			}
		}
	}	
}
######################################################################################################################
######################################################################################################################
######################################################################################################################
######################################################################################################################
######################################################################################################################
######################################################################################################################
######################################################################################################################
######################################################################################################################
prospect_for_resources = {
	expand_the_ljubija_iron_mine_wtt = { #961 Iron mine in Bosina
		
		icon = steel #change if copper is added

		allowed = {

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

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 961
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 961
				}
				has_resources_rights = {
					state = 961
				}				
			}
			# NOT = {
				# any_other_country = {
					# has_decision = expand_the_ljubija_iron_mine_wtt
				# }
			# }
			961 = {
				NOT = {
					has_state_flag = open_ljubija_mine_developed
				}
			}
		}

		fire_only_once = yes

		cost = 17
		days_remove = 80

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {
			
		}

		ai_will_do = {
			factor = 1
			modifier = { 
				factor = 100
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}											
		}
		remove_effect = { 
			961 = { set_state_flag = open_ljubija_mine_developed } 
			961 = {
				add_resource = {
					type = steel
					amount = 5
				}
			}
		}	
	}
	expand_the_erzberg_iron_mine_wtt = { #1054 Iron mine in Austria
		
		icon = steel #change if copper is added

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 1054
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3			
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 1054
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 1054
				}
				has_resources_rights = {
					state = 1054
				}					
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_the_erzberg_iron_mine_wtt
			#	}
			#}
			1054 = {
				NOT = {
					has_state_flag = open_erzberg_mine_developed
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 80

		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {
			
		}

		ai_will_do = {
			factor = 1
			modifier = { 
				factor = 100
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}											
		}
		remove_effect = { 
			1054 = { set_state_flag = open_erzberg_mine_developed } 
			1054 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}	
	}
	expand_the_mittersil_tungsten_mine_wtt = { #153 tungsten mine in Austria
		
		icon = tungsten #change if copper is added

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 153
			} 
		}
		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 3			
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 153
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 153
				}
				has_resources_rights = {
					state = 153
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_the_mittersil_tungsten_mine_wtt
			#	}
			#}
			has_tech = excavation5
			153 = {
				NOT = {
					has_state_flag = open_mittersil_mine_developed
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 80

		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {
			
		}

		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 = { 
			153 = { set_state_flag = open_mittersil_mine_developed } 
			153 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}	
	}		
	open_kajaran_mine_wtt = { #230 #copper and molybdene
		
		icon = steel #change if copper is added

		allowed = {

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

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 230
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 230
				}
				has_resources_rights = {
					state = 230
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = open_kajaran_mine_wtt
			#	}
			#}
			230 = {
				NOT = {
					has_state_flag = open_kajaran_mine_developed
				}
			}
		}

		fire_only_once = yes

		cost = 17
		days_remove = 80

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {
			
		}

		ai_will_do = {
			factor = 1
			modifier = { 
				factor = 100
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}											
		}
		remove_effect = { 
			230 = { set_state_flag = open_kajaran_mine_developed } 
			230 = {
				add_resource = {
					type = steel
					amount = 5
				}
			}
		}	
	}	
	extract_northern_armenia_deposits_wtt = { #230
		
		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 230
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2					
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 230
				has_resources_rights = {
					state = 230
				}
			}
			
			230 = {
				NOT = {
					has_state_flag = northern_armenia_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 17
		days_remove = 80

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				aluminium < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				aluminium < 1
				has_war = yes
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}						
		}
		remove_effect = { 
			230 = { set_state_flag = northern_armenia_aluminium_developed } 
			230 = {
				add_resource = {
					type = aluminium
					amount = 5
				}
			}
		}
	}
	##Bolivia
	develop_south_bolivian_oil_field_wtt = { #302
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 302
			} 
		}
		available = {
			has_tech = excavation2
			
			num_of_civilian_factories_available_for_projects > 1			
			
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 302
				has_resources_rights = {
					state = 302
				}
			}
			
			302 = {
				NOT = {
					has_state_flag = bolivian_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			302 = { set_state_flag = bolivian_oil_developed } 
			302 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	##Britain and Arab controlled lands
	develop_kelham_hills_oil_field_wtt = { #129, known since 20's, exploited during the war, oil was also extracted in Caunton
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 129
			} 
		}
		available = {
			has_tech = excavation2
			
			num_of_civilian_factories_available_for_projects > 0						
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 129
				has_resources_rights = {
					state = 129
				}
			}
			
			129 = {
				NOT = {
					has_state_flag = kelham_hills_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 5
		days_remove = 60

		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 15
		}
		remove_effect = { 
			129 = { set_state_flag = kelham_hills_oil_developed } 
			129 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	develop_sherwood_forest_oil_field_wtt = { #129, real secret oil reserve of WWII
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 129
			} 
		}
		available = {
			has_tech = excavation3
			
			num_of_civilian_factories_available_for_projects > 1
			129 = { has_state_flag = kelham_hills_oil_developed } 					
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 129
				has_resources_rights = {
					state = 129
				}
			}
			
			129 = {
				NOT = {
					has_state_flag = sherwood_forest_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 5
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 15
		}
		remove_effect = { 
			129 = { set_state_flag = sherwood_forest_oil_developed } 
			129 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}	
	exploit_bahrain_oil_fields_wtt = { #1007
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 1007
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 3			
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 1007
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 1007
				}
				has_resources_rights = {
					state = 1007
				}								
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_bahrain_oil_fields_wtt
			#	}
			#}
			1007 = {
				NOT = {
					has_state_flag = barhain_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			1007 = { set_state_flag = barhain_oil_developed } 
			1007 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}	
	}
	expand_qatar_oil_fields_wtt = { #765
		
		icon = oil

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

		
        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 = expand_qatar_oil_fields_wtt
			#	}
			#}
			765 = {
				has_state_flag = barhain_oil_developed
				NOT = {
					has_state_flag = qatar_oil_developed
					
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 80

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			765 = { set_state_flag = qatar_oil_developed } 
			765 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}	
	}
	##Aussie
	glen_davis_shale_oil_works_wtt = { #285, new south wales
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 285
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1		
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 285
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 285
				}
				has_resources_rights = {
					state = 285
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = glen_davis_shale_oil_works_wtt
			#	}
			#}
			285 = {
				NOT = {
					has_state_flag = glen_davis_shale_oil_works
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			285 = { set_state_flag = glen_davis_shale_oil_works } 
			285 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}
	restart_tasmanian_shale_extraction_wtt = { #518 tasmania
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 518
			} 
		}
		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 2
		}

		
        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 = restart_tasmanian_shale_extraction_wtt
			#	}
			#}
			518 = {
				NOT = {
					has_state_flag = tasmanian_shale_oil
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			518 = { set_state_flag = tasmanian_shale_oil } 
			518 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}	
	expand_lakes_entrance_oil_field_wtt = { #517 Victoria
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 517
			} 
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1			
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 517
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 517
				}
				has_resources_rights = {
					state = 517
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_lakes_entrance_oil_field_wtt
			#	}
			#}
			517 = {
				NOT = {
					has_state_flag = lakes_entrance_oil_field
				}
			}
		}

		fire_only_once = yes

		cost = 5
		days_remove = 80

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			517 = { set_state_flag = lakes_entrance_oil_field } 
			517 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	open_kings_island_scheelite_mine_wtt = { #518 tasmania
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 518
			} 
		}
		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 2
		}

		
        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 = open_kings_island_scheelite_mine_wtt
			#	}
			#}
			518 = {
				NOT = {
					has_state_flag = tasmanian_kings_island_sheelite_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				tungsten < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				tungsten < 1
				has_war = yes
			}		
		}
		remove_effect = { 
			518 = { set_state_flag = tasmanian_kings_island_sheelite_exploited } 
			518 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}	
	}
	open_cooks_creeks_mine_wtt = { #674 central (western australia)
		
		icon = tungsten

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 674
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 7
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 674
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 674
				}
				has_resources_rights = {
					state = 674
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = open_cooks_creeks_mine_wtt
			#	}
			#}
			has_tech = construction5
			674 = {
				NOT = {
					has_state_flag = cooks_creeks_mine_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 8
		}

		complete_effect = {

		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				tungsten < 5
				has_war = yes
			}			
			modifier = {
				add = 2
				tungsten < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			674 = { set_state_flag = cooks_creeks_mine_exploited } 
			674 = {
				add_resource = {
					type = tungsten
					amount = 16
				}
			}
		}	
	}
	develop_tasmania_aluminium_deposits_with_british_help_wtt = { #518
		
		icon = aluminium

		allowed = {
		}

		available = {
			has_tech = construction3
			ENG = {
				has_opinion = {
					target = ROOT
					value > 24
				}
				has_tech = excavation3			
			}		

			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 518
			} 
		}

		targets = { ENG }

		target_trigger = {
			FROM = {
				has_opinion = {
					target = ROOT
					value > 15
				}

				original_tag = ENG				
				has_civil_war = no
				has_war = no
				has_government = ROOT	
			}
			AST = {
				is_in_faction_with = FROM
				FROM = {
					is_faction_leader = yes
				}
			}			
		}

		
        visible = {
			owns_state = 518
			has_full_control_of_state = 518
			518 = {
				NOT = {
					has_state_flag = tasmania_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				aluminium < 5
			}			
			modifier = {
				add = 2
				aluminium < 1
			}		
		}

		remove_effect = {
			518 = {
				set_state_flag = tasmania_aluminium_developed
			}
			518 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}	
	exploit_pyrenean_oil_field_wtt = { #31
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 31
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 31
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 31
				}
				has_resources_rights = {
					state = 31
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_pyrenean_oil_field_wtt
			#	}
			#}
			31 = {
				NOT = {
					has_state_flag = pyrenean_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 80

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			31 = { set_state_flag = pyrenean_oil_developed } 
			31 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}

	develop_petitjean_oil_field_wtt = { #461 Petitjean/Sidi Kacem
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 461
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1			
			
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 461
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 461
				}
				has_resources_rights = {
					state = 461
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_petitjean_oil_field_wtt
			#	}
			#}
			461 = {
				NOT = {
					has_state_flag = petitjean_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 70

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			461 = { set_state_flag = petitjean_oil_developed } 
			461 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	develop_tramutola_oil_field_wtt = { #117 Tramutola oil field in the Val D'agri, discovered in 37
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 117
			} 
		}
		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 0			
			
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 117
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 117
				}
				has_resources_rights = {
					state = 117
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_tramutola_oil_field_wtt
			#	}
			#}
			117 = {
				NOT = {
					has_state_flag = tramutola_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 7
		days_remove = 70

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			117 = { set_state_flag = tramutola_oil_developed } 
			117 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}	
	
	develop_swabian_shale_oil_wtt = { #50 Swabian Alb
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 50
			} 
		}
		available = {
			has_tech = excavation3
			has_tech = construction4
			num_of_civilian_factories_available_for_projects > 0			
			
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 50
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 50
				}
				has_resources_rights = {
					state = 50
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_swabian_shale_oil_wtt
			#	}
			#}
			50 = {
				NOT = {
					has_state_flag = swabian_shale_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 70

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			50 = { set_state_flag = swabian_shale_oil_developed } 
			50 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}		
	develop_northern_siamese_shale_oil_wtt = { #50 Swabian Alb
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 289
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 0			
			
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 289
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 289
				}
				has_resources_rights = {
					state = 289
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_northern_siamese_shale_oil_wtt
			#	}
			#}
			289 = {
				NOT = {
					has_state_flag = northern_siam_shale_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 70

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			289 = { set_state_flag = northern_siam_shale_oil_developed } 
			289 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	exploit_kvarntorp_shale_oil_wtt = { #141 kvarntorp shale exploited in 40-41
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 141
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 0			
			
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 141
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 141
				}
				has_resources_rights = {
					state = 141
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_kvarntorp_shale_oil_wtt
			#	}
			#}
			141 = {
				NOT = {
					has_state_flag = kvarntorp_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 5
		days_remove = 70

		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			141 = { set_state_flag = kvarntorp_oil_developed } 
			141 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}

	develop_north_sakhalin_oil_deposits = { #655
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 655
			} 
		}

		allowed = {
			#Everyone
		}

		available = {
			OR = {
				has_full_control_of_state = 655
				AND = {
					original_tag = JAP
					has_resources_rights = {
						state = 655
					}
					OR = {
						has_completed_focus = JAP_non_aggression_pact_with_the_soviet_union
						has_completed_focus = JAP_people_owned_mines
					}
					
					NOT = {
						OR = {
							#has_global_flag = JAP_kalkin_gol
							has_global_flag = JAP_test_soviet
							has_wargoal_against = SOV
							has_war_with = SOV
							SOV = {
								has_wargoal_against = JAP
							}
						}
					}
					655 = {
						is_fully_controlled_by = SOV
					}
				}
				
			}

			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3			
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 655
				has_resources_rights = {
					state = 655
				}				
				AND = {
					original_tag = JAP
					OR = {
						has_completed_focus = JAP_non_aggression_pact_with_the_soviet_union
						has_completed_focus = JAP_people_owned_mines
					}
				}				
			}
			655 = { NOT = { has_state_flag = sakhalin_oil_developed } }
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
		}

		remove_effect = {
			655 = {
				add_resource = {
					type = oil
					amount = 4
				}
				set_state_flag = sakhalin_oil_developed
			}
		}
	}
	develop_fushum_oil_deposits_wtt = { #716
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 716
			} 
		}

		allowed = {
			#Everyone
		}

		available = {
			OR = {
				has_full_control_of_state = 716
				AND = {
					original_tag = JAP
					MAN = {
						is_puppet_of = JAP
					}
				}
				has_resources_rights = {
					state = 716
				}
			}
			NOT = {
				716 = {
					has_state_flag = drilling_in_progress
				}
			}

			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 716
				has_resources_rights = {
					state = 716
				}
				AND = {
					original_tag = JAP
					MAN = {
						has_full_control_of_state = 716
					}
				}				
			}
			716 = { NOT = { has_state_flag = fushum_oil_developed } }
		}



		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
		}

		complete_effect = {
			716 = {
				set_state_flag = drilling_in_progress
			}		
		}

		remove_effect = {
			716 = {
				add_resource = {
					type = oil
					amount = 4
				}
				clr_state_flag = drilling_in_progress
				set_state_flag = fushum_oil_developed
			}
		}
	}
	develop_fusin_oil_deposits_wtt = { #716
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 716
			} 
		}

		allowed = {
			#Everyone
		}

		available = {
			has_tech = excavation4
			716 = {
				has_state_flag = drilling_in_progress
			}
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			owns_state = 716
			controls_state = 716
			716 = { NOT = { has_state_flag = fusin_oil_developed } }
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 4
		}

		complete_effect = {
			716 = {
				set_state_flag = drilling_in_progress
			}		
		}

		remove_effect = {
			716 = {
				add_resource = {
					type = oil
					amount = 4
				}
				clr_state_flag = drilling_in_progress
				set_state_flag = fusin_oil_developed
			}
		}
	}	
	mine_galicia_tungsten_wtt = { #171, galicia
		
		icon = tungsten

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 171
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4			
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 171
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 171
				}
				has_resources_rights = {
					state = 171
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = mine_galicia_tungsten_wtt
			#	}
			#}
			171 = {
				NOT = {
					has_state_flag = develop_galician_tungsten
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		modifier = {
			civilian_factory_use = 5
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				tungsten < 5
				has_war = yes
			}			
			modifier = {
				add = 2
				tungsten < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			171 = { set_state_flag = develop_galician_tungsten } 
			171 = {
				add_resource = {
					type = tungsten
					amount = 30
				}
			}
		}	
	}
	develop_lappland_tungsten_mining_wtt = { #666 Lappland
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 666
			} 
		}
		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 1
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 666
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 666
				}
				has_resources_rights = {
					state = 666
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_lappland_tungsten_mining_wtt
			#	}
			#}
			666 = {
				NOT = {
					has_state_flag = lappland_mine_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60


		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				tungsten < 5
				has_war = yes
			}			
			modifier = {
				add = 2
				tungsten < 1
				has_war = yes
			}		
		}
		remove_effect = { 
			666 = { set_state_flag = lappland_mine_expanded } 
			666 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}	
	}
	exploit_north_central_chilean_tungsten_wtt = { #279
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 279
			} 
		}
		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 6
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 279
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 279
				}
				has_resources_rights = {
					state = 279
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_north_central_chilean_tungsten_wtt
			#	}
			#}
			279 = {
				NOT = {
					has_state_flag = north_central_chilean_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 7
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				add = 10
				date > 1943.01.01
			}			
		}
		remove_effect = { 
			279 = { set_state_flag = north_central_chilean_tungsten_exploited } 
			279 = {
				add_resource = {
					type = tungsten
					amount = 16
				}
			}
		}	
	}
	exploit_arequipa_tungsten_wtt = { #492
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 492
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 5
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 492
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 492
				}
				has_resources_rights = {
					state = 492
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_arequipa_tungsten_wtt
			#	}
			#}
			492 = {
				NOT = {
					has_state_flag = arequipa_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 10
			}				
		}
		remove_effect = { 
			492 = { set_state_flag = arequipa_tungsten_exploited } 
			492 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}	
	}
	exploit_siamese_tungsten_wtt = { #492
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 289
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 5
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 289
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 289
				}
				has_resources_rights = {
					state = 289
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_siamese_tungsten_wtt
			#	}
			#}
			289 = {
				NOT = {
					has_state_flag = siamese_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
				has_war = yes
			}			
			modifier = {
				add = 2
				tungsten < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			289 = { set_state_flag = siamese_tungsten_exploited } 
			289 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}	
	}	
	open_ilga_tin_tunsten_mine_wtt = { #457
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 457
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		
        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 = open_ilga_tin_tunsten_mine_wtt
			#	}
			#}
			457 = {
				NOT = {
					has_state_flag = ilga_tin_tungsten_mine_opened
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40
		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
				has_war = yes
			}			
			modifier = {
				add = 2
				tungsten < 1
				has_war = yes
			}		
		}
		remove_effect = { 
			457 = { set_state_flag = ilga_tin_tungsten_mine_opened } 
			457 = {
				add_resource = {
					type = tungsten
					amount = 2
				}
			}
		}	
	}
	develop_eastern_desert_tungsten_mining_wtt = { #457
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 457
			} 
		}
		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 5
		}

		
        visible = {
			has_tech = construction4
			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_tungsten_mining_wtt
			#	}
			#}
			457 = {
				NOT = {
					has_state_flag = eastern_desert_tungsten_mining_developed
				}
				has_state_flag = ilga_tin_tungsten_mine_opened
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 40
		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 2
				tungsten < 1
			}
			modifier = {
				add = 10
				num_of_military_factories > 15
			}					
		}
		remove_effect = { 
			457 = { set_state_flag = eastern_desert_tungsten_mining_developed } 
			457 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}	
	}
	develop_eastern_desert_chromium_mining_wtt = { #457
		
		icon = chromium

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 457
			} 
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 0

		}

		
        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_chromium_mining_wtt
			#	}
			#}
			457 = {
				NOT = {
					has_state_flag = eastern_desert_chromium_mining_developed
				}
			}
		}

		fire_only_once = yes

		cost = 5
		days_remove = 40


		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				chromium < 5
			}			
			modifier = {
				add = 4
				chromium < 1
			}
			modifier = {
				add = 10
				date > 1943.01.01
			}			
		}
		remove_effect = { 
			457 = { set_state_flag = eastern_desert_chromium_mining_developed } 
			457 = {
				add_resource = {
					type = chromium
					amount = 2
				}
			}
		}	
	}	
	open_puy_les_vignes_tunsten_mine_wtt = { #25
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 25
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 0			

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 25
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 25
				}
				has_resources_rights = {
					state = 25
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = open_puy_les_vignes_tunsten_mine_wtt
			#	}
			#}
			25 = {
				NOT = {
					has_state_flag = puy_les_vignes_tungsten_mine_opened
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40
		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				tungsten < 5
			}			
			modifier = {
				add = 4
				tungsten < 1
			}
			modifier = {
				add = 10
				date > 1943.01.01
			}					
		}
		remove_effect = { 
			25 = { set_state_flag = puy_les_vignes_tungsten_mine_opened } 
			25 = {
				add_resource = {
					type = tungsten
					amount = 2
				}
			}
		}	
	}
	reopen_leucamp_tunsten_mine_wtt = { #26
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 26
			} 
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 0			

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 26
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 26
				}
				has_resources_rights = {
					state = 26
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = reopen_leucamp_tunsten_mine_wtt
			#	}
			#}
			26 = {
				NOT = {
					has_state_flag = leucamp_tungsten_mine_reopened
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40
		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 1
				tungsten < 5
				has_war = yes
			}			
			modifier = {
				add = 2
				tungsten < 1
				has_war = yes
			}
			modifier = {
				add = 10
				date > 1943.01.01
			}		
		}
		remove_effect = { 
			26 = { set_state_flag = leucamp_tungsten_mine_reopened } 
			26 = {
				add_resource = {
					type = tungsten
					amount = 2
				}
			}
		}	
	}
	reopen_montbelleux_tunsten_mine_wtt = { #30
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 30
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 0			

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 30
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 30
				}
				has_resources_rights = {
					state = 30
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = reopen_montbelleux_tunsten_mine_wtt
			#	}
			#}
			30 = {
				NOT = {
					has_state_flag = montbelleux_tungsten_mine_reopened
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40
		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 10
				date > 1943.01.01
			}		
		}
		remove_effect = { 
			30 = { set_state_flag = montbelleux_tungsten_mine_reopened } 
			30 = {
				add_resource = {
					type = tungsten
					amount = 2
				}
			}
		}	
	}

	expand_namaqualand_tungsten_mine_wtt = { #681
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 681
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 0			

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 681
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 681
				}
				has_resources_rights = {
					state = 681
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_namaqualand_tungsten_mine_wtt
			#	}
			#}
			681 = {
				NOT = {
					has_state_flag = namaqualand_tungsten_mine_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40
		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 0.7		
		}
		remove_effect = { 
			681 = { set_state_flag = namaqualand_tungsten_mine_expanded } 
			681 = {
				add_resource = {
					type = tungsten
					amount = 2
				}
			}
		}	
	}		
	expand_south_rhodesia_tungsten_mine_wtt = { #681
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 545
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3			

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 545
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 545
				}
				has_resources_rights = {
					state = 545
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_south_rhodesia_tungsten_mine_wtt
			#	}
			#}			
			545 = {
				NOT = {
					has_state_flag = south_rhodesia_tungsten_mine_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 17
		days_remove = 70
		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1			
		}
		remove_effect = { 
			545 = { set_state_flag = south_rhodesia_tungsten_mine_expanded } 
			545 = {
				add_resource = {
					type = tungsten
					amount = 5
				}
			}
		}	
	}
	expand_nigeria_tungsten_mine_wtt = { #558
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 558
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3			

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 558
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 558
				}
				has_resources_rights = {
					state = 558
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_nigeria_tungsten_mine_wtt
			#	}
			#}
			558 = {
				NOT = {
					has_state_flag = nigeria_tungsten_mine_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 70
		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1		
		}
		remove_effect = { 
			558 = { set_state_flag = nigeria_tungsten_mine_expanded } 
			558 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}	
	}
	open_multimineral_azgour_mine_wtt = { #462
		
		icon = tungsten

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 462
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 0			

		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 462
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 462
				}
				has_resources_rights = {
					state = 462
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = open_multimineral_azgour_mine_wtt
			#	}
			#}
			462 = {
				NOT = {
					has_state_flag = azgour_mine_opened
				}
			}
		}

		fire_only_once = yes

		cost = 5
		days_remove = 70
		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 1		
		}
		remove_effect = { 
			462 = { set_state_flag = azgour_mine_opened } 
			462 = {
				add_resource = {
					type = tungsten
					amount = 1
				}
				add_resource = {
					type = steel
					amount = 1
				}				
			}
		}	
	}	
	#exploit_the_suez_gulf_oil_field_wtt = { #457
	exploit_driza_oil_field_wtt = { #44 Fier County Albania
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 44
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 44
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 44
				}
				has_resources_rights = {
					state = 44
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_driza_oil_field_wtt
			#	}
			#}
			44 = {
				NOT = {
					has_state_flag = driza_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 60


		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			44 = { set_state_flag = driza_oil_exploited } 
			44 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}
	expand_trinidad_oil_wtt = { #691 tri,idad
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 691
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 691
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 691
				}
				has_resources_rights = {
					state = 691
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_trinidad_oil_wtt
			#	}
			#}
			691 = {
				NOT = {
					has_state_flag = trinidad_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 5
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			691 = { set_state_flag = trinidad_oil_exploited } 
			691 = {
				add_resource = {
					type = oil
					amount = 9
				}
			}
		}	
	}	
	exploit_angolan_oil_fields_wtt = { #540 angola
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 540
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 5						
		}

		
        visible = {
			#has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 540
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 540
				}
				has_resources_rights = {
					state = 540
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_angolan_oil_fields_wtt
			#	}
			#}
			540 = {
				NOT = {
					has_state_flag = angola_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 6
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			540 = { set_state_flag = angola_oil_exploited } 
			540 = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}	
	}
	
	exploit_tuymazi_oil_field_wtt = { #651, 1942
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 651
			} 
		}
		available = {
			if = {
				limit = {
					original_tag = SOV
				}
				OR = {
					has_country_flag = prospect_volga_ural_basin
					has_tech = excavation3
				}
				else = {
					has_tech = excavation4
				}					
			}
			num_of_civilian_factories_available_for_projects > 6						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 651
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 651
				}
				has_resources_rights = {
					state = 651
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_tuymazi_oil_field_wtt
			#	}
			#}
			651 = {
				NOT = {
					has_state_flag = tuymazi_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 7
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			651 = { set_state_flag = tuymazi_oil_exploited } 
			651 = {
				add_resource = {
					type = oil
					amount = 9
				}
			}
		}	
	}	
	exploit_romashkino_oil_field_wtt = { #652
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 249
			} 
		}
		available = {
			if = {
				limit = {
					original_tag = SOV
				}
				OR = {
					has_country_flag = prospect_volga_ural_basin
					has_tech = excavation_a
				}
				else = {
					has_tech = excavation_a
				}					
			}
			num_of_civilian_factories_available_for_projects > 6						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 249
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 249
				}
				has_resources_rights = {
					state = 249
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_romashkino_oil_field_wtt
			#	}
			#}
			249 = {
				NOT = {
					has_state_flag = romashkino_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 7
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			249 = { set_state_flag = romashkino_oil_exploited } 
			249 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}	
	}
	exploit_volga_ural_basin_orenburg_wtt = { #652
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 652
			} 
		}
		available = {
			if = {
				limit = {
					original_tag = SOV
				}
				OR = {
					has_country_flag = prospect_volga_ural_basin
					has_tech = excavation_b
				}
				else = {
					has_tech = excavation_b
				}					
			}
			
			num_of_civilian_factories_available_for_projects > 3						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 652
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 652
				}
				has_resources_rights = {
					state = 652
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_volga_ural_basin_orenburg_wtt
			#	}
			#}
			652 = {
				NOT = {
					has_state_flag = orenburg_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			652 = { set_state_flag = orenburg_oil_exploited } 
			652 = {
				add_resource = {
					type = oil
					amount = 7
				}
			}
		}	
	}
	exploit_volga_ural_basin_magnitogorsk_wtt = { #652
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 582
			} 
		}
		available = {
			if = {
				limit = {
					original_tag = SOV
				}
				OR = {
					has_country_flag = prospect_volga_ural_basin
					has_tech = excavation_b
				}
				else = {
					has_tech = excavation_b
				}					
			}
			
			num_of_civilian_factories_available_for_projects > 6						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 582
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 582
				}
				has_resources_rights = {
					state = 582
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_volga_ural_basin_magnitogorsk_wtt
			#	}
			#}
			582 = {
				NOT = {
					has_state_flag = magnitogorsk_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 7
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			582 = { set_state_flag = magnitogorsk_oil_exploited } 
			582 = {
				add_resource = {
					type = oil
					amount = 9
				}
			}
		}	
	}			
	exploit_the_lena_angara_plateau_wtt = { #566
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 566
			} 
		}
		available = {
			has_tech = excavation_d
			num_of_civilian_factories_available_for_projects > 3						
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 566
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 566
				}
				has_resources_rights = {
					state = 566
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_the_lena_angara_plateau_wtt
			#	}
			#}
			566 = {
				NOT = {
					has_state_flag = lena_angara_plateau_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90


		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			566 = { set_state_flag = lena_angara_plateau_oil_exploited } 
			566 = {
				add_resource = {
					type = oil
					amount = 7
				}
			}
		}	
	}	
	exploit_turner_valley_oil_wtt = { #470 turner valley south of Calgary, alberta
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 470
			} 
		}
		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 0						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 470
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 470
				}
				has_resources_rights = {
					state = 470
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_turner_valley_oil_wtt
			#	}
			#}
			470 = {
				NOT = {
					has_state_flag = turner_valley_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 80


		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 50
		}
		remove_effect = { 
			470 = { set_state_flag = turner_valley_oil_exploited } 
			470 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}	
	}
	exploit_norman_wells_wtt = { #472
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 472
			} 
		}
		available = {

			AND = {
				has_tech = excavation2
				infrastructure > 1			
			}				
			
			num_of_civilian_factories_available_for_projects > 1					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 472
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 472
				}
				has_resources_rights = {
					state = 472
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_norman_wells_wtt
			#	}
			#}
			472 = {
				NOT = {
					has_state_flag = norman_wells_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 12
		days_remove = 80


		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			471 = { set_state_flag = norman_wells_exploited } 
			471 = {
				add_resource = {
					type = oil
					amount = 3
				}
			}
		}	
	}
	exploit_rolla_oil_wtt = { #470 turner valley south of Calgary, alberta
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 471
			} 
		}
		available = {
			OR = {
				AND = {
					has_tech = excavation_a
					infrastructure > 3				
				}
				AND = {
					has_tech = excavation3
					infrastructure > 2				
				}				
			}
			num_of_civilian_factories_available_for_projects > 2					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 471
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 471
				}
				has_resources_rights = {
					state = 471
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_rolla_oil_wtt
			#	}
			#}
			471 = {
				NOT = {
					has_state_flag = rolla_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80


		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			471 = { set_state_flag = rolla_oil_exploited } 
			471 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}	
	}				
	exploit_leduc_woodbend_oil_wtt = { #470 leduc well near edmonton, alberta
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 470
			} 
		}
		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 7						
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 470
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 470
				}
				has_resources_rights = {
					state = 470
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_leduc_woodbend_oil_wtt
			#	}
			#}
			470 = {
				NOT = {
					has_state_flag = leduc_woodbend_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 6
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			470 = { set_state_flag = leduc_woodbend_oil_exploited } 
			470 = {
				add_resource = {
					type = oil
					amount = 16
				}
			}
		}	
	}
	exploit_redwater_oil_wtt = { #470 redwater well, alberta
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 470
			} 
		}
		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 6						
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 470
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 470
				}
				has_resources_rights = {
					state = 470
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_redwater_oil_wtt
			#	}
			#}
			470 = {
				NOT = {
					has_state_flag = redwater_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 5
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			470 = { set_state_flag = redwater_oil_exploited } 
			470 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}	
	}
	exploit_pembina_oil_wtt = { #470 redwater well, alberta
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 470
			} 
		}
		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 6						
		}

		
        visible = {
			has_tech = construction5
			OR = {
				AND = {
					has_full_control_of_state = 470
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 470
				}
				has_resources_rights = {
					state = 470
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_pembina_oil_wtt
			#	}
			#}
			470 = {
				NOT = {
					has_state_flag = pembina_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 5
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			470 = { set_state_flag = pembina_oil_exploited } 
			470 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}	
	}
	exploit_virden_oil_wtt = { #467 Virden, manitoba
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 467
			} 
		}
		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 7						
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 467
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 467
				}
				has_resources_rights = {
					state = 467
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_virden_oil_wtt
			#	}
			#}
			467 = {
				NOT = {
					has_state_flag = leduc_woodbend_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 6
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			467 = { set_state_flag = virden_oil_exploited } 
			467 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}	
	exploit_budafapuszta_oil_wtt = { #155
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 155
			} 
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 0						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 155
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 155
				}
				has_resources_rights = {
					state = 155
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_budafapuszta_oil_wtt
			#	}
			#}
			155 = {
				NOT = {
					has_state_flag = budafapuszta_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 80


		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			155 = { set_state_flag = budafapuszta_oil_exploited } 
			155 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}
	exploit_nagykanizsa_oil_wtt = { #155
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 155
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 155
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 155
				}
				has_resources_rights = {
					state = 155
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_nagykanizsa_oil_wtt
			#	}
			#}
			155 = {
				has_state_flag = budafapuszta_oil_exploited
				NOT = {
					has_state_flag = nagykanizsa_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 5
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			155 = { set_state_flag = nagykanizsa_oil_exploited } 
			155 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}
	expand_exploitation_of_nagykanizsa_oil_wtt = { #155
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 155
			} 
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 155
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 155
				}
				has_resources_rights = {
					state = 155
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_exploitation_of_nagykanizsa_oil_wtt
			#	}
			#}
			155 = {
				has_state_flag = nagykanizsa_oil_exploited
				NOT = {
					has_state_flag = increase_nagykanizsa_oil
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80


		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			155 = { set_state_flag = increase_nagykanizsa_oil } 
			155 = {
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}	
	}	
	
	exploit_nagylengyel_oil_wtt = { #155 west hungary
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 155
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 3						
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 155
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 155
				}
				has_resources_rights = {
					state = 155
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_nagylengyel_oil_wtt
			#	}
			#}
			155 = {
				NOT = {
					has_state_flag = nagylengyel_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80


		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			155 = { set_state_flag = nagylengyel_oil_exploited } 
			155 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}	
	}
	exploit_derna_shale_mine_wtt = { #76 Romania and later Hungary, discovered in 1900 but no tranformation of bitumen into oil since 1915
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 76
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 76
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 76
				}
				has_resources_rights = {
					state = 76
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_derna_shale_mine_wtt
			#	}
			#}
			76 = {
				NOT = {
					has_state_flag = derna_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80


		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			76 = { set_state_flag = derna_oil_exploited } 
			76 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	exploit_ticleni_oil_field_wtt = { #81 oltenia discovered and exploited in 1940
		
		icon = oil

		allowed = {

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

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 81
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 81
				}
				has_resources_rights = {
					state = 81
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_ticleni_oil_field_wtt
			#	}
			#}
			81 = {
				NOT = {
					has_state_flag = ticleni_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 5
		days_remove = 80


		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			81 = { set_state_flag = ticleni_oil_exploited } 
			81 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}
	exploit_sacel_oil_field_wtt = { #76 small unexploited oil field discovered in 1900
		
		icon = oil

		allowed = {

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

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 76
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 76
				}
				has_resources_rights = {
					state = 76
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_sacel_oil_field_wtt
			#	}
			#}
			76 = {
				NOT = {
					has_state_flag = sacel_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 80


		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			76 = { set_state_flag = sacel_oil_exploited } 
			76 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}		
	exploit_yumen_oil_field_wtt = { #129, known since 20's, exploited during the war, oil was also extracted in Caunton
		
		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 756
			} 
		}
		available = {
			has_tech = excavation2
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 1						
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 756
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 756
				}
				has_resources_rights = {
					state = 756
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_yumen_oil_field_wtt
			#	}
			#}
			756 = {
				NOT = {
					has_state_flag = yumen_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 12
		days_remove = 80


		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			756 = { set_state_flag = yumen_oil_developed } 
			756 = {
				add_resource = {
					type = oil
					amount = 3
				}
			}
		}	
	}
	expand_yumen_oil_field_wtt = { #756 only oil producing region in China at the start of WW2, exploitation started in 1939, actual dev much later
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 756
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 4
			756 = { has_state_flag = yumen_oil_developed } 		
		}

		
        visible = {
			has_tech = construction5
			OR = {
				AND = {
					has_full_control_of_state = 756
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 756
				}
				has_resources_rights = {
					state = 756
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_yumen_oil_field_wtt
			#	}
			#}
			756 = {
				has_state_flag = yumen_oil_developed 
				NOT = {
					has_state_flag = yumen_oil_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 5
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			756 = { set_state_flag = yumen_oil_expanded } 
			756 = {
				add_resource = {
					type = oil
					amount = 7
				}
			}
		}	
	}
	develop_paraiba_tungsten_deposits_wtt = { #498
		
		icon = tungsten

		allowed = {

		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 4
		}

		highlight_states = {
			highlight_state_targets = {
				state = 498
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 498
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 498
				}
				has_resources_rights = {
					state = 498
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_paraiba_tungsten_deposits_wtt
			#	}
			#}
			498 = {
				NOT = {
					has_state_flag = paraiba_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10			
		}

		remove_effect = {
			498 = { set_state_flag = paraiba_tungsten_developed }
			498 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}
	}
	develop_rio_grande_do_norte_tungsten_deposits_wtt = { #498
		
		icon = tungsten

		allowed = {

		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 4
		}

		highlight_states = {
			highlight_state_targets = {
				state = 498
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 498
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 498
				}
				has_resources_rights = {
					state = 498
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_rio_grande_do_norte_tungsten_deposits_wtt
			#	}
			#}
			498 = {
				NOT = {
					has_state_flag = rio_grande_do_norte_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10		
		}

		remove_effect = {
			498 = { set_state_flag = rio_grande_do_norte_tungsten_developed }
			498 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}
	}	
	develop_kolymas_tungsten_mines_in_alaskinskaya_wtt = { #644
		
		icon = tungsten

		allowed = {

		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 4		
		}

		highlight_states = {
			highlight_state_targets = {
				state = 644
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 644
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 644
				}
				has_resources_rights = {
					state = 644
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kolymas_tungsten_mines_in_alaskinskaya_wtt
			#	}
			#}
			644 = {
				NOT = {
					has_state_flag = alaskinskaya_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10			
		}

		remove_effect = {
			644 = { set_state_flag = alaskinskaya_tungsten_developed }
			644 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}
	}

	develop_karamay_oil_field_wtt = { #618
		
		icon = oil

		allowed = {

		}

		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 4
		}

		highlight_states = {
			highlight_state_targets = {
				state = 618
			} 
		}

		
        visible = {
			has_tech = construction5	
			OR = {
				AND = {
					has_full_control_of_state = 618
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 618
				}
				has_resources_rights = {
					state = 618
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_karamay_oil_field_wtt
			#	}
			#}
			618 = {
				NOT = {
					has_state_flag = karamay_oil_field_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 140

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			618 = { set_state_flag = karamay_oil_field_developed }
			618 = {
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}
	develop_jilin_oil_field_wtt = { #715
		
		icon = oil

		allowed = {

		}

		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 4		
		}

		highlight_states = {
			highlight_state_targets = {
				state = 715
			} 
		}

		
        visible = {
			has_tech = construction5
			OR = {
				AND = {
					has_full_control_of_state = 715
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 715
				}	
				has_resources_rights = {
					state = 715
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_jilin_oil_field_wtt
			#	}
			#}
			715 = {
				NOT = {
					has_state_flag = jilin_oil_field_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			715 = { set_state_flag = jilin_oil_field_developed }
			715 = {
				add_resource = {
					type = oil
					amount = 15
				}
			}
		}
	}
	develop_dushanzi_oil_field_wtt = { #617
		
		icon = oil

		allowed = {

		}

		available = {
			has_tech = excavation2
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 4		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 617
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 617
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 617
				}
				has_resources_rights = {
					state = 617
				}					
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_dushanzi_oil_field_wtt
			#	}
			#}
			617 = {
				NOT = {
					has_state_flag = dushanzi_oil_field_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			617 = { set_state_flag = dushanzi_oil_field_developed }
			617 = {
				add_resource = {
					type = oil
					amount = 4
				}
 				add_building_construction = { type = infrastructure level = 1 instant_build = yes }				
			}
		}
	}
	develop_dushanzi_oil_field_with_soviet_help_wtt = { #617
		
		icon = oil

		allowed = {

		}

		available = {
			has_tech = construction1
			num_of_civilian_factories_available_for_projects > 0
			FROM = {
				NOT = {
					has_war_with = ROOT
				}
				exists = yes
			}
			SOV = {
				has_opinion = {
					target = ROOT
					value > 24
				}
				has_tech = excavation1			
			}					
		}

		highlight_states = {
			highlight_state_targets = {
				state = 617
			} 
		}

		
        visible = {
			owns_state = 617
			has_full_control_of_state = 617
			617 = {
				NOT = {
					has_state_flag = dushanzi_oil_field_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 90

		targets = { SOV }

		target_trigger = {
			FROM = {
				has_opinion = {
					target = ROOT
					value > 15
				}
				OR = {
					is_neighbor_of = ROOT
					has_government = ROOT
				}
				original_tag = SOV				
				has_civil_war = no	
			}
		}


		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			617 = { set_state_flag = dushanzi_oil_field_developed }
			617 = {
				add_resource = {
					type = oil
					amount = 4
				}
 				add_building_construction = { type = infrastructure level = 1 instant_build = yes }				
			}
		}
	}
	develop_oloibiri_oil_field_wtt = { #558
		
		icon = oil

		allowed = {

		}

		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 4		
		}

		highlight_states = {
			highlight_state_targets = {
				state = 900
			} 
		}

		
        visible = {
			has_tech = construction5
			OR = {
				AND = {
					has_full_control_of_state = 900
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 900
				}
				has_resources_rights = {
					state = 900
				}					
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_oloibiri_oil_field_wtt
			#	}
			#}
			900 = {
				NOT = {
					has_state_flag = oloibiri_oil_field_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			900 = { set_state_flag = oloibiri_oil_field_developed }
			900 = {
				add_resource = {
					type = oil
					amount = 15
				}
			}
		}
	}	
	develop_nauru_phosphate_deposits_wtt = { #725
		
		icon = generic_construction

		allowed = {
			
		}

		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 4
			725 = {
				infrastructure > 3
				naval_base > 3
			}			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 725
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 725
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 725
				}	
				has_resources_rights = {
					state = 725
				}			
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_nauru_phosphate_deposits_wtt
			#	}
			#}
			725 = {
				NOT = {
					has_state_flag = nauru_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			725 = { set_state_flag = nauru_tungsten_developed }
			725 = {
			#	add_resource = {
			#		type = tungsten #standin for phosphates
			#		amount = 4
			#	}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}			
			}
		}
	}

	exploit_central_albanian_chromium_wtt = { # state 44 - 1942
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 1
			has_tech = excavation4
		}
		highlight_states = {
			highlight_state_targets = {
				state = 44
			} 
		}

		
        visible = {
			owns_state = 44
			controls_state = 44	

			44 = {
				NOT = {
					has_state_flag = central_albanian_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		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
			}			
		}
		remove_effect = { 
			44 = { set_state_flag = central_albanian_chromium_exploited } 
			44 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}
	}
	exploit_dubova_chromium_deposits_wtt = { # state 82 chromium as far as I know known since the late 1920's but never exploited during the war
		
		icon = chromium

		allowed = {
		
		}

		available = {
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_dubova_chromium_deposits_wtt
			#	}
			#}
			num_of_civilian_factories_available_for_projects > 9
			has_tech = excavation4			
		}

		modifier = {
			civilian_factory_use = 10
		}		
		highlight_states = {
			highlight_state_targets = {
				state = 82
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 82
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 82
				}
				has_resources_rights = {
					state = 82
				}				
			}
			82 = {
				NOT = {
					has_state_flag = dubova_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 50
		days_remove = 90

		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
			}			
		}
		remove_effect = { 
			82 = { set_state_flag = dubova_chromium_exploited } 
			82 = {
				add_resource = {
					type = chromium
					amount = 12
				}
			}
		}
	}	
	exploit_cypriot_chromium_deposits_wtt = { # state 183 - 1937-38
		
		icon = chromium

		allowed = {
			
		}

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

		
        visible = {
			owns_state = 183
			controls_state = 183
			183 = {
				NOT = {
					has_state_flag = cyprus_chromium_exploited
				}
			}
		}

		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 = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}			
		}
		remove_effect = { 
			183 = { set_state_flag = cyprus_chromium_exploited } 
			183 = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}
	}	
	exploit_sierra_leonean_chromium_deposits_wtt = { # state 700
		
		icon = chromium

		allowed = {
			
		}

		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 0
		}
		highlight_states = {
			highlight_state_targets = {
				state = 700
			} 
		}

		
        visible = {
			owns_state = 700
			controls_state = 700
			
			700 = {
				NOT = {
					has_state_flag = sierra_leonean_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 12
		days_remove = 60

		modifier = {
			civilian_factory_use = 1
		}

		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
			}			
		}
		remove_effect = { 
			700 = { set_state_flag = sierra_leonean_chromium_exploited } 
			700 = {
				add_resource = {
					type = chromium
					amount = 3
				}
			}
		}
	}	
	develop_zambales_chromium_deposits_wtt = { # state 623 (north Luzon) in vanilla, would fit more closely manila state 327
		
		icon = chromium

		allowed = {
			
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2		
		}

		highlight_states = {
			highlight_state_targets = {
				state = 327
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 327
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 327
				}
				has_resources_rights = {
					state = 327
				}					
			}
			327 = {
				NOT = {
					has_state_flag = luzon_chromium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		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
			}			
		}
		remove_effect = { 
			327 = { set_state_flag = luzon_chromium_developed } 
			327 = {
				add_resource = {
					type = chromium
					amount = 12
				}
			}
		}
	}
	expand_luzon_chromium_deposits_wtt = { # state 623 (north Luzon) in vanilla, would fit more closely manila state 327
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 3
			has_tech = excavation_a
		}
		highlight_states = {
			highlight_state_targets = {
				state = 327
			} 
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 327
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 327
				}
				has_resources_rights = {
					state = 327
				}				
			}
			327 = {
				has_state_flag = luzon_chromium_developed
				NOT = {
					has_state_flag = luzon_chromium_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		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
			}			
		}
		remove_effect = { 
			327 = { set_state_flag = luzon_chromium_expanded } 
			327 = {
				add_resource = {
					type = chromium
					amount = 18
				}
			}
		}
	}
	develop_kuantan_aluminium_deposits_wtt = { #794
		
		icon = aluminium

		allowed = {
			
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kuantan_aluminium_deposits_wtt
			#	}
			#}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 794
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 794
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 794
				}
				has_resources_rights = {
					state = 794
				}				
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				aluminium < 5
				has_war = yes
			}			
			modifier = {
				add = 2
				aluminium < 1
				has_war = yes
			}		
		}

		remove_effect = {
			794 = { set_state_flag = kuantan_aluminium_developed }
			794 = {
				add_resource = {
					type = aluminium
					amount = 18
				}
			}
		}
	}
	develop_kamysh_burunsky_iron_deposits_wtt = { #137
		
		icon = steel

		allowed = {
			
		}

		available = {	
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_kamysh_burunsky_iron_deposits_wtt
			#	}
			#}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 137
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 137
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 137
				}
				has_resources_rights = {
					state = 137
				}				
			}
			137 = {
				NOT = {
					has_state_flag = kamysh_burunsky_iron_developed
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 0			
		}

		remove_effect = {
			137 = { set_state_flag = kamysh_burunsky_iron_developed }
			137 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
		}
	}														
	exploit_amazonian_rubber_wtt = { #137
		
		icon = rubber

		allowed = {
			
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			497 = {
				infrastructure > 1
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 497
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 497
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 497
				}
				has_resources_rights = {
					state = 497
				}				
			}
			497 = {
				NOT = {
					has_state_flag = amazonian_rubber_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				rubber < 10
			}					
		}

		remove_effect = {
			497 = { set_state_flag = amazonian_rubber_exploited }
			497 = {
				add_resource = {
					type = rubber
					amount = 12
				}
			}
		}
	}
	develop_saguenay_aluminium_industry_wtt = { #468
		
		icon = aluminium

		allowed = {			
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3
			NOT = {
				has_global_flag = saguenay_aluminium_in_progress
			}
			NOT = {
				has_global_flag = saguenay_aluminium_completed
			}			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 468
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 468
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 468
				}
				has_resources_rights = {
					state = 468
				}				
			}
			NOT = {
				has_global_flag = saguenay_aluminium_completed
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		complete_effect = {
			set_global_flag = saguenay_aluminium_in_progress	
		}
		modifier = {
			civilian_factory_use = 4
		}	

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				aluminium < 5
				has_war = yes
			}						
		}

		remove_effect = {
			clr_global_flag = saguenay_aluminium_in_progress
			468 = {
				add_resource = {
					type = aluminium
					amount = 5
				}
			}
			if = {
				limit = {
					NOT = { check_variable = { var = saguenay_aluminium_var value = 1 compare = greater_than_or_equals } }
				}
				set_variable = { var = saguenay_aluminium_var value = 0 }
				468 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = aluminum_mill
						level = 1
						instant_build = yes
					}						
				}					
			}
			if = {
				limit = {
					check_variable = { var = saguenay_aluminium_var value = 4 compare = equals }
				}
				set_global_flag = saguenay_aluminium_completed
				468 = {
					
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = aluminum_mill
						level = 1
						instant_build = yes
					}						
				}					
			}			
			add_to_variable = { var = saguenay_aluminium_var value = 1 }			
		}
	}
	
	expand_basque_steel_works_wtt = { #792
		
		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 792
			} 
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_basque_steel_works_wtt
			#	}
			#}
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}					
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}
			OR = {
				AND = {
					has_full_control_of_state = 792
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 792
				}
				has_resources_rights = {
					state = 792
				}				
			}
			792 = {
				NOT = {
					has_state_flag = basque_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		remove_effect = {
			792 = { set_state_flag = basque_steel_developed }
			792 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	expand_western_aragon_steel_works_wtt = { #166
		
		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 166
			} 
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_western_aragon_steel_works_wtt
			#	}
			#}
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}					
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}			
			OR = {
				AND = {
					has_full_control_of_state = 166
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 166
				}
				has_resources_rights = {
					state = 166
				}				
			}
			166 = {
				NOT = {
					has_state_flag = western_aragon_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		remove_effect = {
			166 = { set_state_flag = western_aragon_steel_developed }
			166 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	expand_granada_steel_works_wtt = { #173
		
		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 173
			} 
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 2
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}					
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}			
			OR = {
				AND = {
					has_full_control_of_state = 173
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 173
				}
				has_resources_rights = {
					state = 173
				}				
			}
			173 = {
				NOT = {
					has_state_flag = granada_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		remove_effect = {
			173 = { set_state_flag = granada_steel_developed }
			173 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 5
		}
	}

	develop_salamanca_tungsten_deposits_wtt = { #788
		
		icon = tungsten

		allowed = {
			
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_salamanca_tungsten_deposits_wtt
			#	}
			#}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 788
			} 
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}					
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}			
			OR = {
				AND = {
					has_full_control_of_state = 788
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 788
				}
				has_resources_rights = {
					state = 788
				}				
			}
			788 = {
				NOT = {
					has_state_flag = salamanca_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 0.1
			modifier = {
				tag = ENG
				has_war = no
				factor = 0
			}
		}

		remove_effect = {
			788 = { set_state_flag = salamanca_tungsten_developed }
			788 = {
				add_resource = {
					type = tungsten
					amount = 12
				}
			}
		}
	}

	develop_valladolid_tungsten_deposits_wtt = { #791
		
		icon = tungsten

		allowed = {
			
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
		}

		highlight_states = {
			highlight_state_targets = {
				state = 791
			} 
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}					
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}			
			OR = {
				AND = {
					has_full_control_of_state = 791
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 791
				}
				has_resources_rights = {
					state = 791
				}				
			}
			791 = {
				NOT = {
					has_state_flag = valladolid_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 35
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 5
			modifier = {
				tag = ENG
				has_war = no
				factor = 2
			}
		}

		remove_effect = {
			791 = { set_state_flag = valladolid_tungsten_developed }
			791 = {
				add_resource = {
					type = tungsten
					amount = 14
				}
			}
		}
	}

	develop_galicia_tungsten_deposits_wtt = { #171
		
		icon = tungsten

		allowed = {
			
		}

		available = {
			171 = {
				OR = {
                    is_owned_and_controlled_by = ROOT
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			OR = {
				AND = {
					has_full_control_of_state = 171
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 171
				}
				has_resources_rights = {
					state = 171
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = develop_galicia_tungsten_deposits_wtt
			#	}
			#}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 171
			} 
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}					
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}			
			OR = {
				AND = {
					has_full_control_of_state = 171
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 171
				}
				has_resources_rights = {
					state = 171
				}				
			}
			171 = {
				NOT = {
					has_state_flag = galicia_tungsten_developed
				}
				has_state_flag = develop_galician_tungsten
			}			
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 0.1
			modifier = {
				tag = ENG
				has_war = no
				factor = 0
			}
		}

		remove_effect = {
			171 = { set_state_flag = galicia_tungsten_developed }
			171 = {
				add_resource = {
					type = tungsten
					amount = 12
				}
			}
		}
	}

	expand_extremadura_tungsten_mines_wtt = { #170
		
		icon = tungsten

		allowed = {
			
		}

		available = {
			170 = {
				OR = {
                    is_owned_and_controlled_by = ROOT
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			OR = {
				AND = {
					has_full_control_of_state = 170
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 170
				}
				has_resources_rights = {
					state = 170
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_extremadura_tungsten_mines_wtt
			#	}
			#}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 170
			} 
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}					
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}			
			OR = {
				AND = {
					has_full_control_of_state = 170
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 170
				}
				has_resources_rights = {
					state = 170
				}				
			}
			170 = {
				NOT = {
					has_state_flag = extremadura_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 35
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 5
			modifier = {
				tag = ENG
				has_war = no
				factor = 1
			}
		}

		remove_effect = {
			170 = { set_state_flag = extremadura_tungsten_developed }
			170 = {
				add_resource = {
					type = tungsten
					amount = 12
				}
			}
		}
	}
	
	expand_madrid_bauxite_mines_wtt = { #41
		
		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 41
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_madrid_bauxite_mines_wtt
			#	}
			#}
		}

		
        visible = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_country_flag = spr_r56_focus_tree
					}
				}
				NOT = {
					OR = {
						original_tag = SPA
						original_tag = SPR
						original_tag = SPB
						original_tag = SPC
						original_tag = SPD						
					}
				}				
			}			
			OR = {
				AND = {
					has_full_control_of_state = 41
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 41
				}
				has_resources_rights = {
					state = 41
				}				
			}
			41 = {
				NOT = {
					has_state_flag = madrid_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			41 = { set_state_flag = madrid_aluminium_developed } 
			41 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}
	
	exploit_togolese_chromium_wtt = { #777 found in a 1937 US report on stuff that would begin soon Mont Djeti and Mont Ahito
		
		icon = chromium

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 777
			} 
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 4
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_togolese_chromium_wtt
			#	}
			#}
		}

		
        visible = {			
			OR = {
				AND = {
					has_full_control_of_state = 777
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 777
				}
				has_resources_rights = {
					state = 777
				}				
			}
			777 = {
				NOT = {
					has_state_flag = togolese_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		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
			}			
		}
		remove_effect = { 
			777 = { set_state_flag = togolese_chromium_exploited } 
			777 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}
	}	

	exploit_bomi_hills_iron_ore_wtt = { #298
		
		icon = steel

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 298
			} 
		}

		available = {
			OR = {
				has_tech = excavation5
				#any_other_country = {
				#	is_major = yes
				#	is_in_faction_with = ROOT
				#	has_tech = excavation5
				#}
			}
			
			num_of_civilian_factories_available_for_projects > 4
			OR = {
				AND = {
					owns_state = 298
					has_full_control_of_state = 298
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					owns_state = 298
					has_full_control_of_state = 298
				}
				has_resources_rights = {
					state = 298
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_bomi_hills_iron_ore_wtt
			#	}
			#}
		}

		
        visible = {			
			OR = {
				AND = {
					owns_state = 298
					has_full_control_of_state = 298
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					owns_state = 298
					has_full_control_of_state = 298
				}
				has_resources_rights = {
					state = 298
				}				
			}
			298 = {
				NOT = {
					has_state_flag = bomi_hills_iron_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 5			
		}
		remove_effect = { 
			298 = { set_state_flag = bomi_hills_iron_exploited } 
			298 = {
				add_resource = {
					type = steel
					amount = 10
				}
			}
		}
	}

	expand_marmpa_mining_wtt = { #700 Sierra leone
		
		icon = steel

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 700
			} 
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 4
		}

		
        visible = {			
			owns_state = 700
			controls_state = 700
			700 = {
				NOT = {
					has_state_flag = marampa_mining_expanding
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 2		
		}
		remove_effect = { 
			700 = { set_state_flag = marampa_mining_expanding } 
			700 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}	

	exploit_orenoque_iron_wtt = { #488 eastern bank of orenoque near the coast Venezuela
		
		icon = steel

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 488
			} 
		}

		available = {
			OR = {
				has_tech = excavation5
				#any_other_country = {
				#	is_major = yes
				#	is_in_faction_with = ROOT
				#	has_tech = excavation5
				#}
			}
			
			num_of_civilian_factories_available_for_projects > 5
			OR = {
				AND = {
					owns_state = 488
					has_full_control_of_state = 488
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					owns_state = 488
					has_full_control_of_state = 488
				}
				has_resources_rights = {
					state = 488
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_orenoque_iron_wtt
			#	}
			#}
		}

		
        visible = {			
			OR = {
				AND = {
					has_full_control_of_state = 488
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 488
				}
				has_resources_rights = {
					state = 488
				}				
			}
			488 = {
				NOT = {
					has_state_flag = orenoque_iron_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			factor = 5		
		}
		remove_effect = { 
			488 = { set_state_flag = orenoque_iron_exploited } 
			488 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}
	}
	exploit_cerro_san_isidro_iron_wtt = { #488 eastern bank of orenoque near the coast Venezuela
		
		icon = steel

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 307
			} 
		}
		available = {
			OR = {
				has_tech = excavation_a
			#	any_other_country = {
			#		is_major = yes
			#		is_in_faction_with = ROOT
			#		has_tech = excavation_a
			#	}
			}
			
			num_of_civilian_factories_available_for_projects > 4
			OR = {
				AND = {
					has_full_control_of_state = 307
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 307
				}
				has_resources_rights = {
					state = 307
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_cerro_san_isidro_iron_wtt
			#	}
			#}
		}

		
        visible = {			
			OR = {
				AND = {
					has_full_control_of_state = 307
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 307
				}
				has_resources_rights = {
					state = 307
				}				
			}
			307 = {
				NOT = {
					has_state_flag = cerro_san_isidro_iron_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 5		
		}
		remove_effect = { 
			307 = { set_state_flag = cerro_san_isidro_iron_exploited } 
			307 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}	
	stimulate_colorado_tungsten_production_wtt = { #488 eastern bank of orenoque near the coast Venezuela
		
		icon = tungsten

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 376
			} 
		}

		available = {
			has_tech = excavation2
			owns_state = 376
			controls_state = 376
			#	any_other_country = {
			#		is_major = yes
			#		is_in_faction_with = ROOT
			#		has_tech = excavation3
			#	}
			
			num_of_civilian_factories_available_for_projects > 11
			OR = {
				has_idea = war_economy
				has_idea = tot_economic_mobilisation
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_virginia_oil_field_wtt
			#	}
			#}			
		}

		
        visible = {			
			OR = {
				AND = {
					has_full_control_of_state = 376
				}				
				AND = {
                    any_of_scopes = {
				    array = ROOT.subjects
						has_full_control_of_state = 376
					}
				}
				has_resources_rights = {
					state = 376
				}
			}
			376 = {
				NOT = {
					has_state_flag = colorado_tungsten_stimulated
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			factor = 5			
		}
		remove_effect = { 
			376 = { set_state_flag = colorado_tungsten_stimulated } 
			376 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}
	}	
	exploit_virginia_oil_field_wtt = { 
		
		icon = oil

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 362
			} 
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3		
		}


		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 362
				}				
				AND = {
                    any_of_scopes = {
				    array = ROOT.subjects
						has_full_control_of_state = 362
					}
				}
				has_resources_rights = {
					state = 362
				}
			}


			362 = {
				NOT = {
					has_state_flag = virginia_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 10			
		}
		remove_effect = { 
			362 = { set_state_flag = virginia_oil_exploited } 
			362 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}	
	}
	exploit_dobrich_oil_field_wtt = { 
		
		icon = oil

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 77
			} 
		}
		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 3
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_dobrich_oil_field_wtt
			#	}
			#}			
		}


		
        visible = {
			has_tech = construction5
			OR = {
				AND = {
					has_full_control_of_state = 77
				}				
				AND = {
                    any_of_scopes = {
				    array = ROOT.subjects
						has_full_control_of_state = 77
					}
				}
				has_resources_rights = {
					state = 77
				}
			}


			77 = {
				NOT = {
					has_state_flag = dobrich_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 10			
		}
		remove_effect = { 
			77 = { set_state_flag = dobrich_oil_exploited } 
			77 = {
				add_resource = {
					type = oil
					amount = 3
				}
			}
		}	
	}	
	build_sibenik_aluminium_plant_wtt = { #103
		
		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 103
			} 
		}

		available = {
			has_tech = construction2
			num_of_civilian_factories_available_for_projects > 2
			#NOT = {
			#	any_other_country = {
			#		has_decision = build_sibenik_aluminium_plant_wtt
			#	}
			#}			

		}

		
        visible = {			
			OR = {
				AND = {
					has_full_control_of_state = 103
				}
				any_of_scopes = {
					array = ROOT.subjects
					has_full_control_of_state = 103
				}
				has_resources_rights = {
					state = 103
				}
			}
			103 = {
				NOT = {
					has_state_flag = sibenik_aluminium_plant_built
				}
			}

		}

		fire_only_once = yes

		cost = 5
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 5
				aluminium < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				aluminium < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			103 = { set_state_flag = sibenik_aluminium_plant_built } 
			103 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = aluminum_mill
					level = 1
					instant_build = yes
				}						
			}
		}
	}
	exploit_alaouite_mountains_chromium_wtt = { #677 
		
		icon = chromium

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 677
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4
		}

		
        visible = {			
			OR = {
				AND = {
					has_full_control_of_state = 677
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 677
				}
				has_resources_rights = {
					state = 677
				}				
			}
			677 = {
				NOT = {
					has_state_flag = alaouite_mountains_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				chromium < 5
			}			
			modifier = {
				add = 4
				chromium < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
				677 = {
					is_core_of = ROOT
				}
			}			
		}
		remove_effect = { 
			677 = { set_state_flag = alaouite_mountains_chromium_exploited } 
			677 = {
				add_resource = {
					type = chromium
					amount = 2
				}
			}
		}
	}
	exploit_damascene_iron_wtt = { #554
		
		icon = steel

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 554
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 4
		}

		
        visible = {			
			OR = {
				AND = {
					has_full_control_of_state = 554
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 554
				}
				has_resources_rights = {
					state = 554
				}				
			}
			554 = {
				NOT = {
					has_state_flag = damascene_iron_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 2			
		}
		remove_effect = { 
			554 = { set_state_flag = damascene_iron_exploited } 
			554 = {
				add_resource = {
					type = steel
					amount = 3
				}
			}
		}
	}
	exploit_rmelan_oil_field_wtt = { #680
		
		icon = oil

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 680
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 0			
			
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 680
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 680
				}
				has_resources_rights = {
					state = 680
				}				
			}
			680 = {
				NOT = {
					has_state_flag = rmelan_oil_exploited
				}
			}
			has_tech = construction5
		}

		fire_only_once = yes

		cost = 7
		days_remove = 70

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			680 = { set_state_flag = rmelan_oil_exploited } 
			680 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}	
	expand_kryvyi_rih_iron_mine_wtt = { #226 Kryvy� Rih in Ukrainian
		
		icon = steel

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 226
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 7
		}

		
        visible = {			
			OR = {
				AND = {
					owns_state = 226
					has_full_control_of_state = 226
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					owns_state = 226
					has_full_control_of_state = 226
				}
				has_resources_rights = {
					state = 226
				}				
			}
			226 = {
				NOT = {
					has_state_flag = kryvyi_rih_iron_mine_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 4
				OR = {
					original_tag = RUT
					original_tag = UKR
				}
			}			
			modifier = {
				add = 10
				date > 1942.01.01
				OR = {
					226 = {
						is_core_of = ROOT
					}	
					has_resources_rights = {
						state = 226
					}				
				}

			}			
		}
		remove_effect = { 
			226 = { set_state_flag = kryvyi_rih_iron_mine_expanded } 
			226 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}
	}
	sierra_grande_iron_mine_wtt = { #512 north of "tierra del fuego" as it's called currently, to be put into the state incorporating the northing coastal part of that big state if more states are added/
		
		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 512
			} 
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 14
			#NOT = {
			#	any_other_country = {
			#		has_decision = sierra_grande_iron_mine_wtt
			#	}
			#}
		}

		
        visible = {			
			OR = {
				AND = {
					owns_state = 512
					has_full_control_of_state = 512
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					owns_state = 512
					has_full_control_of_state = 512
				}
				has_resources_rights = {
					state = 512
				}				
			}
			512 = {
				NOT = {
					has_state_flag = sierra_grande_iron_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			factor = 10			
		}
		remove_effect = { 
			512 = { set_state_flag = sierra_grande_iron_exploited } 
			512 = {
				add_resource = {
					type = steel
					amount = 16
				}
			}
		}
	}
	las_alumbres_iron_mine_wtt = { #512 north of "tierra del fuego" as it's called currently, to be put into the state incorporating the northing coastal part of that big state if more states are added/
		
		icon = steel

		allowed = {
							
		}
		highlight_states = {
			highlight_state_targets = {
				state = 508
			} 
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 9
		}

		
        visible = {			
			OR = {
				AND = {
					owns_state = 508
					has_full_control_of_state = 508
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					owns_state = 508
					has_full_control_of_state = 508
				}
				has_resources_rights = {
					state = 508
				}				
			}
			508 = {
				NOT = {
					has_state_flag = las_alumbres_iron_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			factor = 5			
		}
		remove_effect = { 
			508 = { set_state_flag = las_alumbres_iron_exploited } 
			508 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}
	exploit_piracanjuba_chromium_wtt = { # state 505
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 7
			has_tech = excavation_a
		}
		highlight_states = {
			highlight_state_targets = {
				state = 505
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 505
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 505
				}
				has_resources_rights = {
					state = 505
				}				
			}
			505 = {
				NOT = {
					has_state_flag = piracanjuba_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 8
		}

		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
			}			
		}
		remove_effect = { 
			505 = { set_state_flag = piracanjuba_chromium_exploited } 
			505 = {
				add_resource = {
					type = chromium
					amount = 12
				}
			}
		}
	}
	exploit_oregonian_chromium_wtt = { # state
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 3
			has_tech = excavation4
		}
		highlight_states = {
			highlight_state_targets = {
				state = 385
			} 
		}

		
        visible = {
			owns_state = 385
			controls_state = 385
			385 = {
				NOT = {
					has_state_flag = oregon_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		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 = { 
			385 = { set_state_flag = oregon_chromium_exploited } 
			385 = {
				add_resource = {
					type = chromium
					amount = 3
				}
			}
		}
	}
	exploit_alaskan_tungsten_wtt = { # 
		
		icon = tungsten

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 6
			has_tech = excavation5			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 463
			} 
		}

		
        visible = {
			owns_state = 463
			controls_state = 463
			463 = {
				NOT = {
					has_state_flag = alaskan_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80
		
		modifier = {
			civilian_factory_use = 7
		}

		ai_will_do = {
			factor = 3		
		}
		remove_effect = { 
			463 = { set_state_flag = alaskan_tungsten_exploited } 
			463 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}
	}
	develop_hamme_mining_district_in_north_carolina_wtt = { #363
		
		icon = tungsten

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 363
			} 
		}

		available = {
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 9
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 363
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 363
				}
				has_resources_rights = {
					state = 363
				}				
			}
			363 = {
				NOT = {
					has_state_flag = { 
						flag = north_carolina_tungsten_developed 
						value = 3
					}
				}
			}
		}

		cost = 15
		days_remove = USA_north_carolina_tungsten_duration

		modifier = {
			civilian_factory_use = 10
		}

		remove_effect = {
			add_to_variable = { var = USA_north_carolina_tungsten_duration value = 30 }
			363 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = north_carolina_tungsten_developed
						}
					}
					set_state_flag = {
						flag = north_carolina_tungsten_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = north_carolina_tungsten_developed
						value = 1
					}
				}
			}
			363 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}
		ai_will_do = {
			factor = 2		
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = USA_north_carolina_tungsten_duration value = 30 compare = less_than }
				}
				set_variable = { var = USA_north_carolina_tungsten_duration value = 30 }
			}
		}
	}
	develop_hamme_mining_district_in_virginia_wtt = { # 
		
		icon = tungsten

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 6
			has_tech = excavation5		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 362
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 362
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 362
				}
				has_resources_rights = {
					state = 362
				}				
			}
			462 = {
				NOT = {
					has_state_flag = virginia_tungsten_developed
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80
		
		modifier = {
			civilian_factory_use = 7
		}

		ai_will_do = {
			factor = 0	
		}
		remove_effect = { 
			362 = { set_state_flag = virginia_tungsten_developed } 
			362 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}
	}
	exploit_mississippi_oil_field_wtt = { 
		
		icon = oil

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 370
			} 
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3		
		}


		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 370
				}				
				AND = {
                    any_of_scopes = {
				    array = ROOT.subjects
						has_full_control_of_state = 370
					}
				}
				has_resources_rights = {
					state = 370
				}
			}


			370 = {
				NOT = {
					has_state_flag = mississippi_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 10			
		}
		remove_effect = { 
			370 = { set_state_flag = mississippi_oil_exploited } 
			370 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}	
	}
	exploit_mississippi_oil_field_2_wtt = { 
		
		icon = oil

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


		
        visible = {
			OR = {
				AND = {

					has_full_control_of_state = 370
				}				
				AND = {
                    any_of_scopes = {
				    array = ROOT.subjects
	
						has_full_control_of_state = 370
					}
				}
				has_resources_rights = {
					state = 370
				}
			}


			370 = {
				NOT = {
					has_state_flag = mississippi_oil_2_exploited
				}
				has_state_flag = mississippi_oil_exploited
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10			
		}
		remove_effect = { 
			370 = { set_state_flag = mississippi_oil_2_exploited } 
			370 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}					
	expand_cuban_chromium_wtt = { # 
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 6
			has_tech = excavation4
		}
		highlight_states = {
			highlight_state_targets = {
				state = 315
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 315
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 315
				}
				has_resources_rights = {
					state = 315
				}				
			}
			315 = {
				NOT = {
					has_state_flag = { 
						flag = cuban_chromium_expanded 
						value = 3
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 7
		}

		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
			}			
		}
		remove_effect = { 
			add_to_variable = { var = cuban_chromium_duration value = 30 }
			315 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = cuban_chromium_expanded
						}
					}
					set_state_flag = {
						flag = cuban_chromium_expanded
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = cuban_chromium_expanded
						value = 1
					}
				}
			}		
			315 = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					check_variable = { var = cuban_chromium_duration value = 30 compare = less_than }
				}
				set_variable = { var = cuban_chromium_duration value = 30 }
			}
		}	
	}
	exploit_queensland_chromium_wtt = { # 
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 521
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 521
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 521
				}
				has_resources_rights = {
					state = 521
				}				
			}
			521 = {
				NOT = {
					has_state_flag = queensland_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		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
			}			
		}
		remove_effect = { 
			521 = { set_state_flag = queensland_chromium_expanded } 
			521 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}
	}
	exploit_northeastern_canadian_chromium_wtt = { # 
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 683
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 683
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 683
				}
				has_resources_rights = {
					state = 683
				}				
			}
			683 = {
				NOT = {
					has_state_flag = northeastern_canadian_chromium_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		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
			}			
		}
		remove_effect = { 
			683 = { set_state_flag = northeastern_canadian_chromium_expanded } 
			683 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}
		
	}
	exploit_faryumad_chromium_wtt = { # 
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 416
			} 
		}
		
        visible = {
			OR = {
				has_full_control_of_state = 416
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 416
				}
				has_resources_rights = {
					state = 416
				}				
			}
			416 = {
				NOT = {
					has_state_flag = faryumad_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		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
			}			
		}
		remove_effect = { 
			416 = { set_state_flag = faryumad_chromium_exploited } 
			416 = {
				add_resource = {
					type = chromium
					amount = 4
				}
			}
		}
	}
	exploit_faryab_chromium_wtt = { # I do'nt really have a date seems to be post war mine north east of Bandar Abbas
		
		icon = chromium

		allowed = {		
		}

		available = {
			num_of_civilian_factories_available_for_projects > 7
			has_tech = excavation_a		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 414
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 414
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 414
				}
				has_resources_rights = {
					state = 414
				}				
			}
			414 = {
				NOT = {
					has_state_flag = faryab_chromium_exploited
				}
			}
			has_tech = construction4
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 8
		}

		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
			}			
		}
		remove_effect = { 
			414 = { set_state_flag = faryab_chromium_exploited } 
			414 = {
				add_resource = {
					type = chromium
					amount = 7
				}
			}
		}
	}
	exploit_norrland_chromium_wtt = { # I don't have a location in Sweden,  but there is chromium in Norrland near the Norwegian border (in a contested region if Norway attacks)
		
		icon = chromium

		allowed = {
			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 968
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 968
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 968
				}
				has_resources_rights = {
					state = 968
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_norrland_chromium_wtt
			#	}
			#}
			968 = {
				NOT = {
					has_state_flag = norrland_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		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
			}			
		}
		remove_effect = { 
			968 = { set_state_flag = norrland_chromium_exploited } 
			968 = {
				add_resource = {
					type = chromium
					amount = 3
				}
			}
		}
	}	
	exploit_marcona_iron_wtt = { # 492 -1943
		
		icon = steel

		allowed = {		
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			OR = {
				has_tech = excavation5
				AND = {
					has_tech = excavation3
					has_completed_focus = PRU_national_mining_administration
				}
			}	
					
		}
		highlight_states = {
			highlight_state_targets = {
				state = 492
			} 
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 492
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 492
				}
				has_resources_rights = {
					state = 492
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_marcona_iron_wtt
			#	}
			#}			
			492 = {
				NOT = {
					has_state_flag = { 
						flag = marcona_iron_exploited 
						value = 2
					}
				}				
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 5			
		}
		complete_effect = {
			if = {
				limit = {
					check_variable = { var = marcona_iron_duration value = 30 compare = less_than }
				}
				set_variable = { var = marcona_iron_duration value = 30 }
			}
		}		
		remove_effect = { 
			add_to_variable = { var = marcona_iron_duration value = 30 }
			492 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = marcona_iron_exploited
						}
					}
					set_state_flag = {
						flag = marcona_iron_exploited
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = marcona_iron_exploited
						value = 1
					}
				}
			}				
			492 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}	
	}
	exploit_gabons_oil_field_wtt = {
		
		icon = oil

		allowed = {
				
		}
		highlight_states = {
			highlight_state_targets = {
				state = 539
			} 
		}
		available = {
			if = {
				limit = {
					OR = {
						original_tag = BOT
						original_tag = ZIM
						original_tag = MZB
						original_tag = LES
						original_tag = SWA	
						AND = {
							original_tag = SAF
							has_dlc = "Waking the Tiger"
						}			
						##
						original_tag = SEN
						original_tag = TOG
						original_tag = IVO
						original_tag = CMR
						original_tag = DAH
						original_tag = GNA
						##
						original_tag = UGA 
						original_tag = TZN 
						original_tag = KEN 
						original_tag = BRD
						original_tag = RWA
						##
						original_tag = GAM
						original_tag = MLI
						original_tag = VOL
						original_tag = GNB	
						original_tag = NGA	
						original_tag = GAB		
					}
				}
				OR = {
					has_tech = excavation_a
					AND = {
						has_tech = excavation3
						has_completed_focus = AFR_african_unification
					}
				}
			}
			else = {
				has_tech = excavation_c
			}


			num_of_civilian_factories_available_for_projects > 9						
		}

		
        visible = {
			#OR = {
			#	has_tech = construction4
			#	AND = {
			#		has_tech = excavation3
			#		has_completed_focus = AFR_african_unification
			#	}
			#}			
			OR = {
				has_full_control_of_state = 539
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 539
				}
				has_resources_rights = {
					state = 539
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_gabons_oil_field_wtt
			#	}
			#}			
			539 = {
				NOT = {
					has_state_flag = gabon_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			539 = { set_state_flag = gabon_oil_exploited } 
			539 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}
	exploit_sumy_oil_field_wtt = {
		
		icon = oil

		allowed = {
				
		}
		highlight_states = {
			highlight_state_targets = {
				state = 225
			} 
		}
		available = {
			has_tech = construction2 #test found oil in november 1936, truly started in 1940
			num_of_civilian_factories_available_for_projects > 0						
		}

		
        visible = {
		
			OR = {
				has_full_control_of_state = 225
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 225
				}
				has_resources_rights = {
					state = 225
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_sumy_oil_field_wtt
			#	}
			#}			
			225 = {
				NOT = {
					has_state_flag = sumy_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 0 #PP cost already spent in late 1935
		days_remove = 60

		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			225 = { set_state_flag = sumy_oil_exploited } 
			225 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}	
	expand_sumy_oil_field_wtt = {
		
		icon = oil

		allowed = {
				
		}
		highlight_states = {
			highlight_state_targets = {
				state = 225
			} 
		}
		available = {
			has_tech = excavation4 #test found oil in november 1936, truly started in 1940
			num_of_civilian_factories_available_for_projects > 3					
		}

		
        visible = {
		
			OR = {
				has_full_control_of_state = 225
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 225
				}
				has_resources_rights = {
					state = 225
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_sumy_oil_field_wtt
			#	}
			#}			
			225 = {
				has_state_flag = sumy_oil_exploited
				NOT = {
					has_state_flag = sumy_oil_exploited2
				}
			}
		}

		fire_only_once = yes

		cost = 25 #PP cost already spent in late 1935
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			225 = { set_state_flag = sumy_oil_exploited2 } 
			225 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
		}	
	}
	exploit_presov_oil_field_wtt = {
		
		icon = oil

		allowed = {
				
		}
		highlight_states = {
			highlight_state_targets = {
				state = 71
			} 
		}
		available = {
			has_tech = excavation4 #test found oil in november 1936, truly started in 1940
			num_of_civilian_factories_available_for_projects > 2					
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 71
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 71
				}
				has_resources_rights = {
					state = 71
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_presov_oil_field_wtt
			#	}
			#}			
			71 = {

				NOT = {
					has_state_flag = preslov_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25 #PP cost already spent in late 1935
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			71 = { set_state_flag = preslov_oil_exploited } 
			71 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	expand_palembang_oil_fields_wtt = { #Potential but I don't think that it was historical due to the Japanese occupation
		
		icon = oil

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 672
				state = 974
			} 
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}


		
        visible = {
			OR = {
				has_full_control_of_state = 672
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 672
				}
				has_resources_rights = {
					state = 672
				}
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_presov_oil_field_wtt
			#	}
			#}

			672 = {
				NOT = {
					has_state_flag = palembang_oil_expanded
				}
			}

			974 = {
				NOT = {
					has_state_flag = palembang_oil_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 10			
		}
		remove_effect = { 
			672 = { set_state_flag = palembang_oil_expanded } 
			672 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
			974 = { set_state_flag = palembang_oil_expanded } 
			974 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}
	exploit_gumdag_oil_field_wtt = {
		
		icon = oil

		allowed = {
				
		}
		highlight_states = {
			highlight_state_targets = {
				state = 584
			} 
		}
		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 5
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				has_full_control_of_state = 584
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 584
				}
				has_resources_rights = {
					state = 584
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_gumdag_oil_field_wtt
			#	}
			#}			
			584 = {
				NOT = {
					has_state_flag = gumdag_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 7
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			584 = { set_state_flag = gumdag_oil_exploited } 
			584 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}	
	exploit_cuban_oil_field_wtt = {
		
		icon = oil

		allowed = {
				
		}
		highlight_states = {
			highlight_state_targets = {
				state = 315
			} 
		}
		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 5
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				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 = exploit_cuban_oil_field_wtt
			#	}
			#}			
			315 = {
				NOT = {
					has_state_flag = cuban_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			315 = { set_state_flag = cuban_oil_exploited } 
			315 = {
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}	
	}
	exploit_cuban_oil_field2_wtt = {
		
		icon = oil

		allowed = {
				
		}
		highlight_states = {
			highlight_state_targets = {
				state = 315
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 5
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				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 = exploit_cuban_oil_field2_wtt
			#	}
			#}			
			315 = {
				has_state_flag = cuban_oil_exploited
				NOT = {
					has_state_flag = cuban_oil_exploited2
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 10
		}
		remove_effect = { 
			315 = { set_state_flag = cuban_oil_exploited2 } 
			315 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}	
	}
	expand_the_rudabanya_iron_mine_wtt = { #43 #Rudabánya
		
		icon = steel

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 43
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3					
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 43
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 43
				}
				has_resources_rights = {
					state = 43
				}				
			}
			43 = {
				NOT = {
					has_state_flag = rudabanya_iron_mine_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		modifier = {
			civilian_factory_use = 4
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0			
		}
		remove_effect = { 
			43 = { set_state_flag = rudabanya_iron_mine_expanded } 
			43 = {
				add_resource = {
					type = steel
					amount = 5
				}
			}
		}
	}
	exploit_bauxite_near_ortanto_wtt = { #156 #calabria 1940
		
		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 156
			} 
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 5								
		}

		
        visible = {
			OR = {
				has_full_control_of_state = 156
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 156
				}
				has_resources_rights = {
					state = 156
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_krasnoyarsk_bauxite_deposits_wtt
			#	}
			#}
			156 = {
				NOT = {
					has_state_flag = bauxite_near_ortanto_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		modifier = {
			civilian_factory_use = 6
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0			
		}
		remove_effect = { 
			156 = { set_state_flag = bauxite_near_ortanto_exploited } 
			156 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}
	exploit_bauxite_near_spinazzola_wtt = {
		
		icon = aluminium

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 117
			} 
		}
		available = {
			has_tech = excavation_a #hist 1950
			num_of_civilian_factories_available_for_projects > 2						
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 117
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 117
				}
				has_resources_rights = {
					state = 117
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_bauxite_near_spinazzola_wtt
			#	}
			#}
			117 = {
				NOT = {
					has_state_flag = bauxite_near_spinazzola_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			117 = { set_state_flag = bauxite_near_spinazzola_exploited } 
			117 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}	
	}	
	exploit_jamaican_aluminium_wtt = {
		
		icon = aluminium

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 689
			} 
		}
		available = {
			has_tech = excavation_b #hist 1951
			num_of_civilian_factories_available_for_projects > 1						
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 689
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 689
				}
				has_resources_rights = {
					state = 689
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_jamaican_aluminium_wtt
			#	}
			#}
			689 = {
				NOT = {
					has_state_flag = jamaican_aluminium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			689 = { set_state_flag = jamaican_aluminium_exploited } 
			689 = {
				add_resource = {
					type = aluminium
					amount = 25
				}
			}
		}	
	}
	exploit_jamaican_aluminium2_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 689
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 1					
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				has_full_control_of_state = 689
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 689
				}
				has_resources_rights = {
					state = 689
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_jamaican_aluminium2_wtt
			#	}
			#}			
			689 = {
				has_state_flag = jamaican_aluminium_exploited
				NOT = {
					has_state_flag = jamaican_aluminium_exploited2
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			689 = { set_state_flag = jamaican_aluminium_exploited2 } 
			689 = {
				add_resource = {
					type = aluminium
					amount = 35
				}
			}
		}	
	}
	exploit_jamaican_aluminium3_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 689
			} 
		}
		available = {

			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 1					
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				has_full_control_of_state = 689
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 689
				}
				has_resources_rights = {
					state = 689
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_jamaican_aluminium3_wtt
			#	}
			#}			
			689 = {
				has_state_flag = jamaican_aluminium_exploited2
				NOT = {
					has_state_flag = jamaican_aluminium_exploited3
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 20
		}
		remove_effect = { 
			689 = { set_state_flag = jamaican_aluminium_exploited3 } 
			689 = {
				add_resource = {
					type = aluminium
					amount = 40
				}
			}
		}	
	}
	expand_suriname_bauxite_mining_wtt = {
		
		icon = aluminium

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 309
			} 
		}
		available = {
			has_tech = excavation5 #hist 1951
			num_of_civilian_factories_available_for_projects > 4						
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 309
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 309
				}
				has_resources_rights = {
					state = 309
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_suriname_bauxite_mining_wtt
			#	}
			#}
			309 = {
				NOT = {
					has_state_flag = suriname_bauxite_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 3
		}
		remove_effect = { 
			309 = { set_state_flag = suriname_bauxite_expanded } 
			309 = {
				add_resource = {
					type = aluminium
					amount = 16
				}
			}
		}	
	}
	expand_suriname_bauxite_mining2_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 309
			} 
		}
		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 4					
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				has_full_control_of_state = 309
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 309
				}
				has_resources_rights = {
					state = 309
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_suriname_bauxite_mining2_wtt
			#	}
			#}			
			309 = {
				has_state_flag = suriname_bauxite_expanded
				NOT = {
					has_state_flag = suriname_bauxite_expanded2
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60



		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 3
		}
		remove_effect = { 
			309 = { set_state_flag = suriname_bauxite_expanded2 } 
			309 = {
				add_resource = {
					type = aluminium
					amount = 18
				}
			}
		}	
	}
	expand_suriname_bauxite_mining3_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 309
			} 
		}
		available = {
			has_tech = excavation_b
			num_of_civilian_factories_available_for_projects > 4						
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				has_full_control_of_state = 309
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 309
				}
				has_resources_rights = {
					state = 309
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_suriname_bauxite_mining3_wtt
			#	}
			#}			
			309 = {
				has_state_flag = suriname_bauxite_expanded2
				NOT = {
					has_state_flag = suriname_bauxite_expanded3
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			309 = { set_state_flag = suriname_bauxite_expanded3 } 
			309 = {
				add_resource = {
					type = aluminium
					amount = 25
				}
			}
		}	
	}
	expand_suriname_bauxite_mining4_wtt = {
		
		icon = aluminium

		allowed = {
			NOT = {
				OR = {
					has_dlc = "Waking the Tiger"
    				has_dlc = "Man the Guns"
				}
			}			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 309
			} 
		}
		available = {
			has_tech = excavation_c
			num_of_civilian_factories_available_for_projects > 4					
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				has_full_control_of_state = 309
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 309
				}
				has_resources_rights = {
					state = 309
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_suriname_bauxite_mining4_wtt
			#	}
			#}			
			309 = {
				has_state_flag = suriname_bauxite_expanded3
				NOT = {
					has_state_flag = suriname_bauxite_expanded4
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			309 = { set_state_flag = suriname_bauxite_expanded4 } 
			309 = {
				add_resource = {
					type = aluminium
					amount = 25
				}
			}
		}	
	}
	exploit_chalcidic_bauxite_wtt = {
		
		icon = aluminium

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 731
			} 
		}
		available = {
			has_tech = excavation_b #hist 1951
			num_of_civilian_factories_available_for_projects > 1						
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 731
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 731
				}
				has_resources_rights = {
					state = 731
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_chalcidic_bauxite_wtt
			#	}
			#}
			731 = {
				NOT = {
					has_state_flag = chalcidic_bauxite_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 3
		}
		remove_effect = { 
			731 = { set_state_flag = chalcidic_bauxite_exploited } 
			731 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}	
	}
	exploit_cycladic_bauxite_wtt = {
		
		icon = aluminium

		allowed = {
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 187
			} 
		}
		available = {
			has_tech = excavation_b #hist 1951
			num_of_civilian_factories_available_for_projects > 1						
								
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 187
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 187
				}
				has_resources_rights = {
					state = 187
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_cycladic_bauxite_wtt
			#	}
			#}
			187 = {
				NOT = {
					has_state_flag = cycladic_bauxite_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 2
		}
		remove_effect = { 
			187 = { set_state_flag = chalcidic_bauxite_exploited } 
			187 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}	
	}
	expand_parnassus_bauxite_mining_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 47
			} 
		}
		available = {
			has_tech = excavation_b #hist 1950's
			num_of_civilian_factories_available_for_projects > 4						
									
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 47
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 47
				}
				has_resources_rights = {
					state = 47
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = expand_parnassus_bauxite_mining_wtt
			#	}
			#}
			47 = {
				NOT = {
					has_state_flag = parnassus_bauxite_mining_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 3
		}
		remove_effect = { 
			47 = { set_state_flag = parnassus_bauxite_mining_expanded } 
			47 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}	
	}
	exploit_bauxite_in_sarawak_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 333
			} 
		}
		available = {
			has_tech = excavation_b #hist 1950's
			num_of_civilian_factories_available_for_projects > 4						
									
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 333
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 333
				}
				has_resources_rights = {
					state = 333
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_bauxite_in_sarawak_wtt
			#	}
			#}
			333 = {
				NOT = {
					has_state_flag = sarawak_bauxite_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 4
		}
		remove_effect = { 
			333 = { set_state_flag = sarawak_bauxite_exploited } 
			333 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}	
	}
	exploit_bauxite_in_western_hispaniola_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 318
			} 
		}
		available = {
			has_tech = excavation_b #hist 1950's
			num_of_civilian_factories_available_for_projects > 4						
									
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 318
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 318
				}
				has_resources_rights = {
					state = 318
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_bauxite_in_western_hispaniola_wtt
			#	}
			#}
			318 = {
				NOT = {
					has_state_flag = haitian_bauxite_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			318 = { set_state_flag = haitian_bauxite_exploited } 
			318 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}	
	}
	exploit_bauxite_on_eastern_hispaniola_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 319
			} 
		}
		available = {
			has_tech = excavation_b #hist 1950's
			num_of_civilian_factories_available_for_projects > 4						
									
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 319
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 319
				}
				has_resources_rights = {
					state = 319
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_bauxite_on_eastern_hispaniola_wtt
			#	}
			#}
			319 = {
				NOT = {
					has_state_flag = eastern_hispaniola_bauxite_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			319 = { set_state_flag = eastern_hispaniola_bauxite_exploited } 
			319 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}	
	}
	exploit_kemi_chromium_deposits_wtt = {
		
		icon = chromium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 148
			} 
		}
		available = {
			has_tech = excavation_c #hist 1950's
			num_of_civilian_factories_available_for_projects > 4						
									
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 148
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 148
				}
				has_resources_rights = {
					state = 148
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_kemi_chromium_deposits_wtt
			#	}
			#}
			148 = {
				NOT = {
					has_state_flag = kemi_chromium_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			148 = { set_state_flag = kemi_chromium_exploited } 
			148 = {
				add_resource = {
					type = chromium
					amount = 8
				}
			}
		}	
	}
	exploit_krasnoyarsk_bauxite_deposits_wtt = {
		
		icon = aluminium

		allowed = {
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 568
			} 
		}
		available = {
			has_tech = excavation_c #hist 1950's
			num_of_civilian_factories_available_for_projects > 5														
		}

		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 568
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 568
				}
				has_resources_rights = {
					state = 568
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_krasnoyarsk_bauxite_deposits_wtt
			#	}
			#}
			568 = {
				NOT = {
					has_state_flag = krasnoyarsk_bauxite_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60


		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 5
		}
		remove_effect = { 
			568 = { set_state_flag = krasnoyarsk_bauxite_exploited } 
			568 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}	
	}
	exploit_burundi_tungsten_wtt = { # 
		
		icon = tungsten

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}			
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 769
			} 
		}

		
        visible = {
			owns_state = 769
			controls_state = 769
			769 = {
				NOT = {
					has_state_flag = burundi_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80
		modifier = {
			civilian_factory_use = 4
		}
		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			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 = { 
			769 = { set_state_flag = burundi_tungsten_exploited } 
			769 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}
	}
	exploit_rwanda_tungsten_wtt = { # 
		
		icon = tungsten

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 768
			} 
		}

		
        visible = {
			owns_state = 768
			controls_state = 768
			768 = {
				NOT = {
					has_state_flag = rwanda_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 4
		}
		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			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 = { 
			768 = { set_state_flag = rwanda_tungsten_exploited } 
			768 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}
	}	
	exploit_southern_ugandan_tungsten_wtt = { # 
		
		icon = tungsten

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}		
		}

		available = {
			has_tech = excavation5
		}
		highlight_states = {
			highlight_state_targets = {
				state = 548
			} 
		}

		
        visible = {
			owns_state = 155
			controls_state = 155
			num_of_civilian_factories_available_for_projects > 4
			548 = {
				NOT = {
					has_state_flag = southern_ugandan_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 4
		}
		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			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 = { 
			548 = { set_state_flag = southern_ugandan_tungsten_exploited } 
			548 = {
				add_resource = {
					type = tungsten
					amount = 3
				}
			}
		}
	}	
	exploit_lower_british_columbian_tungsten_wtt = { # 
		
		icon = tungsten

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}		
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 473
			} 
		}

		
        visible = {
			owns_state = 463
			controls_state = 463
			473 = {
				NOT = {
					has_state_flag = lower_british_columbian_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 5
		}
		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			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 = { 
			473 = { set_state_flag = lower_british_columbian_tungsten_exploited } 
			473 = {
				add_resource = {
					type = tungsten
					amount = 5
				}
			}
		}
	}	
	exploit_upper_british_columbian_tungsten_wtt = { # 
		
		icon = tungsten

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}		
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation4		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 471
			} 
		}
		
		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 471
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 471
				}
				has_resources_rights = {
					state = 471
				}				
			}
			471 = {
				NOT = {
					has_state_flag = upper_british_columbian_tungsten_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 15
		days_remove = 80

		modifier = {
			civilian_factory_use = 4
		}
		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			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 = { 
			471 = { set_state_flag = upper_british_columbian_tungsten_exploited } 
			471 = {
				add_resource = {
					type = tungsten
					amount = 3
				}
			}
		}
	}
	
	exploit_oil_in_biafra_wtt = { # 
		
		icon = oil

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
    			has_dlc = "Man the Guns"
			}
						
		}
		modifier = {
			civilian_factory_use = 5
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation_a
			
			NOT = {
				has_idea = generic_resource_extraction_effort
			}			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 900
			} 
		}

		
        visible = {
			owns_state = 900
			controls_state = 900
			900 = {
				NOT = {
					has_state_flag = biafra_oil_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				oil < 5
			}			
			modifier = {
				add = 4
				oil < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}			
		}
		remove_effect = { 
			900 = { set_state_flag = biafra_oil_exploited } 
			900 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}
	}	
	exploit_oil_in_the_congo_at_pointe_indienne_wtt = { # 
		
		icon = oil

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
    			has_dlc = "Man the Guns"
			}
						
		}

		modifier = {
			civilian_factory_use = 5
		}
		available = {
			num_of_civilian_factories_available_for_projects > 4
				has_tech = excavation_a
			
			NOT = {
				has_idea = generic_resource_extraction_effort
			}			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 772
			} 
		}

		
        visible = {
			owns_state = 772
			controls_state = 772
			772 = {
				NOT = {
					has_state_flag = congo_oil_at_pointe_indienne_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				oil < 5
			}			
			modifier = {
				add = 4
				oil < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}							
		}
		remove_effect = { 
			772 = { set_state_flag = congo_oil_at_pointe_indienne_exploited } 
			772 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}
	}
	
	exploit_oil_at_the_mouth_of_the_bonyere_river_wtt = { # 
		
		icon = oil

		allowed = {
			OR = {
				has_dlc = "Waking the Tiger"
    			has_dlc = "Man the Guns"
			}
						
		}

		modifier = {
			civilian_factory_use = 5
		}
		available = {
			num_of_civilian_factories_available_for_projects > 4


			if = {
				limit = {
					OR = {
						original_tag = BOT
						original_tag = ZIM
						original_tag = MZB
						original_tag = LES
						original_tag = SWA	
						AND = {
							original_tag = SAF
							has_dlc = "Waking the Tiger"
						}			
						##
						original_tag = SEN
						original_tag = TOG
						original_tag = IVO
						original_tag = CMR
						original_tag = DAH
						original_tag = GNA
						##
						original_tag = UGA 
						original_tag = TZN 
						original_tag = KEN 
						original_tag = BRD
						original_tag = RWA
						##
						original_tag = GAM
						original_tag = MLI
						original_tag = VOL
						original_tag = GNB	
						original_tag = NGA	
						original_tag = GAB
						original_tag = CAR
						original_tag = RCG		
						original_tag = COG

						original_tag = GHA
					}
				}
				OR = {
					has_tech = excavation_a
					AND = {
						has_tech = excavation3
						has_completed_focus = AFR_african_unification
					}
				}
			}
			else = {
				has_tech = excavation_a
			}
			
			NOT = {
				has_idea = generic_resource_extraction_effort
			}			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 274
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 274
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 274
				}
				has_resources_rights = {
					state = 274
				}				
			}
			274 = {
				NOT = {
					has_state_flag = oil_at_the_mouth_of_the_bonyere_river_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				oil < 5
			}			
			modifier = {
				add = 4
				oil < 1
			}
			modifier = {
				add = 10
				date > 1942.01.01
			}
			modifier = {
				add = 10
				num_of_military_factories > 50
			}			
		}
		remove_effect = { 
			274 = { set_state_flag = oil_at_the_mouth_of_the_bonyere_river_exploited } 
			274 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}
	}
	
	exploit_the_lutopan_pit_wtt = { #628 Cebu island
		
		icon = steel

		allowed = {

			OR = {
				has_dlc = "Waking the Tiger"
    			has_dlc = "Man the Guns"
			}
			
		}
		highlight_states = {
			highlight_state_targets = {
				state = 628
			} 
		}
		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 6			
		}
		modifier = {
			civilian_factory_use = 7
		}
		
        visible = {
			has_tech = construction4
			OR = {
				AND = {
					has_full_control_of_state = 628
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 628
				}
				has_resources_rights = {
					state = 628
				}				
			}
			628 = {
				NOT = {
					has_state_flag = lutopan_pit_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 40


		modifier = {
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				steel < 5
			}			
			modifier = {
				add = 4
				steel < 1
			}
			modifier = {
				add = 10
				num_of_military_factories > 20
			}					
		}
		remove_effect = { 
			628 = { set_state_flag = lutopan_pit_exploited } 
			628 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}	
	}	
	
	expand_formosan_oil_extraction_wtt = { #524
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 524
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 524
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 524
				}
				has_resources_rights = {
					state = 524
				}				
			}
			524 = {
				NOT = {
					has_state_flag = formosan_oil_extraction_expanded
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40

		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 50
			modifier = {
				add = 1
				oil < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				oil < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			524 = { set_state_flag = formosan_oil_extraction_expanded } 
			524 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}
	}	

	prekmurje_oil_extraction_wtt = { #956
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 956
			} 
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 956
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 956
				}
				has_resources_rights = {
					state = 956
				}				
			}
			956 = {
				NOT = {
					has_state_flag = prekmurje_oil_extraction
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40

		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 50
			modifier = {
				add = 1
				oil < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				oil < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			956 = { set_state_flag = prekmurje_oil_extraction } 
			956 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}
	}

	guyana_oil_extraction_wtt = { #687
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 687
			} 
		}

		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 2					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 687
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 687
				}
				has_resources_rights = {
					state = 687
				}				
			}
			687 = {
				NOT = {
					has_state_flag = guyana_oil_extraction
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 40

		modifier = {
			civilian_factory_use = 1
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 2
			modifier = {
				add = 1
				oil < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				oil < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			687 = { set_state_flag = guyana_oil_extraction } 
			687 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}
	}
	negev_oil_extraction_wtt = { #1017
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1017
			} 
		}

		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 8					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 1017
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 1017
				}
				has_resources_rights = {
					state = 1017
				}				
			}
			1017 = {
				NOT = {
					has_state_flag = negev_oil_extraction
				}
			}
		}

		fire_only_once = yes

		cost = 30
		days_remove = 120

		modifier = {
			civilian_factory_use = 9
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 4
			modifier = {
				add = 1
				oil < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				oil < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			1017 = { set_state_flag = negev_oil_extraction } 
			1017 = {
				add_resource = {
					type = oil
					amount = 3
				}
			}
		}
	}


	emba_bassin_oil_extraction_wtt = { #406
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
			highlight_state_targets = {
				state = 406
			} 
		}

		available = {
			has_tech = excavation_a
			num_of_civilian_factories_available_for_projects > 8					
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 406
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 406
				}
				has_resources_rights = {
					state = 406
				}				
			}
			406 = {
				NOT = {
					has_state_flag = emba_bassin_oil_extraction
				}
			}
		}

		fire_only_once = yes

		cost = 30
		days_remove = 120

		modifier = {
			civilian_factory_use = 9
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 2
			modifier = {
				add = 1
				oil < 5
				has_war = yes
			}			
			modifier = {
				add = 4
				oil < 1
				has_war = yes
			}			
		}
		remove_effect = { 
			406 = { set_state_flag = emba_bassin_oil_extraction } 
			406 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	exploit_ulu_kem_oil_spring_wtt = { #329 Oil spring in Tuva, historically used to fuel a power plant
		
		icon = oil

		allowed = {

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

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 329
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 329
				}
				has_resources_rights = {
					state = 329
				}				
			}
			#NOT = {
			#	any_other_country = {
			#		has_decision = exploit_ulu_kem_oil_spring_wtt
			#	}
			#}
			329 = {
				NOT = {
					has_state_flag = ulu_kem_oil_spring_exploited
				}
			}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 80


		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {

		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				oil < 5
				has_war = yes
			}			
			modifier = {
				add = 10
				oil < 1
				has_war = yes
			}	
			modifier = {
				add = 1
				oil < 20
				has_war = yes
			}	
		}
		remove_effect = { 
			329 = { set_state_flag = ulu_kem_oil_spring_exploited } 
			329 = {
				add_resource = {
					type = oil
					amount = 1
				}
			}
		}	
	}
	mine_iron_along_the_temir_suk_river_wtt = { #329
		
		icon = steel

		allowed = {
			
		}

		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			#NOT = {
			#	any_other_country = {
			#		has_decision = mine_iron_along_the_temir_suk_river_wtt
			#	}
			#}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 329
			} 
		}

		
        visible = {
			OR = {
				AND = {
					has_full_control_of_state = 329
				}
			    any_of_scopes = {
				    array = ROOT.subjects
					has_full_control_of_state = 329
				}
				has_resources_rights = {
					state = 329
				}				
			}
			329 = {
				NOT = {
					has_state_flag = iron_along_the_temir_suk_river_mined
				}
			}
		}

		fire_only_once = yes

		cost = 20
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				steel < 15
				has_war = yes
			}			
			modifier = {
				add = 10
				steel < 10
				has_war = yes
			}	
			modifier = {
				add = 1
				steel < 40
				has_war = yes
			}	
		}

		remove_effect = {
			329 = { set_state_flag = iron_along_the_temir_suk_river_mined }
			329 = {
				add_resource = {
					type = steel
					amount = 3
				}
			}
		}
	}
}
