prospect_for_resources = {
	develop_moravia_oil_fields = { 

		icon = oil

		allowed = {
			always = yes
		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 75
			}
		}

		visible = {
			owns_state = 75
			controls_state = 75
			has_tech = excavation2
			75 = {
				NOT = {
					has_state_flag = {
						flag = moravia_oil_developed
						value = 3
					}
				}
			}
		}

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

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			75 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = moravia_oil_developed
						}
					}
					set_state_flag = {
						flag = moravia_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = moravia_oil_developed
						value = 1
					}
				}
			}
			75 = {
				add_resource = {
					type = oil
					amount = 3
				}
			}
		}
	}
	develop_tasmanian_tungsten = { 

		icon = tungsten

		allowed = {

		}

		available = {
			has_tech = excavation3
			owns_state = 518
			controls_state = 518
			num_of_civilian_factories_available_for_projects > 5
		}

		highlight_states = {
			highlight_state_targets = {
				state = 518
			}
		}

		visible = {
			owns_state = 518
			controls_state = 518
			has_tech = excavation2
			518 = {
				NOT = {
					has_state_flag = {
						flag = tasmanian_tungsten_developed
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = 35
		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = tungsten
					amount < 1
				}
			}
		}

		remove_effect = {
			518 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = tasmanian_tungsten_developed
						}
					}
					set_state_flag = {
						flag = tasmanian_tungsten_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = tasmanian_tungsten_developed
						value = 1
					}
				}
			}
			518 = {
				add_resource = {
					type = tungsten
					amount = 22
				}
			}
		}
	}
	develop_home_island_tungsten = { 

		icon = tungsten

		allowed = {

		}

		available = {
			has_tech = excavation3
			owns_state = 535
			controls_state = 535
			num_of_civilian_factories_available_for_projects > 5
		}

		highlight_states = {
			highlight_state_targets = {
				state = 535
			}
		}

		visible = {
			owns_state = 535
			controls_state = 535
			has_tech = excavation2
			535 = {
				NOT = {
					has_state_flag = {
						flag = koshinetsu_tungsten_developed
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = 35
		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = tungsten
					amount < 1
				}
			}
		}

		remove_effect = {
			535 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = koshinetsu_tungsten_developed
						}
					}
					set_state_flag = {
						flag = koshinetsu_tungsten_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = koshinetsu_tungsten_developed
						value = 1
					}
				}
			}
			535 = {
				add_resource = {
					type = tungsten
					amount = 14
				}
			}
		}
	}
	develop_congo_tungsten = { 

		icon = tungsten

		allowed = {

		}

		available = {
			has_tech = excavation3
			owns_state = 768
			controls_state = 768
			num_of_civilian_factories_available_for_projects > 5
		}

		highlight_states = {
			highlight_state_targets = {
				state = 768
			}
		}

		visible = {
			owns_state = 768
			controls_state = 768
			has_tech = excavation2
			768 = {
				NOT = {
					has_state_flag = {
						flag = congo_tungsten_developed
						value = 10
					}
				}
			}
		}

		cost = 25
		days_remove = 35
		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = tungsten
					amount < 1
				}
			}
		}

		remove_effect = {
			768 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = congo_tungsten_developed
						}
					}
					set_state_flag = {
						flag = congo_tungsten_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = congo_tungsten_developed
						value = 1
					}
				}
			}
			768 = {
				add_resource = {
					type = tungsten
					amount = 23
				}
			}
		}
	}
	develop_state_57_steel = { 

		icon = steel

		allowed = {

		}

		available = {
			has_tech = excavation2
			owns_state = 57
			controls_state = 57
			num_of_civilian_factories_available_for_projects > 5
		}

		highlight_states = {
			highlight_state_targets = {
				state = 57
			}
		}

		visible = {
			owns_state = 57
			controls_state = 57
			has_tech = excavation1
			57 = {
				NOT = {
					has_state_flag = {
						flag = steel_57_developed
						value = 10
					}
				}
			}
		}

		cost = 25
		days_remove = 30
		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

		remove_effect = {
			57 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = steel_57_developed
						}
					}
					set_state_flag = {
						flag = steel_57_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = steel_57_developed
						value = 1
					}
				}
			}
			57 = {
				add_resource = {
					type = steel
					amount = 4
				}
			}
		}
	}
	develop_state_55_steel = { 

		icon = steel

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 55
			}
		}

		visible = {
			owns_state = 55
			controls_state = 55
			has_tech = excavation1
			57 = {
				NOT = {
					has_state_flag = {
						flag = steel_55_developed
						value = 10
					}
				}
			}
		}

		cost = 25
		days_remove = 90
		modifier = {
			civilian_factory_use = 9
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

		remove_effect = {
			55 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = steel_55_developed
						}
					}
					set_state_flag = {
						flag = steel_55_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = steel_55_developed
						value = 1
					}
				}
			}
			55 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}
	develop_state_54_steel = { 

		icon = steel

		allowed = {

		}

		available = {
			has_tech = excavation4
			owns_state = 54
			controls_state = 54
			num_of_civilian_factories_available_for_projects > 12
		}

		highlight_states = {
			highlight_state_targets = {
				state = 54
			}
		}

		visible = {
			owns_state = 54
			controls_state = 54
			has_tech = excavation3
			54 = {
				NOT = {
					has_state_flag = {
						flag = steel_54_developed
						value = 10
					}
				}
			}
		}

		cost = 25
		days_remove = 60
		modifier = {
			civilian_factory_use = 13
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

		remove_effect = {
			54 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = steel_54_developed
						}
					}
					set_state_flag = {
						flag = steel_54_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = steel_54_developed
						value = 1
					}
				}
			}
			54 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
		}
	}
	develop_state_50_steel = { 

		icon = steel

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 54
			}
		}

		visible = {
			owns_state = 50
			controls_state = 50
			has_tech = excavation3
			50 = {
				NOT = {
					has_state_flag = {
						flag = steel_50_developed
						value = 10
					}
				}
			}
		}

		cost = 25
		days_remove = 60
		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						SOV_we_want_to_send_ultimatums = yes
					}
					AND = { #Too low MP we need to save PP for the laws
						has_manpower < 10000
						NOT = { has_idea = scraping_the_barrel }
					}
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

		remove_effect = {
			50 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = steel_50_developed
						}
					}
					set_state_flag = {
						flag = steel_50_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = steel_50_developed
						value = 1
					}
				}
			}
			50 = {
				add_resource = {
					type = steel
					amount = 5
				}
			}
		}
	}
	expand_tata_steel = { 

		icon = steel

		allowed = {

		}

		available = {
			has_tech = excavation3
			owns_state = 429
			controls_state = 429
			num_of_civilian_factories_available_for_projects > 14
		}

		highlight_states = {
			highlight_state_targets = {
				state = 429
			}
		}

		visible = {
			owns_state = 429
			controls_state = 429
			has_completed_focus = RAJ_tata_steel
			has_tech = excavation3
			429 = {
				NOT = {
					has_state_flag = {
						flag = steel_429_developed
						value = 10
					}
				}
			}
		}

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

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 3
				has_political_power > 200
			}
			modifier = {
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

		remove_effect = {
			429 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = steel_429_developed
						}
					}
					set_state_flag = {
						flag = steel_429_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = steel_429_developed
						value = 1
					}
				}
			}
			429 = {
				add_resource = {
					type = steel
					amount = 32
				}
			}
		}
	}
}
