prospect_for_resources = {
	develop_shandong_aluminium_deposits = { #597

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 597
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}
		remove_effect = {
			597 = { set_state_flag = shandong_aluminium_developed }
			597 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}

	develop_suiyuan_steel_deposits = { #621

		icon = steel

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 621
			}
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 621
			controls_state = 621
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = {
			621 = { set_state_flag = suiyuan_steel_developed }
			621 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}

	develop_daqing_deposits = { #714

		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 714
			}
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 714
			controls_state = 714
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 #10 was the basic default AI weight before, meant for Chinas.
				OR = {
					is_literally_china = yes
					original_tag = MAN
					original_tag = MEN
					original_tag = JAP
				}
			}
			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 = {
			714 = { set_state_flag = daqing_oil_developed_1 }
			714 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}
	develop_daqing_deposits_2 = { #714

		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 714
			}
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 714
			controls_state = 714
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			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 = {
			714 = { set_state_flag = daqing_oil_developed_2 }
			714 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	develop_yunnan_aluminium_deposits = { #325

		icon = aluminium

		allowed = {

		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}
		remove_effect = {
			325 = { set_state_flag = yunnan_aluminium_developed }
			325 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}
	develop_kirin_aluminium_deposits = { #328

		icon = aluminium

		allowed = {
			NOT = { tag = MAN }
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 328
			controls_state = 328
		}
		highlight_states = {
			highlight_state_targets = {
				state = 328
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}
		remove_effect = {
			328 = { set_state_flag = kirin_aluminium_developed }
			328 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}
	develop_sichuan_aluminium_deposits = { #605

		icon = aluminium

		allowed = {

		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}
		remove_effect = {
			605 = { set_state_flag = sichuan_aluminium_developed }
			605 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}

#	develop_luzon_chromium_deposits = { #623
#
#		icon = chromium
#
#		allowed = {
#
#		}
#
#		available = {
#			owns_state = 623
#			controls_state = 623
#			num_of_civilian_factories_available_for_projects > 2
#			has_tech = excavation3
#		}
#		highlight_states = {
#			highlight_state_targets = {
#				state = 623
#			}
#		}
#
#		visible = {
#			owns_state = 623
#			controls_state = 623
#			623 = {
#				NOT = {
#					has_state_flag = luzon_chromium_developed
#				}
#			}
#		}
#
#		fire_only_once = yes
#
#		cost = 25
#		days_remove = 60
#
#		modifier = {
#			civilian_factory_use = 3
#		}
#
#		ai_will_do = {
#			base = 0.5
#			modifier = {
#				factor = 10 #5 was the basic default AI weight before, meant for Chinas.
#				OR = {
#					is_literally_china = yes
#					original_tag = MAN
#					original_tag = MEN
#					original_tag = JAP
#				}
#			}
#			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 = chromium
#					amount < 1
#				}
#			}
#		}
#		remove_effect = {
#			623 = { set_state_flag = luzon_chromium_developed }
#			623 = {
#				add_resource = {
#					type = chromium
#					amount = 8
#				}
#			}
#		}
#	}
#
#	develop_mindanao_steel_deposits = { #627
#
#		icon = steel
#
#		allowed = {
#
#		}
#
#		highlight_states = {
#			highlight_state_targets = {
#				state = 627
#			}
#		}
#
#		available = {
#			has_tech = excavation4
#			num_of_civilian_factories_available_for_projects > 2
#			owns_state = 627
#			controls_state = 627
#		}
#
#		visible = {
#			owns_state = 627
#			controls_state = 627
#			627 = {
#				NOT = {
#					has_state_flag = mindanao_steel_developed
#				}
#			}
#		}
#
#		fire_only_once = yes
#
#		cost = 25
#		days_remove = 60
#
#		modifier = {
#			civilian_factory_use = 3
#		}
#
#		ai_will_do = {
#			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 = {
#			627 = { set_state_flag = mindanao_steel_developed }
#			627 = {
#				add_resource = {
#					type = steel
#					amount = 8
#				}
#			}
#		}
#	}
#
#	develop_samar_steel_deposits = { #625
#
#		icon = steel
#
#		allowed = {
#
#		}
#
#		available = {
#			has_tech = excavation3
#			num_of_civilian_factories_available_for_projects > 2
#			owns_state = 625
#			controls_state = 625
#		}
#
#		highlight_states = {
#			highlight_state_targets = {
#				state = 625
#			}
#		}
#
#		visible = {
#			owns_state = 625
#			controls_state = 625
#			625 = {
#				NOT = {
#					has_state_flag = samar_steel_developed
#				}
#			}
#		}
#
#		fire_only_once = yes
#
#		cost = 25
#		days_remove = 60
#
#		modifier = {
#			civilian_factory_use = 3
#		}
#
#		ai_will_do = {
#			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 = {
#			625 = { set_state_flag = samar_steel_developed }
#			625 = {
#				add_resource = {
#					type = steel
#					amount = 6
#				}
#			}
#		}
#	}

	develop_nauru_tungsten_deposits = { #725

		icon = tungsten

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 725
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 0
				tag = ENG
				has_war = no
			}
			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 = {
			725 = { set_state_flag = nauru_tungsten_developed }
			725 = {
				add_resource = {
					type = tungsten #standin for phosphates
					amount = 4
				}
			}
		}
	}
	develop_tonkin_aluminium_deposits = { #671

		icon = aluminium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 671
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}

		remove_effect = {
			671 = { set_state_flag = tonkin_aluminium_developed }
			671 = {
				add_resource = {
					type = aluminium
					amount = 6
				}
			}
		}
	}
	
	develop_singapore_aluminium_deposits = { #336

		icon = aluminium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 336
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		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 = aluminium
					amount < 1
				}
			}
		}

		remove_effect = {
			336 = { set_state_flag = singapore_aluminium_developed }
			336 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}
	develop_sirte_oil_fields = { #662

		icon = oil

		allowed = {
			NOT = {
				tag = ITA
			}
		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 662
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 #10 was the default weight before, meant for ITA.
				original_tag = ITA
			}
			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 = {
			662 = {
				set_state_flag = sirte_oil_developed
			}
			662 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	develop_benghazi_oil_fields = { #450

		icon = oil

		allowed = {
			NOT = {
				tag = ITA
			}
		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 450
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 #10 was the default weight before, meant for ITA.
				original_tag = ITA
			}
			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 = {
			450 = {
				set_state_flag = benghazi_oil_developed
			}
			450 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}
	develop_tasmania_aluminium_deposits = { #518

		icon = aluminium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 518
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		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 = aluminium
					amount < 1
				}
			}
		}

		remove_effect = {
			518 = {
				set_state_flag = tasmania_aluminium_developed
			}
			518 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}
	develop_west_africa_aluminium_deposits = { #556

		icon = aluminium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 556
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		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 = aluminium
					amount < 1
				}
			}
		}

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

		icon = aluminium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 556
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		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 = aluminium
					amount < 1
				}
			}
		}

		remove_effect = {
			556 = {
				set_state_flag = west_Africa_aluminium_developed_2
			}
			556 = {
				add_resource = {
					type = aluminium
					amount = 4
				}
			}
		}
	}
	develop_madagascar_rubber_plantations = { #543

		icon = rubber

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 543
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 3
		}

		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 = rubber
					amount < 1
				}
			}
		}

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

		icon = rubber

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 543
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			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 = rubber
					amount < 1
				}
			}
		}

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

	develop_sidamo_rubber_plantations = { #837

		icon = rubber

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 837
			}
		}

		visible = {
			owns_state = 837
			controls_state = 837
			837 = {
				NOT = {
					has_state_flag = sidamo_rubber_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 180

		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 = rubber
					amount < 1
				}
			}
		}

		remove_effect = {
			837 = {
				set_state_flag = sidamo_rubber_developed
			}
			837 = {
				add_resource = {
					type = rubber
					amount = 6
				}
			}
		}
	}

	develop_nigeria_rubber_plantations = { #558

		icon = rubber

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 558
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = ENG
			}
			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 }
					}
					AND = {
						tag = ENG
						has_war = no
						336 = { CONTROLLER = { is_in_faction_with = ROOT } }
					}
				}
			}
			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 = rubber
					amount < 1
				}
			}
		}

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

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 56
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 #10 was the default weight before
				original_tag = GER
			}
			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 = {
			56 = {
				set_state_flag = ems_oil_developed
			}
			56 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}
	}

	develop_matzen_oil_fields = { #4

		icon = oil

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 4
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 #10 was the default weight before
				original_tag = GER
			}
			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 = {
			4 = {
				set_state_flag = ems_oil_developed
			}
			4 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}
	develop_friesland_oil_fields = { #36

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 36
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 #10 was the default weight before
				OR = {
					original_tag = GER
					original_tag = HOL
				}
			}
			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 = {
			36 = { set_state_flag = friesland_oil_developed }
			36 = {
				add_resource = {
					type = oil
					amount = 6
				}

			}
		}
	}
	expand_eregli_steel_works = { #347

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 347
			}
		}

		available = {
			has_tech = construction3
			if = {
				limit = {
					has_dlc = "Battle for the Bosporus"
				}
				has_country_flag = TUR_karabuk_iron_steel_factory_modernised_flag
			}
			num_of_civilian_factories_available_for_projects > 14
			owns_state = 347
			controls_state = 347
		}

		visible = {
			owns_state = 347
			controls_state = 347
			original_tag = TUR
			347 = {
				NOT = {
					has_state_flag = eregli_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 15
		}

		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 = {
			347 = { set_state_flag = eregli_steel_developed }
			347 = {
				add_resource = {
					type = steel
					amount = 23
				}
			}
		}
	}

	develop_newfoundland_steel = { #331

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 331
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 #10 was the default weight before
				original_tag = ENG
			}
			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 }
					}
					AND = {
						tag = ENG
						has_war = no
						date < 1938.1.1
					}
				}
			}
			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 = {
			331 = { set_state_flag = newfoundland_steel_developed }
			331 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}
	}
	develop_quebec_steel = { #862

		icon = steel

		allowed = {

		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			862 = {
				infrastructure > 1
			}
			owns_state = 862
			controls_state = 862
		}
		highlight_states = {
			highlight_state_targets = {
				state = 862
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		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 = {
			862 = {
				set_state_flag = quebec_steel_developed
			}
			862 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}
	}

	develop_cuba_steel = { #315

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 315
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		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 = {
			315 = {
				set_state_flag = cuba_steel_developed
			}
			315 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
		}
	}

	develop_arkansas_aluminium_deposits = { #372

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 372
			}
		}

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

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

		cost = 25
		days_remove = USA_arkansas_aluminium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

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

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = aluminium
					amount < 1
				}
			}
		}

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

		icon = aluminium

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 358
			}
		}
		available = {
			has_tech = construction2
			num_of_civilian_factories_available_for_projects > 11
			owns_state = 358
			controls_state = 358
		}

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

		cost = 25
		days_remove = USA_new_york_aluminium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = aluminium
					amount < 1
				}
			}
		}

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

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

		icon = aluminium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 368
			}
		}

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

		cost = 25
		days_remove = USA_tennessee_aluminium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = aluminium
					amount < 1
				}
			}
		}

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

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

		icon = aluminium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 386
			}
		}

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

		cost = 25
		days_remove = USA_washington_aluminium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = aluminium
					amount < 1
				}
			}
		}

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

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

		icon = tungsten

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 387
			}
		}

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

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

		cost = 25
		days_remove = USA_idaho_tungsten_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = tungsten
					amount < 1
				}
			}
		}

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

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

		icon = tungsten

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 378
			}
		}

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

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

		cost = 25
		days_remove = USA_california_tungsten_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = tungsten
					amount < 1
				}
			}
		}

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

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

		icon = steel

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 391
			}
		}

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

		cost = 25
		days_remove = USA_minnesota_steel_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

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

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 360
			}
		}

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

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

		cost = 25
		days_remove = USA_pennsylvania_steel_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

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

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

	develop_ohio_steel_deposits = { #261

		icon = steel

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 261
			}
		}

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

		cost = 25
		days_remove = USA_ohio_steel_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

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

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 396
			}
		}

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

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

		cost = 25
		days_remove = USA_indiana_steel_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

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

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

	develop_montana_chromium_deposits = { #388

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 388
			}
		}

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

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

		cost = 25
		days_remove = USA_montana_chromium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = chromium
					amount < 1
				}
			}
		}

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

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

	develop_katanga_cobalt_deposits = { #889

		icon = chromium

		allowed = {

		}

		available = {
			owns_state = 889
			controls_state = 889
			num_of_civilian_factories_available_for_projects > 4
			has_tech = excavation3
			IF = {
				limit = {
					OR = {
						original_tag = BEL
						original_tag = COG
					}
					has_dlc = "Gotterdammerung"
				}
				has_completed_focus = CONGO_heat_resistant_cobalt
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 889
			}
		}

		visible = {
			owns_state = 889
			controls_state = 889
			889 = {
				NOT = {
					has_state_flag = katana_cobalt_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 1
			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 = chromium
					amount < 1
				}
			}
		}
		remove_effect = {
			889 = { set_state_flag = katana_cobalt_developed }
			889 = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}
	}

	develop_katanga_cobalt_deposits_2 = { #889

		icon = chromium

		allowed = {

		}

		available = {
			owns_state = 889
			controls_state = 889
			num_of_civilian_factories_available_for_projects > 6
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 889
			}
		}

		visible = {
			owns_state = 889
			controls_state = 889
			889 = {
				has_state_flag = katana_cobalt_developed
				NOT = {
					has_state_flag = katana_cobalt_further_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 7
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 10 #5 was the basic default AI weight before, meant for Chinas.
				OR = {
					is_literally_china = yes
					original_tag = MAN
					original_tag = MEN
					original_tag = JAP
				}
			}
			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 = chromium
					amount < 1
				}
			}
		}
		remove_effect = {
			889 = { set_state_flag = katana_cobalt_further_developed }
			889 = {
				add_resource = {
					type = chromium
					amount = 12
				}
			}
		}
	}

	develop_california_chromium_deposits = { #378

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 378
			}
		}

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

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

		cost = 25
		days_remove = USA_california_chromium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = chromium
					amount < 1
				}
			}
		}

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

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

	develop_oregon_chromium_deposits = { #385

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 385
			}
		}

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

		visible = {
			owns_state = 385
			controls_state = 385
			has_tech = excavation3
			385 = {
				NOT = {
					has_state_flag = {
						flag = oregon_chromium_developed
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = USA_oregon_chromium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = chromium
					amount < 1
				}
			}
		}

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

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

	develop_alaska_chromium_deposits = { #463

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 463
			}
		}

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

		visible = {
			owns_state = 463
			controls_state = 463
			has_tech = excavation3
			463 = {
				NOT = {
					has_state_flag = {
						flag = alaska_chromium_developed
						value = 5
					}
				}
			}
		}

		cost = 25
		days_remove = USA_alaska_chromium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = USA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = chromium
					amount < 1
				}
			}
		}

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

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

	develop_south_sakhalin_oil_deposits = { #537
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 537
			}
		}

		allowed = {
			#Everyone
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 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 = {
			537 = {
				add_resource = {
					type = oil
					amount = 8
				}
				set_state_flag = sakhalin_oil_developed
			}
		}
	}

	develop_palau_aluminium_deposits = { #647
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 647
			}
		}

		allowed = {
			#Everyone
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}

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

	develop_taiwan_aluminium_deposits = { #524
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 524
			}
		}

		allowed = {
			#Everyone
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		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 = aluminium
					amount < 1
				}
			}
		}

		remove_effect = {
			524 = {
				add_resource = {
					type = aluminium
					amount = 6
				}
				set_state_flag = taiwan_aluminium_developed
			}
		}
	}

	develop_taiwan_oil_deposits = { #524
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 524
			}
		}

		allowed = {
			#Everyone
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		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 = {
			524 = {
				add_resource = {
					type = oil
					amount = 6
				}
				set_state_flag = taiwanese_oil_developed
			}
		}
	}

	develop_cornwall_tungsten_deposits_1 = { #123

		icon = tungsten

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 123
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20
				original_tag = ENG
			}
			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 }
					}
					AND = {
						tag = ENG
						has_war = no
					}
				}
			}
			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 = {
			123 = { set_state_flag = cornwall_tungsten_developed }
			123 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}
	}
	develop_cornwall_tungsten_deposits_2 = { #123

		icon = tungsten

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 123
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			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 = {
			123 = { set_state_flag = cornwall_tungsten_developed_2 }
			123 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}
	}
	develop_leningrad_aluminium_deposits = { #195
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 195
			}
		}

		allowed = {
			#Everyone
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}

		remove_effect = {
			195 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				set_state_flag = leningrad_aluminium_developed
			}
		}
	}
	develop_kamensk_aluminium_deposits = { #653
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 653
			}
		}

		allowed = {
			#Everyone
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			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 = aluminium
					amount < 1
				}
			}
		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 217
			}
		}

		allowed = {
			#Everyone
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = aluminium
					amount < 1
				}
			}
		}

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

		icon = tungsten

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 233
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			233 = { set_state_flag = caucasus_tungsten_developed }
			233 = {
				add_resource = {
					type = tungsten
					amount = 6
				}
			}
		}
	}
	develop_caucasus_tungsten_deposits_2 = { #233

		icon = tungsten

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 233
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			233 = { set_state_flag = caucasus_tungsten_developed_2 }
			233 = {
				add_resource = {
					type = tungsten
					amount = 10
				}
			}
		}
	}
	develop_kyzyl_tungsten_deposits = { #404 State not found

		icon = tungsten

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 404
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			404 = { set_state_flag = kyzla_tungsten_developed }
			404 = {
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}
	}
	develop_chelyabinsk_steel_deposits = { #572

		icon = steel

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 572
			}
		}

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



		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			572 = {
				if = {
					limit = {
						not = {
							has_state_flag = chelyabinsk_steel_developed
						}
					}
					set_state_flag = {
						flag = chelyabinsk_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = chelyabinsk_steel_developed
						value = 1
					}
				}
			}
			572 = {
				add_resource = {
					type = steel
					amount = 20
				}
			}
		}
	}
	develop_zlatoust_steel_deposits_1 = { #573

		icon = steel

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 573
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			573 = { set_state_flag = zlatoust_steel_developed }
			573 = {
				add_resource = {
					type = steel
					amount = 10
				}
			}
		}
	}
	develop_zlatoust_steel_deposits_2 = { #573

		icon = steel

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 573
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			573 = { set_state_flag = zlatoust_steel_developed_2 }
			573 = {
				add_resource = {
					type = steel
					amount = 20
				}
			}
		}
	}
	develop_kursk_steel_deposits = { #220

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 220
			}
		}

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

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

		cost = 25
		days_remove = SOV_kursk_steel_duration?30

		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
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			add_to_variable = { var = SOV_kursk_steel_duration value = 30 }
			220 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kursk_steel_developed
						}
					}
					set_state_flag = {
						flag = kursk_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kursk_steel_developed
						value = 1
					}
				}
			}
			220 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 220
			}
		}

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

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

		cost = 25
		days_remove = SOV_kursk_steel_duration_2?30

		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
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			add_to_variable = { var = SOV_kursk_steel_duration_2 value = 30 }
			220 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kursk_steel_developed_2
						}
					}
					set_state_flag = {
						flag = kursk_steel_developed_2
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kursk_steel_developed_2
						value = 1
					}
				}
			}
			220 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 220
			}
		}

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

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

		cost = 25
		days_remove = SOV_kursk_steel_duration_3?30

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			add_to_variable = { var = SOV_kursk_steel_duration_3 value = 30 }
			220 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kursk_steel_developed_3
						}
					}
					set_state_flag = {
						flag = kursk_steel_developed_3
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kursk_steel_developed_3
						value = 1
					}
				}
			}
			220 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 240
			}
		}

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

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

		cost = 25
		days_remove = SOV_Belgorod_steel_duration?30

		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
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			add_to_variable = { var = SOV_Belgorod_steel_duration value = 30 }
			240 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = Belgorod_steel_developed
						}
					}
					set_state_flag = {
						flag = Belgorod_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = Belgorod_steel_developed
						value = 1
					}
				}
			}
			240 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 240
			}
		}

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

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

		cost = 25
		days_remove = SOV_Belgorod_steel_duration_2?30

		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
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			add_to_variable = { var = SOV_Belgorod_steel_duration_2 value = 30 }
			240 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = Belgorod_steel_developed_2
						}
					}
					set_state_flag = {
						flag = Belgorod_steel_developed_2
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = Belgorod_steel_developed_2
						value = 1
					}
				}
			}
			240 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 240
			}
		}

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

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

		cost = 25
		days_remove = SOV_Belgorod_steel_duration_3?30

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			add_to_variable = { var = SOV_Belgorod_steel_duration_3 value = 30 }
			240 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = Belgorod_steel_developed_3
						}
					}
					set_state_flag = {
						flag = Belgorod_steel_developed_3
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = Belgorod_steel_developed_3
						value = 1
					}
				}
			}
			240 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

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

		icon = chromium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 407
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = chromium
					amount < 1
				}
			}
		}

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

		icon = chromium

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 407
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = chromium
					amount < 1
				}
			}
		}

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

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 716
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

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

		ai_will_do = {
			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
				}
			}
		}
	}

	develop_chosen_tungsten_deposits = { #527

		icon = tungsten

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 527
			}
		}

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

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

		cost = 25
		days_remove = chosin_tungsten_duration?30

		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 = tungsten
					amount < 1
				}
			}
		}

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

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

	develop_abu_dhabi_oil_fields  = { #658

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 658
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 9
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			658 = {
				set_state_flag = abu_dhabi_developed
			}
			658 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	develop_kuwait_oil_fields = { #656

		icon = oil

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 656
			}
		}

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

		cost = 25
		days_remove = kuwait_oil_duration?30
		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 = {
			add_to_variable = { var = kuwait_oil_duration value = 30 }
			656 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = kuwait_oil_developed
						}
					}
					set_state_flag = {
						flag = kuwait_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = kuwait_oil_developed
						value = 1
					}
				}
			}
			656 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}

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

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 1015
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 120

		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
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			1015 = {
				set_state_flag = inner_oman_developed
			}
			1015 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}
	}
	develop_khuzestan_oil_fields   = { #413

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 413
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 9
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			413 = {
				set_state_flag = khuzestan_developed
			}
			413 = {
				add_resource = {
					type = oil
					amount = 16
				}
			}
		}
	}
	develop_fars_oil_fields = { #412

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 412
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			412 = {
				set_state_flag = fars_developed
			}
			412 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}
	}
	develop_baghdad_oil_fields  = { #291

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 291
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		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
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			291 = {
				set_state_flag = baghdad_developed
			}
			291 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}
	}
	develop_mosul_oil_fields   = { #676

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 676
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			676 = {
				set_state_flag = mosul_developed
			}
			676 = {
				add_resource = {
					type = oil
					amount = 28
				}
			}
		}
	}
	develop_nejd_oil_fields = { #859

		icon = oil

		allowed = {

		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 859
			}
		}

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

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

		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 = {
			add_to_variable = { var = nejd_oil_duration value = 30 }
			859 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = nejd_oil_developed
						}
					}
					set_state_flag = {
						flag = nejd_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = nejd_oil_developed
						value = 1
					}
				}
			}
			859 = {
				add_resource = {
					type = oil
					amount = 22
				}
			}
		}

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

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 457
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			457 = {
				set_state_flag = eastern_desert_developed
			}
			457 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}
	}
	develop_qatar_oil_fields   = { #765

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 765
			}
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			765 = {
				set_state_flag = qatar_developed
			}
			765 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}

	develop_malatya_chromium_deposits = { #344

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 344
			}
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 344
			controls_state = 344
		}

		visible = {
			owns_state = 344
			controls_state = 344
			344 = {
				NOT = {
					has_state_flag = malatya_chromium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		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 = chromium
					amount < 1
				}
			}
		}
		remove_effect = {
			344 = { set_state_flag = malatya_chromium_developed }
			344 = {
				add_resource = {
					type = chromium
					amount = 15
				}
			}
		}
	}

	develop_mersin_chromium_mines = { #345

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 345
			}
		}

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

		visible = {
			owns_state = 345
			controls_state = 345
			345 = {
				NOT = {
					has_state_flag = mersin_chromium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		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 = chromium
					amount < 1
				}
			}
		}
		remove_effect = {
			345 = { set_state_flag = mersin_chromium_developed }
			345 = {
				add_resource = {
					type = chromium
					amount = 34
				}
			}
		}
	}

	utilize_diyarbakir_chromium_deposits = { #350

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 350
			}
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 350
			controls_state = 350
		}

		visible = {
			owns_state = 350
			controls_state = 350
			350 = {
				NOT = {
					has_state_flag = diyarbakir_chromium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 4
		}

		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 = chromium
					amount < 1
				}
			}
		}
		remove_effect = {
			350 = { set_state_flag = biyarbakir_chromium_developed }
			350 = {
				add_resource = {
					type = chromium
					amount = 36
				}
			}
		}
	}

	expand_the_kirikkale_steel_mills   = { #49

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 49
			}
		}

		available = {
			has_tech = construction3
			num_of_civilian_factories_available_for_projects > 14
			owns_state = 49
			controls_state = 49
		}

		visible = {
			owns_state = 49
			controls_state = 49
			49 = {
				NOT = {
					has_state_flag = ankara_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 45

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			49 = {
				set_state_flag = ankara_steel_developed
			}
			49 = {
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}
	}

	develop_the_iron_mines_in_divrigi = { #349

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 349
			}
		}

		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 19
			owns_state = 349
			controls_state = 349
		}

		visible = {
			has_tech = excavation2
			owns_state = 349
			controls_state = 349
			349 = {
				NOT = {
					has_state_flag = sivas_steel_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 40

		modifier = {
			civilian_factory_use = 20
		}

		ai_will_do = {
			base = 0.3
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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 = {
			349 = {
				set_state_flag = sivas_steel_developed
			}
			349 = {
				add_resource = {
					type = steel
					amount = 28
				}
			}
		}
	}

	exploit_the_raman_oil_field = { #350

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 350
			}
		}


		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 9
			owns_state = 350
			controls_state = 350
		}

		visible = {
			has_tech = excavation1
			owns_state = 350
			controls_state = 350
			350 = {
				NOT = {
					has_state_flag = raman_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.2
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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.3
					has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 2
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 3
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			350 = {
				set_state_flag = raman_oil_developed
			}
			350 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}

	drill_in_the_garzan_oil_field = { #350

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 350
			}
		}

		available = {
			has_tech = excavation4
			if = {
				limit = {
					original_tag = TUR
				}
				has_idea = petrol_ofisi
			}
			num_of_civilian_factories_available_for_projects > 15
			owns_state = 350
			controls_state = 350
		}

		visible = {
			owns_state = 350
			controls_state = 350
			350 = {
				NOT = {
					has_state_flag = garzan_oil_developed
				}
			}
			has_tech = excavation3
		}

		fire_only_once = yes

		cost = 25
		days_remove = 80

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			base = 0.2
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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.3
					has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 2
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 3
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			350 = {
				set_state_flag = garzan_oil_developed
			}
			350 = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}
	expand_the_west_raman_oil_field = { #350

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 350
			}
		}

		available = {
			has_tech = excavation5
			if = {
				limit = {
					original_tag = TUR
				}
				has_idea = petrol_ofisi
			}
			num_of_civilian_factories_available_for_projects > 24
			owns_state = 350
			controls_state = 350
		}

		visible = {
			owns_state = 350
			controls_state = 350
			350 = {
				NOT = {
					has_state_flag = west_raman_oil_developed
				}
			}
			has_tech = excavation4
		}

		fire_only_once = yes

		cost = 25
		days_remove = 180

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			base = 0.2
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prio them
						original_tag = SOV
						OR = {
							SOV_save_pp_for_manpower_trouble = yes
							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.3
					has_political_power < 80
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 2
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 3
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			350 = {
				set_state_flag = west_raman_oil_developed
			}
			350 = {
				add_resource = {
					type = oil
					amount = 18
				}
			}
		}
	}
	develop_tripoli_oil_fields = { #448

		icon = oil

		allowed = {
			original_tag = ITA			
		}

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

		highlight_states = {
			highlight_state_targets = {
				state = 448
			}
		}

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

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

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

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

		icon = steel

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

		highlight_states = {
			highlight_state_targets = {
				state = 448
			}
		}

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

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

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

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 155
			}
		}

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

		visible = {
			owns_state = 155
			controls_state = 155
			155 = {
				NOT = {
					has_state_flag = transdanubia_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		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!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = aluminium
					amount < 1
				}
			}
		}
		remove_effect = {
			155 = { set_state_flag = transdanubia_aluminium_developed }
			155 = {
				add_resource = {
					type = aluminium
					amount = 24
				}
			}
		}
	}

	expand_the_rudabanya_iron_mine = { #43

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 43
			}
		}

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

		visible = {
			owns_state = 43
			controls_state = 43
			43 = {
				NOT = {
					has_state_flag = rudabanya_iron_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		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!
				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 = {
			43 = { set_state_flag = rudabanya_iron_developed }
			43 = {
				add_resource = {
					type = steel
					amount = 14
				}
			}
		}
	}
	
	develop_derna_oilfield = { #76

		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 76
			}
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 14
			owns_state = 76
			controls_state = 76
		}

		visible = {
			owns_state = 76
			controls_state = 76
			76 = {
				NOT = {
					has_state_flag = derna_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			base = 0 #Not historically excavated
		}

		remove_effect = {
			76 = { set_state_flag = derna_oil_developed }
			76 = {
				add_resource = {
					type = oil
					amount = 24
				}
			}
		}
	}

	HUN_tap_the_nagylengyel_oil_field = { #155

		icon = oil

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

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

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

		fire_only_once = yes

		cost = 75
		days_remove = 60

		modifier = {
			civilian_factory_use = 15
		}

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

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

	HUN_explore_the_oil_fields_around_nagykanizsa = { #155

		icon = oil

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

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

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

		fire_only_once = yes

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			base = 20
		}

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

	deeper_swedish_mines = { #76

		icon = steel

		allowed = {

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

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

			has_completed_focus = SWE_deep_mining_complexes
		}

		fire_only_once = yes

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 1
		}

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

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

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

	expand_greenlands_mines = { #101

		icon = steel

		allowed = {
			original_tag = DEN
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			has_full_control_of_state = 101 
		}

		highlight_states = {
			highlight_state_targets = {
				state = 101
			}
		}

		visible = {
			has_completed_focus = DEN_prospecting_new_sites
			101 = {
				NOT = {
					has_state_flag = {
						flag = expand_greenlands_mines_flag
						value = 3
					}
				}
			}
		}

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

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

	# Drill for oil in Chaco Boreal
	drill_for_oil_in_chaco_boreal = { #688

		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 688
			}
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 688
			controls_state = 688
			if = {
				limit = {
					original_tag = PAR
				}
				has_completed_focus = GUAY_exploit_mineral_wealth
			}
			else = {
				hidden_trigger = {
					always = yes
				}
			}

		}

		visible = {
			owns_state = 688
			controls_state = 688
			688 = {
				NOT = {
					has_state_flag = drill_for_oil_in_chaco_boreal_done_1
				}
			}
		}

		fire_only_once = yes

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 20 
				OR = {
					original_tag = PAR
					original_tag = BOL
					original_tag = ARG
					original_tag = BRA
				}
			}
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 75
			}
			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
				}
			}
			modifier = { # Murica!!!
				factor = 10
				original_tag = USA
			}
		}

		remove_effect = {
			688 = { set_state_flag = drill_for_oil_in_chaco_boreal_done_1 }
			688 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}
	}

	# Drill for oil in Chaco Boreal
	drill_for_oil_in_chaco_boreal_2 = { #688

		icon = oil

		allowed = {

		}
		highlight_states = {
			highlight_state_targets = {
				state = 688
			}
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 688
			controls_state = 688
		}

		visible = {
			owns_state = 688
			controls_state = 688
			688 = {
				has_state_flag = drill_for_oil_in_chaco_boreal_done_1
				NOT = {
					has_state_flag = drill_for_oil_in_chaco_boreal_done_2
				}
			}
		}

		fire_only_once = yes

		cost = 50
		days_remove = 120

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			base = 0.5
			modifier = {  # Too low PP
				factor = 0.5
				has_political_power < 80 
			}
			modifier = { #We have plenty of PP, avanti!
				factor = 3
				has_political_power > 200
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
			modifier = { # Murica!!!
				factor = 10 
				original_tag = USA
			}
		}
		remove_effect = {
			688 = { set_state_flag = drill_for_oil_in_chaco_boreal_done_2 }
			688 = {
				add_resource = {
					type = oil
					amount = 16
				}
			}
		}
	}

	AUS_develop_bleiberger_mines = {
		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 976 
			}
		}

		visible = {
			owns_state = 976
			controls_state = 976
			976 = {
				NOT = {
					has_state_flag = AUS_bleiberger_mines_developed
				}
			}
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			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 = {
			976 = { set_state_flag = AUS_bleiberger_mines_developed }
			976 = {
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}
	}

	CHI_develop_hunan_tungsten_mines = {
		icon = tungsten

		allowed = {
			tag = CHI
			has_dlc = "No Compromise, No Surrender"
		}

		highlight_states = {
			highlight_state_targets = {
				state = 602 
			}
		}

		visible = {
			owns_state = 602
			controls_state = 602
			602 = {
				NOT = {
					has_state_flag = CHI_develop_hunan_tungsten_mines
				}
			}
			has_completed_focus = CHI_tungsten_and_antimony_extraction
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			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 = {
			602 = { set_state_flag = CHI_develop_hunan_tungsten_mines }
			602 = {
				add_resource = {
					type = tungsten
					amount = 10
				}
			}
		}
	}

	CHI_develop_jiangxi_tungsten_mines = {
		icon = tungsten

		allowed = {
			tag = CHI
			has_dlc = "No Compromise, No Surrender"
		}

		highlight_states = {
			highlight_state_targets = {
				state = 600 
			}
		}

		visible = {
			owns_state = 600
			controls_state = 600
			600 = {
				NOT = {
					has_state_flag = CHI_develop_jiangxi_tungsten_mines
				}
			}
			has_completed_focus = CHI_tungsten_and_antimony_extraction
		}

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			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 = {
			600 = { set_state_flag = CHI_develop_jiangxi_tungsten_mines }
			600 = {
				add_resource = {
					type = tungsten
					amount = 10
				}
			}
		}
	}

	CHI_develop_coal_mines = {
		icon = coal

		allowed = {
			#original_tag = CHI
			#has_dlc = "No Compromise, No Surrender"
			
		}

		visible = {
			FROM = {
				is_controlled_by_ROOT_or_ally = yes
				NOT = {
					has_state_flag = china_coal_developed
				}
			}
		}

		target_root_trigger = {
			if = {
				limit = {
					original_tag = CHI
					has_dlc = "No Compromise, No Surrender"
				}
				has_completed_focus = CHI_grow_the_coal_industry
			}
		}

		state_target = yes
		on_map_mode = map_and_decisions_view
		target_array = CHI.core_states
		target_trigger = {
			OR = {
				AND = {
					owns_state = FROM
					controls_state = FROM
				}
				AND = {		#Only let China check allies, its performance-intensive
					has_dlc = "No Compromise, No Surrender"
					original_tag = CHI
					FROM = {
						controller = {
							is_ally_with = ROOT
						}
					}
				}
			}
			FROM = {
				has_resources_amount = {
					resource = coal
					amount > 3
				}
			}
		}

		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 0.3
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			FROM = {
				set_state_flag = china_coal_developed
				add_resource = {
					type = coal
					amount = 10	#increased from 6 since China should be able to be somewhat self-sufficient in coal
				}
			}
		}
	}

	develop_rio_grande_sul_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 502
			controls_state = 502
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 502
			}
		}

		visible = {
			owns_state = 502
			controls_state = 502
			502 = {
				NOT = {
					has_state_flag = rio_grande_sul_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			502 = { set_state_flag = rio_grande_sul_coal_developed }
			502 = {
				add_resource = {
					type = coal
					amount = 20
				}
			}
		}
	}
	develop_la_libertad_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 493
			controls_state = 493
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 493
			}
		}

		visible = {
			owns_state = 493
			controls_state = 493
			493 = {
				NOT = {
					has_state_flag = la_libertad_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			493 = { set_state_flag = la_libertad_coal_developed }
			493 = {
				add_resource = {
					type = coal
					amount = 12
				}
			}
		}
	}
	develop_western_visayas_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 628
			controls_state = 628
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 628
			}
		}

		visible = {
			owns_state = 628
			controls_state = 628
			628 = {
				NOT = {
					has_state_flag = western_visayas_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			628 = { set_state_flag = western_visayas_coal_developed }
			628 = {
				add_resource = {
					type = coal
					amount = 6
				}
			}
		}
	}
	expand_tomsk_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 578
			controls_state = 578
			num_of_civilian_factories_available_for_projects > 5
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 578
			}
		}

		visible = {
			owns_state = 578
			controls_state = 578
			578 = {
				NOT = {
					has_state_flag = tomsk_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			578 = { set_state_flag = tomsk_coal_developed }
			578 = {
				add_resource = {
					type = coal
					amount = 33
				}
			}
		}
	}
	expand_sofia_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 48
			controls_state = 48
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 48
			}
		}

		visible = {
			owns_state = 48
			controls_state = 48
			48 = {
				NOT = {
					has_state_flag = sofia_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			48 = { set_state_flag = sofia_coal_developed }
			48 = {
				add_resource = {
					type = coal
					amount = 7
				}
			}
		}
	}
	expand_north_transdanubia_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 155
			controls_state = 155
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 155
			}
		}

		visible = {
			owns_state = 155
			controls_state = 155
			155 = {
				NOT = {
					has_state_flag = north_transdanubia_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			155 = { set_state_flag = north_transdanubia_coal_developed }
			155 = {
				add_resource = {
					type = coal
					amount = 13
				}
			}
		}
	}
	expand_bosnia_coal_mines = {
		icon = coal

		allowed = {
			
		}

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

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

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			104 = { set_state_flag = bosnia_coal_developed }
			104 = {
				add_resource = {
					type = coal
					amount = 4
				}
			}
		}
	}
	expand_lima_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 303
			controls_state = 303
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 303
			}
		}

		visible = {
			owns_state = 303
			controls_state = 303
			303 = {
				NOT = {
					has_state_flag = lima_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			303 = { set_state_flag = lima_coal_developed }
			303 = {
				add_resource = {
					type = coal
					amount = 8
				}
			}
		}
	}
	expand_antofagasta_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 506
			controls_state = 506
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 506
			}
		}

		visible = {
			owns_state = 506
			controls_state = 506
			506 = {
				NOT = {
					has_state_flag = antofagasta_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			506 = { set_state_flag = antofagasta_coal_developed }
			506 = {
				add_resource = {
					type = coal
					amount = 5
				}
			}
		}
	}
	develop_mendoza_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 511
			controls_state = 511
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 511
			}
		}

		visible = {
			owns_state = 511
			controls_state = 511
			511 = {
				NOT = {
					has_state_flag = mendoza_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			511 = { set_state_flag = mendoza_coal_developed }
			511 = {
				add_resource = {
					type = coal
					amount = 5
				}
			}
		}
	}
	develop_western_slovakia_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 70
			controls_state = 70
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 70
			}
		}

		visible = {
			owns_state = 70
			controls_state = 70
			70 = {
				NOT = {
					has_state_flag = western_slovakia_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			70 = { set_state_flag = western_slovakia_coal_developed }
			70 = {
				add_resource = {
					type = coal
					amount = 20
				}
			}
		}
	}
	expand_tesinsko_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 72
			controls_state = 72
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 72
			}
		}

		visible = {
			owns_state = 72
			controls_state = 72
			72 = {
				NOT = {
					has_state_flag = tesinsko_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			72 = { set_state_flag = tesinsko_coal_developed }
			72 = {
				add_resource = {
					type = coal
					amount = 7
				}
			}
		}
	}
	expand_german_coal_mines = {
		icon = coal
		allowed = {

		}
		state_target = yes
		targets = { 51 42 65 60 66 }
		available = {
			owns_state = FROM
			controls_state = FROM
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		visible = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_state_flag = german_coal_developed
				}
			}
		}
		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
			}
		}
		target_root_trigger = {
			OR = {
				NOT = {
					original_tag = GER
				}
				has_completed_focus = GER_autarky_efforts
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = FROM
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			FROM = {
				set_state_flag = german_coal_developed
				add_resource = {
					type = coal
					amount = 25
				}
			}
		}
	}
	expand_transvaal_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 275
			controls_state = 275
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 275
			}
		}

		visible = {
			owns_state = 275
			controls_state = 275
			275 = {
				NOT = {
					has_state_flag = transvaal_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			275 = { set_state_flag = transvaal_coal_developed }
			275 = {
				add_resource = {
					type = coal
					amount = 10
				}
			}
		}
	}
	expand_bihar_coal_mines = {
		icon = coal

		allowed = {
			
		}

		available = {
			owns_state = 435
			controls_state = 435
			num_of_civilian_factories_available_for_projects > 2
			has_tech = excavation3
		}
		highlight_states = {
			highlight_state_targets = {
				state = 435
			}
		}

		visible = {
			owns_state = 435
			controls_state = 435
			435 = {
				NOT = {
					has_state_flag = bihar_coal_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			base = 1
			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 = coal
					amount < 1
				}
			}
		}
		remove_effect = {
			435 = { set_state_flag = bihar_coal_developed }
			435 = {
				add_resource = {
					type = coal
					amount = 9
				}
			}
		}
	}

	### New for Brazil
	
	develop_amazonas1_aluminium_deposits = { #961

		icon = aluminium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 961
			}
		}

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

		visible = {
			owns_state = 961
			controls_state = 961
			961 = {
				NOT = {
					has_state_flag = {
						flag = amazonas1_aluminium_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas1_aluminium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = BRA_amazonas1_aluminium_duration value = 30 }
			961 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = amazonas1_aluminium_developed
						}
					}
					set_state_flag = {
						flag = amazonas1_aluminium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = amazonas1_aluminium_developed
						value = 1
					}
				}
			}
			961 = {
				add_resource = {
					type = aluminium
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			modifier = {
				factor = 0
				OR = {
					AND = { #Ultimatum decisions are available and we should prior 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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = aluminium
					amount < 1
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = BRA_amazonas1_aluminium_duration value = 30 compare = less_than }
				}
				set_variable = { var = BRA_amazonas1_aluminium_duration value = 30 }
			}
		}
	}
	
	develop_amazonas2_steel_deposits = { #962

		icon = steel

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 962
			}
		}

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

		visible = {
			owns_state = 962
			controls_state = 962
			962 = {
				NOT = {
					has_state_flag = {
						flag = amazonas2_steel_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas2_steel_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = BRA_amazonas2_steel_duration value = 30 }
			962 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = amazonas2_steel_developed
						}
					}
					set_state_flag = {
						flag = amazonas2_steel_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = amazonas2_steel_developed
						value = 1
					}
				}
			}
			962 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = steel
					amount < 1
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = BRA_amazonas2_steel_duration value = 30 compare = less_than }
				}
				set_variable = { var = BRA_amazonas2_steel_duration value = 30 }
			}
		}
	}
	
	develop_amazonas3_oil_deposits = { #963

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 963
			}
		}

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

		visible = {
			owns_state = 963
			controls_state = 963
			963 = {
				NOT = {
					has_state_flag = {
						flag = amazonas3_oil_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas3_oil_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = BRA_amazonas3_oil_duration value = 30 }
			963 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = amazonas3_oil_developed
						}
					}
					set_state_flag = {
						flag = amazonas3_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = amazonas3_oil_developed
						value = 1
					}
				}
			}
			963 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = BRA_amazonas3_oil_duration value = 30 compare = less_than }
				}
				set_variable = { var = BRA_amazonas3_oil_duration value = 30 }
			}
		}
	}
	develop_amazonas4_oil_deposits = { #964

		icon = oil

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 964
			}
		}

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

		visible = {
			owns_state = 964
			controls_state = 964
			964 = {
				NOT = {
					has_state_flag = {
						flag = amazonas4_oil_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas4_oil_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = BRA_amazonas4_oil_duration value = 30 }
			964 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = amazonas4_oil_developed
						}
					}
					set_state_flag = {
						flag = amazonas4_oil_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = amazonas4_oil_developed
						value = 1
					}
				}
			}
			964 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = BRA_amazonas4_oil_duration value = 30 compare = less_than }
				}
				set_variable = { var = BRA_amazonas4_oil_duration value = 30 }
			}
		}
	}
	develop_amazonas5_rubber_deposits = { #965

		icon = rubber

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 965
			}
		}

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

		visible = {
			owns_state = 965
			controls_state = 965
			965 = {
				NOT = {
					has_state_flag = {
						flag = amazonas5_rubber_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas5_rubber_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = BRA_amazonas5_rubber_duration value = 30 }
			965 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = amazonas5_rubber_developed
						}
					}
					set_state_flag = {
						flag = amazonas5_rubber_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = amazonas5_rubber_developed
						value = 1
					}
				}
			}
			965 = {
				add_resource = {
					type = rubber
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = BRA_amazonas5_rubber_duration value = 30 compare = less_than }
				}
				set_variable = { var = BRA_amazonas5_rubber_duration value = 30 }
			}
		}
	}
	develop_amazonas6_rubber_deposits = { #966

		icon = rubber

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 966
			}
		}

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

		visible = {
			owns_state = 966
			controls_state = 966
			966 = {
				NOT = {
					has_state_flag = {
						flag = amazonas6_rubber_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas6_rubber_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = BRA_amazonas6_rubber_duration value = 30 }
			966 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = amazonas6_rubber_developed
						}
					}
					set_state_flag = {
						flag = amazonas6_rubber_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = amazonas6_rubber_developed
						value = 1
					}
				}
			}
			966 = {
				add_resource = {
					type = rubber
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = rubber
					amount < 1
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = BRA_amazonas6_rubber_duration value = 30 compare = less_than }
				}
				set_variable = { var = BRA_amazonas6_rubber_duration value = 30 }
			}
		}
	}
	develop_amazonas7_chromium_deposits = { #967

		icon = chromium

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 967
			}
		}

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

		visible = {
			owns_state = 967
			controls_state = 967
			967 = {
				NOT = {
					has_state_flag = {
						flag = amazonas7_chromium_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas7_chromium_duration?30

		modifier = {
			civilian_factory_use = 12
		}

		remove_effect = {
			custom_effect_tooltip = repeatable_decision_tt
			add_to_variable = { var = BRA_amazonas_chromium_duration value = 30 }
			967 = {
				if = {
					limit = {
						NOT = {
							has_state_flag = amazonas_chromium_developed
						}
					}
					set_state_flag = {
						flag = amazonas7_chromium_developed
						value = 1
					}
				}
				else = {
					modify_state_flag = {
						flag = amazonas7_chromium_developed
						value = 1
					}
				}
			}
			967 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = chromium
					amount < 1
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					check_variable = { var = BRA_amazonas7_chromium_duration value = 30 compare = less_than }
				}
				set_variable = { var = BRA_amazonas7_chromium_duration value = 30 }
			}
		}
	}
	develop_amazonas8_tungsten_deposits = { #968

		icon = tungsten

		allowed = {

		}

		highlight_states = {
			highlight_state_targets = {
				state = 968
			}
		}

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

		visible = {
			owns_state = 968
			controls_state = 968
			968 = {
				NOT = {
					has_state_flag = {
						flag = amazonas8_tungsten_developed
						value = 5
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = BRA_amazonas8_tungsten_duration?30

		modifier = {
			civilian_factory_use = 12
		}

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

		ai_will_do = {
			base = 0.5
			modifier = {
				factor = 2 #1 was the default weight before
				original_tag = BRA
			}
			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 }
					}
					has_political_power < 200
				}
			}
			modifier = { #Running out of the stuff, need more!
				factor = 5
				has_resources_in_country = {
					resource = tungsten
					amount < 1
				}
			}
		}

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