prospect_for_resources = {

	 ###    #####   #       
	#   #     #     #       
	#   #     #     #       
	#   #     #     #       
	 ###    #####   #####

	#Algeria: Open Illizi Oil Field
	algeria_oil_I = { 

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 513
			}
		}

		visible = {
			OR = {
				controls_state = 513
				any_country = {
					is_subject_of = ROOT
					controls_state = 513
				}
				ROOT = {
					has_resources_rights = {
						state = 513
						resources = { oil }
					}
				}
			}
			513 = {
				NOT = {
					has_state_flag = algeria_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					513 = {
						has_resistance = yes
					}
				}
				513 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = algeria_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			513 = {
				set_state_flag = algeria_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = algeria_oil_II
		}
	}

	#Algeria: Open Hassi Messaoud Oil Field
	algeria_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 513
			}
		}

		visible = {
			OR = {
				controls_state = 513
				any_country = {
					is_subject_of = ROOT
					controls_state = 513
				}
				ROOT = {
					has_resources_rights = {
						state = 513
						resources = { oil }
					}
				}
			}
			513 = {
				NOT = {
					has_state_flag = algeria_oil_II_flag
				}
				has_state_flag = algeria_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					513 = {
						has_resistance = yes
					}
				}
				513 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = algeria_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 7
		}

		cost = 60
		days_remove = 90

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			513 = {
				set_state_flag = algeria_oil_II_flag
				add_resource = {
					type = oil
					amount = 35
				}
			}
		}
	}

	#Egipto: Develop Ras Gharib Oil Field
	egipto_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 457
			}
		}

		visible = {
			OR = {
				controls_state = 457
				any_country = {
					is_subject_of = ROOT
					controls_state = 457
				}
				ROOT = {
					has_resources_rights = {
						state = 457
						resources = { oil }
					}
				}
			}
			457 = {
				NOT = {
					has_state_flag = egipto_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					457 = {
						has_resistance = yes
					}
				}
				457 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = egipto_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			457 = {
				set_state_flag = egipto_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = egipto_oil_III
		}
	}

	#Egipto: Open [453.GetName] Oil Fields
	egipto_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 453
			}
		}

		visible = {
			OR = {
				controls_state = 453
				any_country = {
					is_subject_of = ROOT
					controls_state = 453
				}
				ROOT = {
					has_resources_rights = {
						state = 453
						resources = { oil }
					}
				}
			}
			453 = {
				NOT = {
					has_state_flag = egipto_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					453 = {
						has_resistance = yes
					}
				}
				453 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = egipto_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			453 = {
				set_state_flag = egipto_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Egipto: Open Belayim Oil Field
	egipto_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 457
			}
		}

		visible = {
			OR = {
				controls_state = 457
				any_country = {
					is_subject_of = ROOT
					controls_state = 457
				}
				ROOT = {
					has_resources_rights = {
						state = 457
						resources = { oil }
					}
				}
			}
			457 = {
				NOT = {
					has_state_flag = egipto_oil_III_flag
				}
				has_state_flag = egipto_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					457 = {
						has_resistance = yes
					}
				}
				457 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = egipto_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			457 = {
				set_state_flag = egipto_oil_III_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Nigeria: Open Oloibiri Oil Field
	nigeria_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 900
			}
		}

		visible = {
			OR = {
				controls_state = 900
				any_country = {
					is_subject_of = ROOT
					controls_state = 900
				}
				ROOT = {
					has_resources_rights = {
						state = 900
						resources = { oil }
					}
				}
			}
			900 = {
				NOT = {
					has_state_flag = nigeria_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					900 = {
						has_resistance = yes
					}
				}
				900 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = nigeria_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			900 = {
				set_state_flag = nigeria_oil_I_flag
				add_resource = {
					type = oil
					amount = 8
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = nigeria_oil_II
		}
	}

	#Nigeria: Open Afam and Bomu Oil Fields
	nigeria_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 900
			}
		}

		visible = {
			OR = {
				controls_state = 900
				any_country = {
					is_subject_of = ROOT
					controls_state = 900
				}
				ROOT = {
					has_resources_rights = {
						state = 900
						resources = { oil }
					}
				}
			}
			900 = {
				NOT = {
					has_state_flag = nigeria_oil_II_flag
				}
				has_state_flag = nigeria_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					900 = {
						has_resistance = yes
					}
				}
				900 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = nigeria_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			900 = {
				set_state_flag = nigeria_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Gabón: Open Ozouri Oil Field
	gabon_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 539
			}
		}

		visible = {
			OR = {
				controls_state = 539
				any_country = {
					is_subject_of = ROOT
					controls_state = 539
				}
				ROOT = {
					has_resources_rights = {
						state = 539
						resources = { oil }
					}
				}
			}
			539 = {
				NOT = {
					has_state_flag = gabon_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					539 = {
						has_resistance = yes
					}
				}
				539 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = gabon_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			539 = {
				set_state_flag = gabon_oil_I_flag
				add_resource = {
					type = oil
					amount = 8
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = gabon_oil_II
		}
	}

	#Gabón: Open Pointe Clairette Oil Field
	gabon_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 539
			}
		}

		visible = {
			OR = {
				controls_state = 539
				any_country = {
					is_subject_of = ROOT
					controls_state = 539
				}
				ROOT = {
					has_resources_rights = {
						state = 539
						resources = { oil }
					}
				}
			}
			539 = {
				NOT = {
					has_state_flag = gabon_oil_II_flag
				}
				has_state_flag = gabon_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					539 = {
						has_resistance = yes
					}
				}
				539 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = gabon_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			539 = {
				set_state_flag = gabon_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Congo Francés: Open Pointe Indienne Oil Field
	congo_frances_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 772
			}
		}

		visible = {
			OR = {
				controls_state = 772
				any_country = {
					is_subject_of = ROOT
					controls_state = 772
				}
				ROOT = {
					has_resources_rights = {
						state = 772
						resources = { oil }
					}
				}
			}
			772 = {
				NOT = {
					has_state_flag = congo_frances_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					772 = {
						has_resistance = yes
					}
				}
				772 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = congo_frances_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			772 = {
				set_state_flag = congo_frances_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Angola: Open Kwanza Oil Fields
	angola_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 540
			}
		}

		visible = {
			OR = {
				controls_state = 540
				any_country = {
					is_subject_of = ROOT
					controls_state = 540
				}
				ROOT = {
					has_resources_rights = {
						state = 540
						resources = { oil }
					}
				}
			}
			540 = {
				NOT = {
					has_state_flag = angola_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					540 = {
						has_resistance = yes
					}
				}
				540 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = angola_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			540 = {
				set_state_flag = angola_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Marruecos: Develop Gharb Oil Field
	marruecos_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 461
			}
		}

		visible = {
			OR = {
				controls_state = 461
				any_country = {
					is_subject_of = ROOT
					controls_state = 461
				}
				ROOT = {
					has_resources_rights = {
						state = 461
						resources = { oil }
					}
				}
			}
			461 = {
				NOT = {
					has_state_flag = marruecos_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					461 = {
						has_resistance = yes
					}
				}
				461 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = marruecos_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			461 = {
				set_state_flag = marruecos_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#EEUU: Expand [378.GetName] Oil Fields
	eeuu_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 378
			}
		}

		visible = {
			OR = {
				controls_state = 378
				any_country = {
					is_subject_of = ROOT
					controls_state = 378
				}
				ROOT = {
					has_resources_rights = {
						state = 378
						resources = { oil }
					}
				}
			}
			378 = {
				NOT = {
					has_state_flag = eeuu_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					378 = {
						has_resistance = yes
					}
				}
				378 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = eeuu_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			378 = {
				set_state_flag = eeuu_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#EEUU: Expand [375.GetName] Oil Fields
	eeuu_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 375
			}
		}

		visible = {
			OR = {
				controls_state = 375
				any_country = {
					is_subject_of = ROOT
					controls_state = 375
				}
				ROOT = {
					has_resources_rights = {
						state = 375
						resources = { oil }
					}
				}
			}
			375 = {
				NOT = {
					has_state_flag = eeuu_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					375 = {
						has_resistance = yes
					}
				}
				375 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = eeuu_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 5
		}

		cost = 45
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			375 = {
				set_state_flag = eeuu_oil_II_flag
				add_resource = {
					type = oil
					amount = 30
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = eeuu_oil_III
		}
	}

	#EEUU: Develop [375.GetName] Oil Fields
	eeuu_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 375
			}
		}

		visible = {
			OR = {
				controls_state = 375
				any_country = {
					is_subject_of = ROOT
					controls_state = 375
				}
				ROOT = {
					has_resources_rights = {
						state = 375
						resources = { oil }
					}
				}
			}
			375 = {
				NOT = {
					has_state_flag = eeuu_oil_III_flag
				}
				has_state_flag = eeuu_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					375 = {
						has_resistance = yes
					}
				}
				375 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = eeuu_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 5
		}

		cost = 45
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			375 = {
				set_state_flag = eeuu_oil_III_flag
				add_resource = {
					type = oil
					amount = 30
				}
			}
		}
	}

	#EEUU: Open Williston Oil Field
	eeuu_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 389
			}
		}

		visible = {
			OR = {
				controls_state = 389
				any_country = {
					is_subject_of = ROOT
					controls_state = 389
				}
				ROOT = {
					has_resources_rights = {
						state = 389
						resources = { oil }
					}
				}
			}
			389 = {
				NOT = {
					has_state_flag = eeuu_oil_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					389 = {
						has_resistance = yes
					}
				}
				389 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = eeuu_oil_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			389 = {
				set_state_flag = eeuu_oil_IV_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#EEUU: Open [371.GetName] Offshore Oil Rig
	eeuu_oil_V = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 371
			}
		}

		visible = {
			OR = {
				controls_state = 371
				any_country = {
					is_subject_of = ROOT
					controls_state = 371
				}
				ROOT = {
					has_resources_rights = {
						state = 371
						resources = { oil }
					}
				}
			}
			371 = {
				NOT = {
					has_state_flag = eeuu_oil_V_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					371 = {
						has_resistance = yes
					}
				}
				371 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = eeuu_oil_V
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			371 = {
				set_state_flag = eeuu_oil_V_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Canadá: Expand Turner Valley Oil Fields
	canada_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 470
			}
		}

		visible = {
			OR = {
				controls_state = 470
				any_country = {
					is_subject_of = ROOT
					controls_state = 470
				}
				ROOT = {
					has_resources_rights = {
						state = 470
						resources = { oil }
					}
				}
			}
			470 = {
				NOT = {
					has_state_flag = canada_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					470 = {
						has_resistance = yes
					}
				}
				470 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = canada_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			470 = {
				set_state_flag = canada_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = canada_oil_II
		}
	}

	#Canadá: Develop Turner Valley Oil Fields
	canada_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 470
			}
		}

		visible = {
			OR = {
				controls_state = 470
				any_country = {
					is_subject_of = ROOT
					controls_state = 470
				}
				ROOT = {
					has_resources_rights = {
						state = 470
						resources = { oil }
					}
				}
			}
			470 = {
				NOT = {
					has_state_flag = canada_oil_II_flag
				}
				has_state_flag = canada_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					470 = {
						has_resistance = yes
					}
				}
				470 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = canada_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			470 = {
				set_state_flag = canada_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = canada_oil_III
		}
	}

	#Canadá: Open Leduc No. 1 Oil Field
	canada_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 470
			}
		}

		visible = {
			OR = {
				controls_state = 470
				any_country = {
					is_subject_of = ROOT
					controls_state = 470
				}
				ROOT = {
					has_resources_rights = {
						state = 470
						resources = { oil }
					}
				}
			}
			470 = {
				NOT = {
					has_state_flag = canada_oil_III_flag
				}
				has_state_flag = canada_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					470 = {
						has_resistance = yes
					}
				}
				470 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = canada_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			470 = {
				set_state_flag = canada_oil_III_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = canada_oil_IV
		}
	}

	#Canadá: Open Pembina Oil Field
	canada_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 470
			}
		}

		visible = {
			OR = {
				controls_state = 470
				any_country = {
					is_subject_of = ROOT
					controls_state = 470
				}
				ROOT = {
					has_resources_rights = {
						state = 470
						resources = { oil }
					}
				}
			}
			470 = {
				NOT = {
					has_state_flag = canada_oil_IV_flag
				}
				has_state_flag = canada_oil_III_flag
			}
		}

		available = {
			if = {
				limit = {
					470 = {
						has_resistance = yes
					}
				}
				470 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = canada_oil_IV
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			470 = {
				set_state_flag = canada_oil_IV_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Mexico: Expand Poza Rica Oil Field
	mexico_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 477
			}
		}

		visible = {
			OR = {
				controls_state = 477
				any_country = {
					is_subject_of = ROOT
					controls_state = 477
				}
				ROOT = {
					has_resources_rights = {
						state = 477
						resources = { oil }
					}
				}
			}
			477 = {
				NOT = {
					has_state_flag = mexico_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					477 = {
						has_resistance = yes
					}
				}
				477 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = mexico_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			477 = {
				set_state_flag = mexico_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Mexico: Develop [479.GetName] Oil Fields
	mexico_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 479
			}
		}

		visible = {
			OR = {
				controls_state = 479
				any_country = {
					is_subject_of = ROOT
					controls_state = 479
				}
				ROOT = {
					has_resources_rights = {
						state = 479
						resources = { oil }
					}
				}
			}
			479 = {
				NOT = {
					has_state_flag = mexico_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					479 = {
						has_resistance = yes
					}
				}
				479 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = mexico_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			479 = {
				set_state_flag = mexico_oil_II_flag
				add_resource = {
					type = oil
					amount = 15
				}
			}
		}
	}

	#Mexico: Develop Tabasco Oil Field
	mexico_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 476
			}
		}

		visible = {
			OR = {
				controls_state = 476
				any_country = {
					is_subject_of = ROOT
					controls_state = 476
				}
				ROOT = {
					has_resources_rights = {
						state = 476
						resources = { oil }
					}
				}
			}
			476 = {
				NOT = {
					has_state_flag = mexico_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					476 = {
						has_resistance = yes
					}
				}
				476 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = mexico_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			476 = {
				set_state_flag = mexico_oil_III_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Trinidad: Expand Trinidad Leaseholds Operations
	trinidad_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 691
			}
		}

		visible = {
			OR = {
				controls_state = 691
				any_country = {
					is_subject_of = ROOT
					controls_state = 691
				}
				ROOT = {
					has_resources_rights = {
						state = 691
						resources = { oil }
					}
				}
			}
			691 = {
				NOT = {
					has_state_flag = trinidad_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					691 = {
						has_resistance = yes
					}
				}
				691 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = trinidad_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			691 = {
				set_state_flag = trinidad_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = trinidad_oil_II
		}
	}

	#Trinidad: Open Gulf of Paria Offshore Oil Rig
	trinidad_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 691
			}
		}

		visible = {
			OR = {
				controls_state = 691
				any_country = {
					is_subject_of = ROOT
					controls_state = 691
				}
				ROOT = {
					has_resources_rights = {
						state = 691
						resources = { oil }
					}
				}
			}
			691 = {
				NOT = {
					has_state_flag = trinidad_oil_II_flag
				}
				has_state_flag = trinidad_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					691 = {
						has_resistance = yes
					}
				}
				691 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = trinidad_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			691 = {
				set_state_flag = trinidad_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = trinidad_oil_III
		}
	}

	#Trinidad: Expand Gulf of Paria Offshore Oil Rig
	trinidad_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 691
			}
		}

		visible = {
			OR = {
				controls_state = 691
				any_country = {
					is_subject_of = ROOT
					controls_state = 691
				}
				ROOT = {
					has_resources_rights = {
						state = 691
						resources = { oil }
					}
				}
			}
			691 = {
				NOT = {
					has_state_flag = trinidad_oil_III_flag
				}
				has_state_flag = trinidad_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					691 = {
						has_resistance = yes
					}
				}
				691 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = trinidad_oil_III
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			691 = {
				set_state_flag = trinidad_oil_III_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Argentina: Expand [955.GetName] Oil Fields
	argentina_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 955
			}
		}

		visible = {
			OR = {
				controls_state = 955
				any_country = {
					is_subject_of = ROOT
					controls_state = 955
				}
				ROOT = {
					has_resources_rights = {
						state = 955
						resources = { oil }
					}
				}
			}
			955 = {
				NOT = {
					has_state_flag = argentina_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					955 = {
						has_resistance = yes
					}
				}
				955 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = argentina_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			955 = {
				set_state_flag = argentina_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Argentina: Expand Golfo de San Jorge Oil Extraction
	argentina_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 954
			}
		}

		visible = {
			OR = {
				controls_state = 954
				any_country = {
					is_subject_of = ROOT
					controls_state = 954
				}
				ROOT = {
					has_resources_rights = {
						state = 954
						resources = { oil }
					}
				}
			}
			954 = {
				NOT = {
					has_state_flag = argentina_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					954 = {
						has_resistance = yes
					}
				}
				954 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = argentina_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			954 = {
				set_state_flag = argentina_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Argentina: Expand Plaza Huincul Oil Fields
	argentina_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 512
			}
		}

		visible = {
			OR = {
				controls_state = 512
				any_country = {
					is_subject_of = ROOT
					controls_state = 512
				}
				ROOT = {
					has_resources_rights = {
						state = 512
						resources = { oil }
					}
				}
			}
			512 = {
				NOT = {
					has_state_flag = argentina_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					512 = {
						has_resistance = yes
					}
				}
				512 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = argentina_oil_III
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			512 = {
				set_state_flag = argentina_oil_III_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Argentina: Open Campo Durán and Madrejones Oil Fields
	argentina_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 957
			}
		}

		visible = {
			OR = {
				controls_state = 957
				any_country = {
					is_subject_of = ROOT
					controls_state = 957
				}
				ROOT = {
					has_resources_rights = {
						state = 957
						resources = { oil }
					}
				}
			}
			957 = {
				NOT = {
					has_state_flag = argentina_oil_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					957 = {
						has_resistance = yes
					}
				}
				957 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = argentina_oil_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			957 = {
				set_state_flag = argentina_oil_IV_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Bolivia: Expand Camiri Oil Field
	bolivia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 302
			}
		}

		visible = {
			OR = {
				controls_state = 302
				any_country = {
					is_subject_of = ROOT
					controls_state = 302
				}
				ROOT = {
					has_resources_rights = {
						state = 302
						resources = { oil }
					}
				}
			}
			302 = {
				NOT = {
					has_state_flag = bolivia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					302 = {
						has_resistance = yes
					}
				}
				302 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bolivia_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			302 = {
				set_state_flag = bolivia_oil_I_flag
				add_resource = {
					type = oil
					amount = 6
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = bolivia_oil_II
		}
	}

	#Bolivia: Develop Tarija Oil Fields
	bolivia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 302
			}
		}

		visible = {
			OR = {
				controls_state = 302
				any_country = {
					is_subject_of = ROOT
					controls_state = 302
				}
				ROOT = {
					has_resources_rights = {
						state = 302
						resources = { oil }
					}
				}
			}
			302 = {
				NOT = {
					has_state_flag = bolivia_oil_II_flag
				}
				has_state_flag = bolivia_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					302 = {
						has_resistance = yes
					}
				}
				302 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bolivia_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			302 = {
				set_state_flag = bolivia_oil_II_flag
				add_resource = {
					type = oil
					amount = 7
				}
			}
		}
	}

	#Venezuela: Expand Maracaibo Oil Field
	venezuela_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 489
			}
		}

		visible = {
			OR = {
				controls_state = 489
				any_country = {
					is_subject_of = ROOT
					controls_state = 489
				}
				ROOT = {
					has_resources_rights = {
						state = 489
						resources = { oil }
					}
				}
			}
			489 = {
				NOT = {
					has_state_flag = venezuela_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					489 = {
						has_resistance = yes
					}
				}
				489 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = venezuela_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			489 = {
				set_state_flag = venezuela_oil_I_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = venezuela_oil_II
		}
	}

	#Venezuela: Develop Maracaibo Oil Field
	venezuela_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 489
			}
		}

		visible = {
			OR = {
				controls_state = 489
				any_country = {
					is_subject_of = ROOT
					controls_state = 489
				}
				ROOT = {
					has_resources_rights = {
						state = 489
						resources = { oil }
					}
				}
			}
			489 = {
				NOT = {
					has_state_flag = venezuela_oil_II_flag
				}
				has_state_flag = venezuela_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					489 = {
						has_resistance = yes
					}
				}
				489 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = venezuela_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 5
		}

		cost = 45
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			489 = {
				set_state_flag = venezuela_oil_II_flag
				add_resource = {
					type = oil
					amount = 30
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = venezuela_oil_IV
		}
	}

	#Venezuela: Develop Anzoátegui and Monagas Oil Fields
	venezuela_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 307
			}
		}

		visible = {
			OR = {
				controls_state = 307
				any_country = {
					is_subject_of = ROOT
					controls_state = 307
				}
				ROOT = {
					has_resources_rights = {
						state = 307
						resources = { oil }
					}
				}
			}
			307 = {
				NOT = {
					has_state_flag = venezuela_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					307 = {
						has_resistance = yes
					}
				}
				307 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = venezuela_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 5
		}

		cost = 45
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			307 = {
				set_state_flag = venezuela_oil_III_flag
				add_resource = {
					type = oil
					amount = 30
				}
			}
		}
	}

	#Venezuela: Intensify Extraction of Maracaibo Oil Field
	venezuela_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 489
			}
		}

		visible = {
			OR = {
				controls_state = 489
				any_country = {
					is_subject_of = ROOT
					controls_state = 489
				}
				ROOT = {
					has_resources_rights = {
						state = 489
						resources = { oil }
					}
				}
			}
			489 = {
				NOT = {
					has_state_flag = venezuela_oil_IV_flag
				}
				has_state_flag = venezuela_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					489 = {
						has_resistance = yes
					}
				}
				489 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = venezuela_oil_IV
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			489 = {
				set_state_flag = venezuela_oil_IV_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Brasil: Open [499.GetName] Oil Fields
	brasil_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 499
			}
		}

		visible = {
			OR = {
				controls_state = 499
				any_country = {
					is_subject_of = ROOT
					controls_state = 499
				}
				ROOT = {
					has_resources_rights = {
						state = 499
						resources = { oil }
					}
				}
			}
			499 = {
				NOT = {
					has_state_flag = brasil_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					499 = {
						has_resistance = yes
					}
				}
				499 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brasil_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			499 = {
				set_state_flag = brasil_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = brasil_oil_II
		}
	}

	#Brasil: Expand [499.GetName] Oil Fields
	brasil_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 499
			}
		}

		visible = {
			OR = {
				controls_state = 499
				any_country = {
					is_subject_of = ROOT
					controls_state = 499
				}
				ROOT = {
					has_resources_rights = {
						state = 499
						resources = { oil }
					}
				}
			}
			499 = {
				NOT = {
					has_state_flag = brasil_oil_II_flag
				}
				has_state_flag = brasil_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					499 = {
						has_resistance = yes
					}
				}
				499 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brasil_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			499 = {
				set_state_flag = brasil_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = brasil_oil_III
		}
	}

	#Brasil: Develop [499.GetName] Oil Fields
	brasil_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 499
			}
		}

		visible = {
			OR = {
				controls_state = 499
				any_country = {
					is_subject_of = ROOT
					controls_state = 499
				}
				ROOT = {
					has_resources_rights = {
						state = 499
						resources = { oil }
					}
				}
			}
			499 = {
				NOT = {
					has_state_flag = brasil_oil_III_flag
				}
				has_state_flag = brasil_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					499 = {
						has_resistance = yes
					}
				}
				499 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brasil_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			499 = {
				set_state_flag = brasil_oil_III_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Chile: Open [507.GetName] Oil Fields
	chile_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 507
			}
		}

		visible = {
			OR = {
				controls_state = 507
				any_country = {
					is_subject_of = ROOT
					controls_state = 507
				}
				ROOT = {
					has_resources_rights = {
						state = 507
						resources = { oil }
					}
				}
			}
			507 = {
				NOT = {
					has_state_flag = chile_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					507 = {
						has_resistance = yes
					}
				}
				507 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = chile_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			507 = {
				set_state_flag = chile_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = chile_oil_II
		}
	}

	#Chile: Develop [507.GetName] Oil Fields
	chile_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 507
			}
		}

		visible = {
			OR = {
				controls_state = 507
				any_country = {
					is_subject_of = ROOT
					controls_state = 507
				}
				ROOT = {
					has_resources_rights = {
						state = 507
						resources = { oil }
					}
				}
			}
			507 = {
				NOT = {
					has_state_flag = chile_oil_II_flag
				}
				has_state_flag = chile_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					507 = {
						has_resistance = yes
					}
				}
				507 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = chile_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			507 = {
				set_state_flag = chile_oil_II_flag
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}

	#Colombia: Expand Magdalena Oil Field
	colombia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 493
			}
		}

		visible = {
			OR = {
				controls_state = 493
				any_country = {
					is_subject_of = ROOT
					controls_state = 493
				}
				ROOT = {
					has_resources_rights = {
						state = 493
						resources = { oil }
					}
				}
			}
			493 = {
				NOT = {
					has_state_flag = colombia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					493 = {
						has_resistance = yes
					}
				}
				493 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = colombia_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			493 = {
				set_state_flag = colombia_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = colombia_oil_II
		}
	}

	#Colombia: Develop Catatumbo Oil Field
	colombia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 493
			}
		}

		visible = {
			OR = {
				controls_state = 493
				any_country = {
					is_subject_of = ROOT
					controls_state = 493
				}
				ROOT = {
					has_resources_rights = {
						state = 493
						resources = { oil }
					}
				}
			}
			493 = {
				NOT = {
					has_state_flag = colombia_oil_II_flag
				}
				has_state_flag = colombia_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					493 = {
						has_resistance = yes
					}
				}
				493 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = colombia_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			493 = {
				set_state_flag = colombia_oil_II_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Perú: Develop Piura Oil Fields
	peru_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 303
			}
		}

		visible = {
			OR = {
				controls_state = 303
				any_country = {
					is_subject_of = ROOT
					controls_state = 303
				}
				ROOT = {
					has_resources_rights = {
						state = 303
						resources = { oil }
					}
				}
			}
			303 = {
				NOT = {
					has_state_flag = peru_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					303 = {
						has_resistance = yes
					}
				}
				303 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = peru_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			303 = {
				set_state_flag = peru_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Perú: Open Maquía Oil Field
	peru_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 491
			}
		}

		visible = {
			OR = {
				controls_state = 491
				any_country = {
					is_subject_of = ROOT
					controls_state = 491
				}
				ROOT = {
					has_resources_rights = {
						state = 491
						resources = { oil }
					}
				}
			}
			491 = {
				NOT = {
					has_state_flag = peru_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					491 = {
						has_resistance = yes
					}
				}
				491 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = peru_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			491 = {
				set_state_flag = peru_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Ecuador: Expand Ancón Oil Fields
	ecuador_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 305
			}
		}

		visible = {
			OR = {
				controls_state = 305
				any_country = {
					is_subject_of = ROOT
					controls_state = 305
				}
				ROOT = {
					has_resources_rights = {
						state = 305
						resources = { oil }
					}
				}
			}
			305 = {
				NOT = {
					has_state_flag = ecuador_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					305 = {
						has_resistance = yes
					}
				}
				305 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = ecuador_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			305 = {
				set_state_flag = ecuador_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = ecuador_oil_II
		}
	}

	#Ecuador: Develop Ancón Oil Fields
	ecuador_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 305
			}
		}

		visible = {
			OR = {
				controls_state = 305
				any_country = {
					is_subject_of = ROOT
					controls_state = 305
				}
				ROOT = {
					has_resources_rights = {
						state = 305
						resources = { oil }
					}
				}
			}
			305 = {
				NOT = {
					has_state_flag = ecuador_oil_II_flag
				}
				has_state_flag = ecuador_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					305 = {
						has_resistance = yes
					}
				}
				305 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = ecuador_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			305 = {
				set_state_flag = ecuador_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Cuba: Expand Central Oil Fields
	cuba_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 315
			}
		}

		visible = {
			OR = {
				controls_state = 315
				any_country = {
					is_subject_of = ROOT
					controls_state = 315
				}
				ROOT = {
					has_resources_rights = {
						state = 315
						resources = { oil }
					}
				}
			}
			315 = {
				NOT = {
					has_state_flag = cuba_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					315 = {
						has_resistance = yes
					}
				}
				315 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = cuba_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			315 = {
				set_state_flag = cuba_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Irán: Expand [413.GetName] Oil Fields
	iran_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 413
			}
		}

		visible = {
			OR = {
				controls_state = 413
				any_country = {
					is_subject_of = ROOT
					controls_state = 413
				}
				ROOT = {
					has_resources_rights = {
						state = 413
						resources = { oil }
					}
				}
			}
			413 = {
				NOT = {
					has_state_flag = iran_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					413 = {
						has_resistance = yes
					}
				}
				413 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iran_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			413 = {
				set_state_flag = iran_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = iran_oil_V
		}
	}

	#Irán: Expand [421.GetName] Oil Fields
	iran_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 421
			}
		}

		visible = {
			OR = {
				controls_state = 421
				any_country = {
					is_subject_of = ROOT
					controls_state = 421
				}
				ROOT = {
					has_resources_rights = {
						state = 421
						resources = { oil }
					}
				}
			}
			421 = {
				NOT = {
					has_state_flag = iran_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					421 = {
						has_resistance = yes
					}
				}
				421 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iran_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			421 = {
				set_state_flag = iran_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = iran_oil_III
		}
	}

	#Irán: Develop [421.GetName] Oil Fields
	iran_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 421
			}
		}

		visible = {
			OR = {
				controls_state = 421
				any_country = {
					is_subject_of = ROOT
					controls_state = 421
				}
				ROOT = {
					has_resources_rights = {
						state = 421
						resources = { oil }
					}
				}
			}
			421 = {
				NOT = {
					has_state_flag = iran_oil_III_flag
				}
				has_state_flag = iran_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					421 = {
						has_resistance = yes
					}
				}
				421 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iran_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			421 = {
				set_state_flag = iran_oil_III_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Irán: Develop [412.GetName] Oil Fields
	iran_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 412
			}
		}

		visible = {
			OR = {
				controls_state = 412
				any_country = {
					is_subject_of = ROOT
					controls_state = 412
				}
				ROOT = {
					has_resources_rights = {
						state = 412
						resources = { oil }
					}
				}
			}
			412 = {
				NOT = {
					has_state_flag = iran_oil_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					412 = {
						has_resistance = yes
					}
				}
				412 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iran_oil_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			412 = {
				set_state_flag = iran_oil_IV_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Irán: Develop [413.GetName] Oil Fields
	iran_oil_V = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 413
			}
		}

		visible = {
			OR = {
				controls_state = 413
				any_country = {
					is_subject_of = ROOT
					controls_state = 413
				}
				ROOT = {
					has_resources_rights = {
						state = 413
						resources = { oil }
					}
				}
			}
			413 = {
				NOT = {
					has_state_flag = iran_oil_V_flag
				}
				has_state_flag = iran_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					413 = {
						has_resistance = yes
					}
				}
				413 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iran_oil_V
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 5
		}

		cost = 45
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			413 = {
				set_state_flag = iran_oil_V_flag
				add_resource = {
					type = oil
					amount = 30
				}
			}
		}
	}

	#Iraq: Expand [676.GetName] Oil Fields
	iraq_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 676
			}
		}

		visible = {
			OR = {
				controls_state = 676
				any_country = {
					is_subject_of = ROOT
					controls_state = 676
				}
				ROOT = {
					has_resources_rights = {
						state = 676
						resources = { oil }
					}
				}
			}
			676 = {
				NOT = {
					has_state_flag = iraq_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					676 = {
						has_resistance = yes
					}
				}
				676 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iraq_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			676 = {
				set_state_flag = iraq_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = iraq_oil_II
		}
	}

	#Iraq: Develop [676.GetName] Oil Fields
	iraq_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 676
			}
		}

		visible = {
			OR = {
				controls_state = 676
				any_country = {
					is_subject_of = ROOT
					controls_state = 676
				}
				ROOT = {
					has_resources_rights = {
						state = 676
						resources = { oil }
					}
				}
			}
			676 = {
				NOT = {
					has_state_flag = iraq_oil_II_flag
				}
				has_state_flag = iraq_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					676 = {
						has_resistance = yes
					}
				}
				676 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iraq_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			676 = {
				set_state_flag = iraq_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Iraq: Develop [291.GetName] Oil Fields
	iraq_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 291
			}
		}

		visible = {
			OR = {
				controls_state = 291
				any_country = {
					is_subject_of = ROOT
					controls_state = 291
				}
				ROOT = {
					has_resources_rights = {
						state = 291
						resources = { oil }
					}
				}
			}
			291 = {
				NOT = {
					has_state_flag = iraq_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					291 = {
						has_resistance = yes
					}
				}
				291 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iraq_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			291 = {
				set_state_flag = iraq_oil_III_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Iraq: Expand [1011.GetName] Oil Fields
	iraq_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1011
			}
		}

		visible = {
			OR = {
				controls_state = 1011
				any_country = {
					is_subject_of = ROOT
					controls_state = 1011
				}
				ROOT = {
					has_resources_rights = {
						state = 1011
						resources = { oil }
					}
				}
			}
			1011 = {
				NOT = {
					has_state_flag = iraq_oil_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1011 = {
						has_resistance = yes
					}
				}
				1011 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iraq_oil_IV
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 5
		}

		cost = 45
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1011 = {
				set_state_flag = iraq_oil_IV_flag
				add_resource = {
					type = oil
					amount = 30
				}
			}
		}
	}

	#Bahrein: Expand Awali Oil Field
	bahrein_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1014
			}
		}

		visible = {
			OR = {
				controls_state = 1014
				any_country = {
					is_subject_of = ROOT
					controls_state = 1014
				}
				ROOT = {
					has_resources_rights = {
						state = 1014
						resources = { oil }
					}
				}
			}
			1014 = {
				NOT = {
					has_state_flag = bahrein_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1014 = {
						has_resistance = yes
					}
				}
				1014 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bahrein_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1014 = {
				set_state_flag = bahrein_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = bahrein_oil_II
		}
	}

	#Bahrein: Develop Awali Oil Field
	bahrein_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1014
			}
		}

		visible = {
			OR = {
				controls_state = 1014
				any_country = {
					is_subject_of = ROOT
					controls_state = 1014
				}
				ROOT = {
					has_resources_rights = {
						state = 1014
						resources = { oil }
					}
				}
			}
			1014 = {
				NOT = {
					has_state_flag = bahrein_oil_II_flag
				}
				has_state_flag = bahrein_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					1014 = {
						has_resistance = yes
					}
				}
				1014 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bahrein_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1014 = {
				set_state_flag = bahrein_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = bahrein_oil_III
		}
	}

	#Bahrein: Continue Development of Awali Oil Field
	bahrein_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1014
			}
		}

		visible = {
			OR = {
				controls_state = 1014
				any_country = {
					is_subject_of = ROOT
					controls_state = 1014
				}
				ROOT = {
					has_resources_rights = {
						state = 1014
						resources = { oil }
					}
				}
			}
			1014 = {
				NOT = {
					has_state_flag = bahrein_oil_III_flag
				}
				has_state_flag = bahrein_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					1014 = {
						has_resistance = yes
					}
				}
				1014 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bahrein_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1014 = {
				set_state_flag = bahrein_oil_III_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = bahrein_oil_IV
		}
	}

	#Bahrein: Intensify Production of Awali Oil Field
	bahrein_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1014
			}
		}

		visible = {
			OR = {
				controls_state = 1014
				any_country = {
					is_subject_of = ROOT
					controls_state = 1014
				}
				ROOT = {
					has_resources_rights = {
						state = 1014
						resources = { oil }
					}
				}
			}
			1014 = {
				NOT = {
					has_state_flag = bahrein_oil_IV_flag
				}
				has_state_flag = bahrein_oil_III_flag
			}
		}

		available = {
			if = {
				limit = {
					1014 = {
						has_resistance = yes
					}
				}
				1014 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bahrein_oil_IV
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1014 = {
				set_state_flag = bahrein_oil_IV_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Indonesia: Expand Balikpapan and Tarakan Oil Fields
	indonesia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1055
			}
		}

		visible = {
			OR = {
				controls_state = 1055
				any_country = {
					is_subject_of = ROOT
					controls_state = 1055
				}
				ROOT = {
					has_resources_rights = {
						state = 1055
						resources = { oil }
					}
				}
			}
			1055 = {
				NOT = {
					has_state_flag = indonesia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1055 = {
						has_resistance = yes
					}
				}
				1055 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indonesia_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1055 = {
				set_state_flag = indonesia_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Indonesia: Develop Palembang Oil Field
	indonesia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 672
			}
		}

		visible = {
			OR = {
				controls_state = 672
				any_country = {
					is_subject_of = ROOT
					controls_state = 672
				}
				ROOT = {
					has_resources_rights = {
						state = 672
						resources = { oil }
					}
				}
			}
			672 = {
				NOT = {
					has_state_flag = indonesia_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					672 = {
						has_resistance = yes
					}
				}
				672 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indonesia_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			672 = {
				set_state_flag = indonesia_oil_II_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Indonesia: Open Minas Oil Field
	indonesia_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1049
			}
		}

		visible = {
			OR = {
				controls_state = 1049
				any_country = {
					is_subject_of = ROOT
					controls_state = 1049
				}
				ROOT = {
					has_resources_rights = {
						state = 1049
						resources = { oil }
					}
				}
			}
			1049 = {
				NOT = {
					has_state_flag = indonesia_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1049 = {
						has_resistance = yes
					}
				}
				1049 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indonesia_oil_III
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1049 = {
				set_state_flag = indonesia_oil_III_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Brunei: Expand Seria Oil Field
	brunei_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1023
			}
		}

		visible = {
			OR = {
				controls_state = 1023
				any_country = {
					is_subject_of = ROOT
					controls_state = 1023
				}
				ROOT = {
					has_resources_rights = {
						state = 1023
						resources = { oil }
					}
				}
			}
			1023 = {
				NOT = {
					has_state_flag = brunei_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1023 = {
						has_resistance = yes
					}
				}
				1023 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brunei_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1023 = {
				set_state_flag = brunei_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = brunei_oil_II
		}
	}

	#Brunei: Develop Seria Oil Field
	brunei_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1023
			}
		}

		visible = {
			OR = {
				controls_state = 1023
				any_country = {
					is_subject_of = ROOT
					controls_state = 1023
				}
				ROOT = {
					has_resources_rights = {
						state = 1023
						resources = { oil }
					}
				}
			}
			1023 = {
				NOT = {
					has_state_flag = brunei_oil_II_flag
				}
				has_state_flag = brunei_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					1023 = {
						has_resistance = yes
					}
				}
				1023 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brunei_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1023 = {
				set_state_flag = brunei_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = brunei_oil_III
		}
	}

	#Brunei: Continue Development of Seria Oil Field
	brunei_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1023
			}
		}

		visible = {
			OR = {
				controls_state = 1023
				any_country = {
					is_subject_of = ROOT
					controls_state = 1023
				}
				ROOT = {
					has_resources_rights = {
						state = 1023
						resources = { oil }
					}
				}
			}
			1023 = {
				NOT = {
					has_state_flag = brunei_oil_III_flag
				}
				has_state_flag = brunei_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					1023 = {
						has_resistance = yes
					}
				}
				1023 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brunei_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1023 = {
				set_state_flag = brunei_oil_III_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = brunei_oil_IV
		}
	}

	#Brunei: Intensify Production of Seria Oil Field
	brunei_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1023
			}
		}

		visible = {
			OR = {
				controls_state = 1023
				any_country = {
					is_subject_of = ROOT
					controls_state = 1023
				}
				ROOT = {
					has_resources_rights = {
						state = 1023
						resources = { oil }
					}
				}
			}
			1023 = {
				NOT = {
					has_state_flag = brunei_oil_IV_flag
				}
				has_state_flag = brunei_oil_III_flag
			}
		}

		available = {
			if = {
				limit = {
					1023 = {
						has_resistance = yes
					}
				}
				1023 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = brunei_oil_IV
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1023 = {
				set_state_flag = brunei_oil_IV_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#China: Expand Yumen Oil Field
	china_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 756
			}
		}

		visible = {
			OR = {
				controls_state = 756
				any_country = {
					is_subject_of = ROOT
					controls_state = 756
				}
				ROOT = {
					has_resources_rights = {
						state = 756
						resources = { oil }
					}
				}
			}
			756 = {
				NOT = {
					has_state_flag = china_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					756 = {
						has_resistance = yes
					}
				}
				756 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			756 = {
				set_state_flag = china_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = china_oil_II
		}
	}

	#China: Develop Yumen Oil Field
	china_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 756
			}
		}

		visible = {
			OR = {
				controls_state = 756
				any_country = {
					is_subject_of = ROOT
					controls_state = 756
				}
				ROOT = {
					has_resources_rights = {
						state = 756
						resources = { oil }
					}
				}
			}
			756 = {
				NOT = {
					has_state_flag = china_oil_II_flag
				}
				has_state_flag = china_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					756 = {
						has_resistance = yes
					}
				}
				756 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			756 = {
				set_state_flag = china_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#China: Expand Karamay Oil Field
	china_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 618
			}
		}

		visible = {
			OR = {
				controls_state = 618
				any_country = {
					is_subject_of = ROOT
					controls_state = 618
				}
				ROOT = {
					has_resources_rights = {
						state = 618
						resources = { oil }
					}
				}
			}
			618 = {
				NOT = {
					has_state_flag = china_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					618 = {
						has_resistance = yes
					}
				}
				618 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_oil_III
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			618 = {
				set_state_flag = china_oil_III_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = china_oil_IV
		}
	}

	#China: Develop Karamay Oil Field
	china_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 618
			}
		}

		visible = {
			OR = {
				controls_state = 618
				any_country = {
					is_subject_of = ROOT
					controls_state = 618
				}
				ROOT = {
					has_resources_rights = {
						state = 618
						resources = { oil }
					}
				}
			}
			618 = {
				NOT = {
					has_state_flag = china_oil_IV_flag
				}
				has_state_flag = china_oil_III_flag
			}
		}

		available = {
			if = {
				limit = {
					618 = {
						has_resistance = yes
					}
				}
				618 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_oil_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			618 = {
				set_state_flag = china_oil_IV_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#China: Develop Daqing Oil Field
	china_oil_V = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 714
			}
		}

		visible = {
			OR = {
				controls_state = 714
				any_country = {
					is_subject_of = ROOT
					controls_state = 714
				}
				ROOT = {
					has_resources_rights = {
						state = 714
						resources = { oil }
					}
				}
			}
			714 = {
				NOT = {
					has_state_flag = china_oil_V_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					714 = {
						has_resistance = yes
					}
				}
				714 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_oil_V
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			714 = {
				set_state_flag = china_oil_V_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#India: Expand Digboi Oil Field
	india_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 434
			}
		}

		visible = {
			OR = {
				controls_state = 434
				any_country = {
					is_subject_of = ROOT
					controls_state = 434
				}
				ROOT = {
					has_resources_rights = {
						state = 434
						resources = { oil }
					}
				}
			}
			434 = {
				NOT = {
					has_state_flag = india_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					434 = {
						has_resistance = yes
					}
				}
				434 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = india_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			434 = {
				set_state_flag = india_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = india_oil_II
		}
	}

	#India: Open Naharkatiya Oil Field
	india_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 434
			}
		}

		visible = {
			OR = {
				controls_state = 434
				any_country = {
					is_subject_of = ROOT
					controls_state = 434
				}
				ROOT = {
					has_resources_rights = {
						state = 434
						resources = { oil }
					}
				}
			}
			434 = {
				NOT = {
					has_state_flag = india_oil_II_flag
				}
				has_state_flag = india_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					434 = {
						has_resistance = yes
					}
				}
				434 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = india_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			434 = {
				set_state_flag = india_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Kuwait: Open Burgan Oil Field
	kuwait_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 656
			}
		}

		visible = {
			OR = {
				controls_state = 656
				any_country = {
					is_subject_of = ROOT
					controls_state = 656
				}
				ROOT = {
					has_resources_rights = {
						state = 656
						resources = { oil }
					}
				}
			}
			656 = {
				NOT = {
					has_state_flag = kuwait_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					656 = {
						has_resistance = yes
					}
				}
				656 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = kuwait_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			656 = {
				set_state_flag = kuwait_oil_I_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = kuwait_oil_II
		}
	}

	#Kuwait: Expand Burgan Oil Field
	kuwait_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 656
			}
		}

		visible = {
			OR = {
				controls_state = 656
				any_country = {
					is_subject_of = ROOT
					controls_state = 656
				}
				ROOT = {
					has_resources_rights = {
						state = 656
						resources = { oil }
					}
				}
			}
			656 = {
				NOT = {
					has_state_flag = kuwait_oil_II_flag
				}
				has_state_flag = kuwait_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					656 = {
						has_resistance = yes
					}
				}
				656 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = kuwait_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			656 = {
				set_state_flag = kuwait_oil_II_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = kuwait_oil_III
		}
	}

	#Kuwait: Open Raudhatain Oil Field
	kuwait_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 656
			}
		}

		visible = {
			OR = {
				controls_state = 656
				any_country = {
					is_subject_of = ROOT
					controls_state = 656
				}
				ROOT = {
					has_resources_rights = {
						state = 656
						resources = { oil }
					}
				}
			}
			656 = {
				NOT = {
					has_state_flag = kuwait_oil_III_flag
				}
				has_state_flag = kuwait_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					656 = {
						has_resistance = yes
					}
				}
				656 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = kuwait_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 7
		}

		cost = 60
		days_remove = 90

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			656 = {
				set_state_flag = kuwait_oil_III_flag
				add_resource = {
					type = oil
					amount = 50
				}
			}
		}
	}

	#Arabia Saudí: Expand [859.GetName] Oil Fields
	arabia_saudi_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 859
			}
		}

		visible = {
			OR = {
				controls_state = 859
				any_country = {
					is_subject_of = ROOT
					controls_state = 859
				}
				ROOT = {
					has_resources_rights = {
						state = 859
						resources = { oil }
					}
				}
			}
			859 = {
				NOT = {
					has_state_flag = arabia_saudi_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					859 = {
						has_resistance = yes
					}
				}
				859 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = arabia_saudi_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			859 = {
				set_state_flag = arabia_saudi_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = arabia_saudi_oil_II
		}
	}

	#Arabia Saudí: Develop [859.GetName] Oil Fields
	arabia_saudi_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 859
			}
		}

		visible = {
			OR = {
				controls_state = 859
				any_country = {
					is_subject_of = ROOT
					controls_state = 859
				}
				ROOT = {
					has_resources_rights = {
						state = 859
						resources = { oil }
					}
				}
			}
			859 = {
				NOT = {
					has_state_flag = arabia_saudi_oil_II_flag
				}
				has_state_flag = arabia_saudi_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					859 = {
						has_resistance = yes
					}
				}
				859 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = arabia_saudi_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			859 = {
				set_state_flag = arabia_saudi_oil_II_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = arabia_saudi_oil_III
		}
	}

	#Arabia Saudí: Intensify Production of [859.GetName] Oil Fields
	arabia_saudi_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 859
			}
		}

		visible = {
			OR = {
				controls_state = 859
				any_country = {
					is_subject_of = ROOT
					controls_state = 859
				}
				ROOT = {
					has_resources_rights = {
						state = 859
						resources = { oil }
					}
				}
			}
			859 = {
				NOT = {
					has_state_flag = arabia_saudi_oil_III_flag
				}
				has_state_flag = arabia_saudi_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					859 = {
						has_resistance = yes
					}
				}
				859 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = arabia_saudi_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			859 = {
				set_state_flag = arabia_saudi_oil_III_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = arabia_saudi_oil_IV
		}
	}

	#Arabia Saudí: Open Ghawar Oil Field (State 859)
	arabia_saudi_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 859
			}
		}

		visible = {
			OR = {
				controls_state = 859
				any_country = {
					is_subject_of = ROOT
					controls_state = 859
				}
				ROOT = {
					has_resources_rights = {
						state = 859
						resources = { oil }
					}
				}
			}
			859 = {
				NOT = {
					has_state_flag = arabia_saudi_oil_IV_flag
				}
				has_state_flag = arabia_saudi_oil_III_flag
			}
		}

		available = {
			if = {
				limit = {
					859 = {
						has_resistance = yes
					}
				}
				859 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = arabia_saudi_oil_IV
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			859 = {
				set_state_flag = arabia_saudi_oil_IV_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = arabia_saudi_oil_V
			unlock_decision_tooltip = arabia_saudi_oil_VI
		}
	}

	#Arabia Saudí: Open Ghawar Oil Field (State 292)
	arabia_saudi_oil_V = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 292
			}
		}

		visible = {
			OR = {
				controls_state = 292
				any_country = {
					is_subject_of = ROOT
					controls_state = 292
				}
				ROOT = {
					has_resources_rights = {
						state = 292
						resources = { oil }
					}
				}
			}
			292 = {
				NOT = {
					has_state_flag = arabia_saudi_oil_V_flag
				}
				has_state_flag = arabia_saudi_oil_IV_flag
			}
		}

		available = {
			if = {
				limit = {
					292 = {
						has_resistance = yes
					}
				}
				292 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = arabia_saudi_oil_V
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			292 = {
				set_state_flag = arabia_saudi_oil_V_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Arabia Saudí: Open Ghawar Oil Field (State 678)
	arabia_saudi_oil_VI = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 678
			}
		}

		visible = {
			OR = {
				controls_state = 678
				any_country = {
					is_subject_of = ROOT
					controls_state = 678
				}
				ROOT = {
					has_resources_rights = {
						state = 678
						resources = { oil }
					}
				}
			}
			678 = {
				NOT = {
					has_state_flag = arabia_saudi_oil_VI_flag
				}
				has_state_flag = arabia_saudi_oil_IV_flag
			}
		}

		available = {
			if = {
				limit = {
					678 = {
						has_resistance = yes
					}
				}
				678 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = arabia_saudi_oil_VI
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			678 = {
				set_state_flag = arabia_saudi_oil_VI_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Qatar: Open Dukhan Oil Field
	qatar_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 765
			}
		}

		visible = {
			OR = {
				controls_state = 765
				any_country = {
					is_subject_of = ROOT
					controls_state = 765
				}
				ROOT = {
					has_resources_rights = {
						state = 765
						resources = { oil }
					}
				}
			}
			765 = {
				NOT = {
					has_state_flag = qatar_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					765 = {
						has_resistance = yes
					}
				}
				765 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = qatar_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			765 = {
				set_state_flag = qatar_oil_I_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = qatar_oil_II
		}
	}

	#Qatar: Develop Dukhan Oil Field
	qatar_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 765
			}
		}

		visible = {
			OR = {
				controls_state = 765
				any_country = {
					is_subject_of = ROOT
					controls_state = 765
				}
				ROOT = {
					has_resources_rights = {
						state = 765
						resources = { oil }
					}
				}
			}
			765 = {
				NOT = {
					has_state_flag = qatar_oil_II_flag
				}
				has_state_flag = qatar_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					765 = {
						has_resistance = yes
					}
				}
				765 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = qatar_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			765 = {
				set_state_flag = qatar_oil_II_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Papúa Nueva Guinea: Open Klamono Oil Field
	papua_nueva_guinea_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 669
			}
		}

		visible = {
			OR = {
				controls_state = 669
				any_country = {
					is_subject_of = ROOT
					controls_state = 669
				}
				ROOT = {
					has_resources_rights = {
						state = 669
						resources = { oil }
					}
				}
			}
			669 = {
				NOT = {
					has_state_flag = papua_nueva_guinea_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					669 = {
						has_resistance = yes
					}
				}
				669 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = papua_nueva_guinea_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			669 = {
				set_state_flag = papua_nueva_guinea_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = papua_nueva_guinea_oil_II
		}
	}

	#Papúa Nueva Guinea: Develop Klamono Oil Field
	papua_nueva_guinea_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 669
			}
		}

		visible = {
			OR = {
				controls_state = 669
				any_country = {
					is_subject_of = ROOT
					controls_state = 669
				}
				ROOT = {
					has_resources_rights = {
						state = 669
						resources = { oil }
					}
				}
			}
			669 = {
				NOT = {
					has_state_flag = papua_nueva_guinea_oil_II_flag
				}
				has_state_flag = papua_nueva_guinea_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					669 = {
						has_resistance = yes
					}
				}
				669 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = papua_nueva_guinea_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			669 = {
				set_state_flag = papua_nueva_guinea_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Pakistan: Expand Potohar Oil Fields
	pakistan_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 440
			}
		}

		visible = {
			OR = {
				controls_state = 440
				any_country = {
					is_subject_of = ROOT
					controls_state = 440
				}
				ROOT = {
					has_resources_rights = {
						state = 440
						resources = { oil }
					}
				}
			}
			440 = {
				NOT = {
					has_state_flag = pakistan_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					440 = {
						has_resistance = yes
					}
				}
				440 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = pakistan_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			440 = {
				set_state_flag = pakistan_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Pakistan: Open Sui Oil Fields
	pakistan_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 445
			}
		}

		visible = {
			OR = {
				controls_state = 445
				any_country = {
					is_subject_of = ROOT
					controls_state = 445
				}
				ROOT = {
					has_resources_rights = {
						state = 445
						resources = { oil }
					}
				}
			}
			445 = {
				NOT = {
					has_state_flag = pakistan_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					445 = {
						has_resistance = yes
					}
				}
				445 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = pakistan_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			445 = {
				set_state_flag = pakistan_oil_II_flag
				add_resource = {
					type = oil
					amount = 7
				}
			}
		}
	}

	#Japón: Develop Niigata Oil Fields
	japon_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 533
			}
		}

		visible = {
			OR = {
				controls_state = 533
				any_country = {
					is_subject_of = ROOT
					controls_state = 533
				}
				ROOT = {
					has_resources_rights = {
						state = 533
						resources = { oil }
					}
				}
			}
			533 = {
				NOT = {
					has_state_flag = japon_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					533 = {
						has_resistance = yes
					}
				}
				533 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = japon_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			533 = {
				set_state_flag = japon_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Japón: Develop Akita Oil Fields
	japon_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 534
			}
		}

		visible = {
			OR = {
				controls_state = 534
				any_country = {
					is_subject_of = ROOT
					controls_state = 534
				}
				ROOT = {
					has_resources_rights = {
						state = 534
						resources = { oil }
					}
				}
			}
			534 = {
				NOT = {
					has_state_flag = japon_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					534 = {
						has_resistance = yes
					}
				}
				534 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = japon_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			534 = {
				set_state_flag = japon_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Israel: Open Southern Coastal Plain Oil Field
	israel_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 454
			}
		}

		visible = {
			OR = {
				controls_state = 454
				any_country = {
					is_subject_of = ROOT
					controls_state = 454
				}
				ROOT = {
					has_resources_rights = {
						state = 454
						resources = { oil }
					}
				}
			}
			454 = {
				NOT = {
					has_state_flag = israel_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					454 = {
						has_resistance = yes
					}
				}
				454 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = israel_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			454 = {
				set_state_flag = israel_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Mongolia: Open Zuunbayan Oil Field
	mongolia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 817
			}
		}

		visible = {
			OR = {
				controls_state = 817
				any_country = {
					is_subject_of = ROOT
					controls_state = 817
				}
				ROOT = {
					has_resources_rights = {
						state = 817
						resources = { oil }
					}
				}
			}
			817 = {
				NOT = {
					has_state_flag = mongolia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					817 = {
						has_resistance = yes
					}
				}
				817 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = mongolia_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			817 = {
				set_state_flag = mongolia_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Rumanía: Develop Ploiești Oil Field
	rumania_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 46
			}
		}

		visible = {
			OR = {
				controls_state = 46
				any_country = {
					is_subject_of = ROOT
					controls_state = 46
				}
				ROOT = {
					has_resources_rights = {
						state = 46
						resources = { oil }
					}
				}
			}
			46 = {
				NOT = {
					has_state_flag = rumania_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					46 = {
						has_resistance = yes
					}
				}
				46 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = rumania_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			46 = {
				set_state_flag = rumania_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Rumanía: Open Oil Fields in [81.GetName]
	rumania_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 81
			}
		}

		visible = {
			OR = {
				controls_state = 81
				any_country = {
					is_subject_of = ROOT
					controls_state = 81
				}
				ROOT = {
					has_resources_rights = {
						state = 81
						resources = { oil }
					}
				}
			}
			81 = {
				NOT = {
					has_state_flag = rumania_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					81 = {
						has_resistance = yes
					}
				}
				81 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = rumania_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			81 = {
				set_state_flag = rumania_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Rumanía: Develop [79.GetName] Oil Fields
	rumania_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 79
			}
		}

		visible = {
			OR = {
				controls_state = 79
				any_country = {
					is_subject_of = ROOT
					controls_state = 79
				}
				ROOT = {
					has_resources_rights = {
						state = 79
						resources = { oil }
					}
				}
			}
			79 = {
				NOT = {
					has_state_flag = rumania_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					79 = {
						has_resistance = yes
					}
				}
				79 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = rumania_oil_III
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			79 = {
				set_state_flag = rumania_oil_III_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Hungría: Expand Zala Oil Fields
	hungria_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 155
			}
		}

		visible = {
			OR = {
				controls_state = 155
				any_country = {
					is_subject_of = ROOT
					controls_state = 155
				}
				ROOT = {
					has_resources_rights = {
						state = 155
						resources = { oil }
					}
				}
			}
			155 = {
				NOT = {
					has_state_flag = hungria_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					155 = {
						has_resistance = yes
					}
				}
				155 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = hungria_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			155 = {
				set_state_flag = hungria_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = hungria_oil_II
		}
	}

	#Hungría: Develop Zala Oil Fields
	hungria_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 155
			}
		}

		visible = {
			OR = {
				controls_state = 155
				any_country = {
					is_subject_of = ROOT
					controls_state = 155
				}
				ROOT = {
					has_resources_rights = {
						state = 155
						resources = { oil }
					}
				}
			}
			155 = {
				NOT = {
					has_state_flag = hungria_oil_II_flag
				}
				has_state_flag = hungria_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					155 = {
						has_resistance = yes
					}
				}
				155 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = hungria_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			155 = {
				set_state_flag = hungria_oil_II_flag
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}
	}

	#Austria: Expand Zistersdorf Oil Field
	austria_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 4
			}
		}

		visible = {
			OR = {
				controls_state = 4
				any_country = {
					is_subject_of = ROOT
					controls_state = 4
				}
				ROOT = {
					has_resources_rights = {
						state = 4
						resources = { oil }
					}
				}
			}
			4 = {
				NOT = {
					has_state_flag = austria_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					4 = {
						has_resistance = yes
					}
				}
				4 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = austria_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			4 = {
				set_state_flag = austria_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = austria_oil_II
		}
	}

	#Austria: Develop Zistersdorf Oil Field
	austria_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 4
			}
		}

		visible = {
			OR = {
				controls_state = 4
				any_country = {
					is_subject_of = ROOT
					controls_state = 4
				}
				ROOT = {
					has_resources_rights = {
						state = 4
						resources = { oil }
					}
				}
			}
			4 = {
				NOT = {
					has_state_flag = austria_oil_II_flag
				}
				has_state_flag = austria_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					4 = {
						has_resistance = yes
					}
				}
				4 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = austria_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			4 = {
				set_state_flag = austria_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = austria_oil_III
		}
	}

	#Austria: Open Matzen Oil Field
	austria_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 4
			}
		}

		visible = {
			OR = {
				controls_state = 4
				any_country = {
					is_subject_of = ROOT
					controls_state = 4
				}
				ROOT = {
					has_resources_rights = {
						state = 4
						resources = { oil }
					}
				}
			}
			4 = {
				NOT = {
					has_state_flag = austria_oil_III_flag
				}
				has_state_flag = austria_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					4 = {
						has_resistance = yes
					}
				}
				4 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = austria_oil_III
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			4 = {
				set_state_flag = austria_oil_III_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#Alemania: Expand [59.GetName] Oil Fields
	alemania_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 59
			}
		}

		visible = {
			OR = {
				controls_state = 59
				any_country = {
					is_subject_of = ROOT
					controls_state = 59
				}
				ROOT = {
					has_resources_rights = {
						state = 59
						resources = { oil }
					}
				}
			}
			59 = {
				NOT = {
					has_state_flag = alemania_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					59 = {
						has_resistance = yes
					}
				}
				59 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = alemania_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			59 = {
				set_state_flag = alemania_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Alemania: Open Emsland Oil Fields
	alemania_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 56
			}
		}

		visible = {
			OR = {
				controls_state = 56
				any_country = {
					is_subject_of = ROOT
					controls_state = 56
				}
				ROOT = {
					has_resources_rights = {
						state = 56
						resources = { oil }
					}
				}
			}
			56 = {
				NOT = {
					has_state_flag = alemania_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					56 = {
						has_resistance = yes
					}
				}
				56 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = alemania_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			56 = {
				set_state_flag = alemania_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Alemania: Develop [58.GetName] Oil Fields
	alemania_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 58
			}
		}

		visible = {
			OR = {
				controls_state = 58
				any_country = {
					is_subject_of = ROOT
					controls_state = 58
				}
				ROOT = {
					has_resources_rights = {
						state = 58
						resources = { oil }
					}
				}
			}
			58 = {
				NOT = {
					has_state_flag = alemania_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					58 = {
						has_resistance = yes
					}
				}
				58 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = alemania_oil_III
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			58 = {
				set_state_flag = alemania_oil_III_flag
				add_resource = {
					type = oil
					amount = 15
				}
			}
		}
	}

	#Francia: Open Parentis-en-Born Oil Field
	francia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 19
			}
		}

		visible = {
			OR = {
				controls_state = 19
				any_country = {
					is_subject_of = ROOT
					controls_state = 19
				}
				ROOT = {
					has_resources_rights = {
						state = 19
						resources = { oil }
					}
				}
			}
			19 = {
				NOT = {
					has_state_flag = francia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					19 = {
						has_resistance = yes
					}
				}
				19 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = francia_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			19 = {
				set_state_flag = francia_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Francia: Open Seine-et-Marne Oil Fields
	francia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 16
			}
		}

		visible = {
			OR = {
				controls_state = 16
				any_country = {
					is_subject_of = ROOT
					controls_state = 16
				}
				ROOT = {
					has_resources_rights = {
						state = 16
						resources = { oil }
					}
				}
			}
			16 = {
				NOT = {
					has_state_flag = francia_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					16 = {
						has_resistance = yes
					}
				}
				16 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = francia_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			16 = {
				set_state_flag = francia_oil_II_flag
				add_resource = {
					type = oil
					amount = 15
				}
			}
		}
	}

	#Italia: Develop Po Valley Oil Fields
	italia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 161
			}
		}

		visible = {
			OR = {
				controls_state = 161
				any_country = {
					is_subject_of = ROOT
					controls_state = 161
				}
				ROOT = {
					has_resources_rights = {
						state = 161
						resources = { oil }
					}
				}
			}
			161 = {
				NOT = {
					has_state_flag = italia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					161 = {
						has_resistance = yes
					}
				}
				161 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = italia_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			161 = {
				set_state_flag = italia_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Italia: Open Ragusa and Gela Oil Fields
	italia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 115
			}
		}

		visible = {
			OR = {
				controls_state = 115
				any_country = {
					is_subject_of = ROOT
					controls_state = 115
				}
				ROOT = {
					has_resources_rights = {
						state = 115
						resources = { oil }
					}
				}
			}
			115 = {
				NOT = {
					has_state_flag = italia_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					115 = {
						has_resistance = yes
					}
				}
				115 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = italia_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			115 = {
				set_state_flag = italia_oil_II_flag
				add_resource = {
					type = oil
					amount = 15
				}
			}
		}
	}

	#Países Bajos: Open Schoonebeek Oil Field
	paises_bajos_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 36
			}
		}

		visible = {
			OR = {
				controls_state = 36
				any_country = {
					is_subject_of = ROOT
					controls_state = 36
				}
				ROOT = {
					has_resources_rights = {
						state = 36
						resources = { oil }
					}
				}
			}
			36 = {
				NOT = {
					has_state_flag = paises_bajos_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					36 = {
						has_resistance = yes
					}
				}
				36 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = paises_bajos_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			36 = {
				set_state_flag = paises_bajos_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = paises_bajos_oil_II
		}
	}

	#Países Bajos: Expand Schoonebeek Oil Field
	paises_bajos_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 36
			}
		}

		visible = {
			OR = {
				controls_state = 36
				any_country = {
					is_subject_of = ROOT
					controls_state = 36
				}
				ROOT = {
					has_resources_rights = {
						state = 36
						resources = { oil }
					}
				}
			}
			36 = {
				NOT = {
					has_state_flag = paises_bajos_oil_II_flag
				}
				has_state_flag = paises_bajos_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					36 = {
						has_resistance = yes
					}
				}
				36 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = paises_bajos_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			36 = {
				set_state_flag = paises_bajos_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Países Bajos: Open Rijswijk Oil Field
	paises_bajos_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 7
			}
		}

		visible = {
			OR = {
				controls_state = 7
				any_country = {
					is_subject_of = ROOT
					controls_state = 7
				}
				ROOT = {
					has_resources_rights = {
						state = 7
						resources = { oil }
					}
				}
			}
			7 = {
				NOT = {
					has_state_flag = paises_bajos_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					7 = {
						has_resistance = yes
					}
				}
				7 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = paises_bajos_oil_III
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			7 = {
				set_state_flag = paises_bajos_oil_III_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Checos: Develop [75.GetName] Oil Fields
	checos_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 75
			}
		}

		visible = {
			OR = {
				controls_state = 75
				any_country = {
					is_subject_of = ROOT
					controls_state = 75
				}
				ROOT = {
					has_resources_rights = {
						state = 75
						resources = { oil }
					}
				}
			}
			75 = {
				NOT = {
					has_state_flag = checos_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					75 = {
						has_resistance = yes
					}
				}
				75 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = checos_oil_I
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			75 = {
				set_state_flag = checos_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#URSS: Expand Grozny Oil Field
	urss_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 821
			}
		}

		visible = {
			OR = {
				controls_state = 821
				any_country = {
					is_subject_of = ROOT
					controls_state = 821
				}
				ROOT = {
					has_resources_rights = {
						state = 821
						resources = { oil }
					}
				}
			}
			821 = {
				NOT = {
					has_state_flag = urss_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					821 = {
						has_resistance = yes
					}
				}
				821 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			821 = {
				set_state_flag = urss_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#URSS: Expand [229.GetName] Oil Fields
	urss_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 229
			}
		}

		visible = {
			OR = {
				controls_state = 229
				any_country = {
					is_subject_of = ROOT
					controls_state = 229
				}
				ROOT = {
					has_resources_rights = {
						state = 229
						resources = { oil }
					}
				}
			}
			229 = {
				NOT = {
					has_state_flag = urss_oil_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					229 = {
						has_resistance = yes
					}
				}
				229 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_II
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			229 = {
				set_state_flag = urss_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#URSS: Expand [406.GetName] Oil Fields
	urss_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 406
			}
		}

		visible = {
			OR = {
				controls_state = 406
				any_country = {
					is_subject_of = ROOT
					controls_state = 406
				}
				ROOT = {
					has_resources_rights = {
						state = 406
						resources = { oil }
					}
				}
			}
			406 = {
				NOT = {
					has_state_flag = urss_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					406 = {
						has_resistance = yes
					}
				}
				406 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_III
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			406 = {
				set_state_flag = urss_oil_III_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#URSS: Open Romashkino Oil Field
	urss_oil_IV = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 249
			}
		}

		visible = {
			OR = {
				controls_state = 249
				any_country = {
					is_subject_of = ROOT
					controls_state = 249
				}
				ROOT = {
					has_resources_rights = {
						state = 249
						resources = { oil }
					}
				}
			}
			249 = {
				NOT = {
					has_state_flag = urss_oil_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					249 = {
						has_resistance = yes
					}
				}
				249 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_IV
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 7
		}

		cost = 60
		days_remove = 90

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			249 = {
				set_state_flag = urss_oil_IV_flag
				add_resource = {
					type = oil
					amount = 35
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = urss_oil_VI
			unlock_decision_tooltip = urss_oil_VII
			unlock_decision_tooltip = urss_oil_VIII
		}
	}

	#URSS: Open [259.GetName] Oil Fields
	urss_oil_V = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 259
			}
		}

		visible = {
			OR = {
				controls_state = 259
				any_country = {
					is_subject_of = ROOT
					controls_state = 259
				}
				ROOT = {
					has_resources_rights = {
						state = 259
						resources = { oil }
					}
				}
			}
			259 = {
				NOT = {
					has_state_flag = urss_oil_V_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					259 = {
						has_resistance = yes
					}
				}
				259 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_V
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			259 = {
				set_state_flag = urss_oil_V_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#URSS: Expand the Romashkino Oil Field Southwards
	urss_oil_VI = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 652
			}
		}

		visible = {
			OR = {
				controls_state = 652
				any_country = {
					is_subject_of = ROOT
					controls_state = 652
				}
				ROOT = {
					has_resources_rights = {
						state = 652
						resources = { oil }
					}
				}
			}
			652 = {
				NOT = {
					has_state_flag = urss_oil_VI_flag
				}
				has_state_flag = urss_oil_IV_flag
			}
		}

		available = {
			if = {
				limit = {
					652 = {
						has_resistance = yes
					}
				}
				652 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_VI
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 3
		}

		cost = 30
		days_remove = 60

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			652 = {
				set_state_flag = urss_oil_VI_flag
				add_resource = {
					type = oil
					amount = 20
				}
			}
		}
	}

	#URSS: Expand the Romashkino Oil Field Eastwards
	urss_oil_VII = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 651
			}
		}

		visible = {
			OR = {
				controls_state = 651
				any_country = {
					is_subject_of = ROOT
					controls_state = 651
				}
				ROOT = {
					has_resources_rights = {
						state = 651
						resources = { oil }
					}
				}
			}
			651 = {
				NOT = {
					has_state_flag = urss_oil_VII_flag
				}
				has_state_flag = urss_oil_IV_flag
			}
		}

		available = {
			if = {
				limit = {
					651 = {
						has_resistance = yes
					}
				}
				651 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_VII
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			651 = {
				set_state_flag = urss_oil_VII_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#URSS: Expand the Romashkino Oil Field Westwards
	urss_oil_VIII = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 251
			}
		}

		visible = {
			OR = {
				controls_state = 251
				any_country = {
					is_subject_of = ROOT
					controls_state = 251
				}
				ROOT = {
					has_resources_rights = {
						state = 251
						resources = { oil }
					}
				}
			}
			251 = {
				NOT = {
					has_state_flag = urss_oil_VIII_flag
				}
				has_state_flag = urss_oil_IV_flag
			}
		}

		available = {
			if = {
				limit = {
					251 = {
						has_resistance = yes
					}
				}
				251 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = urss_oil_VIII
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			251 = {
				set_state_flag = urss_oil_VIII_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Yugoslavia: Expand Moslavina and Sisak Oil Fields
	yugoslavia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 109
			}
		}

		visible = {
			OR = {
				controls_state = 109
				any_country = {
					is_subject_of = ROOT
					controls_state = 109
				}
				ROOT = {
					has_resources_rights = {
						state = 109
						resources = { oil }
					}
				}
			}
			109 = {
				NOT = {
					has_state_flag = yugoslavia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					109 = {
						has_resistance = yes
					}
				}
				109 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = yugoslavia_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			109 = {
				set_state_flag = yugoslavia_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = yugoslavia_oil_II
		}
	}

	#Yugoslavia: Develop Moslavina and Sisak Oil Fields
	yugoslavia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 109
			}
		}

		visible = {
			OR = {
				controls_state = 109
				any_country = {
					is_subject_of = ROOT
					controls_state = 109
				}
				ROOT = {
					has_resources_rights = {
						state = 109
						resources = { oil }
					}
				}
			}
			109 = {
				NOT = {
					has_state_flag = yugoslavia_oil_II_flag
				}
				has_state_flag = yugoslavia_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					109 = {
						has_resistance = yes
					}
				}
				109 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = yugoslavia_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			109 = {
				set_state_flag = yugoslavia_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Yugoslavia: Open Jermenovci Oil Field
	yugoslavia_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 764
			}
		}

		visible = {
			OR = {
				controls_state = 764
				any_country = {
					is_subject_of = ROOT
					controls_state = 764
				}
				ROOT = {
					has_resources_rights = {
						state = 764
						resources = { oil }
					}
				}
			}
			764 = {
				NOT = {
					has_state_flag = yugoslavia_oil_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					764 = {
						has_resistance = yes
					}
				}
				764 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = yugoslavia_oil_III
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			764 = {
				set_state_flag = yugoslavia_oil_III_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Albania: Expand Patos-Marinëz Oil Field
	albania_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 44
			}
		}

		visible = {
			OR = {
				controls_state = 44
				any_country = {
					is_subject_of = ROOT
					controls_state = 44
				}
				ROOT = {
					has_resources_rights = {
						state = 44
						resources = { oil }
					}
				}
			}
			44 = {
				NOT = {
					has_state_flag = albania_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					44 = {
						has_resistance = yes
					}
				}
				44 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = albania_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			44 = {
				set_state_flag = albania_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = albania_oil_II
		}
	}

	#Albania: Develop Patos-Marinëz Oil Field
	albania_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 44
			}
		}

		visible = {
			OR = {
				controls_state = 44
				any_country = {
					is_subject_of = ROOT
					controls_state = 44
				}
				ROOT = {
					has_resources_rights = {
						state = 44
						resources = { oil }
					}
				}
			}
			44 = {
				NOT = {
					has_state_flag = albania_oil_II_flag
				}
				has_state_flag = albania_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					44 = {
						has_resistance = yes
					}
				}
				44 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = albania_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			44 = {
				set_state_flag = albania_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Bulgaria: Open [11597.GetName] Oil Field
	bulgaria_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 77
			}
		}

		visible = {
			OR = {
				controls_state = 77
				any_country = {
					is_subject_of = ROOT
					controls_state = 77
				}
				ROOT = {
					has_resources_rights = {
						state = 77
						resources = { oil }
					}
				}
			}
			77 = {
				NOT = {
					has_state_flag = bulgaria_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					77 = {
						has_resistance = yes
					}
				}
				77 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bulgaria_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			77 = {
				set_state_flag = bulgaria_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Turquía: Open Raman and Garzan Oil Fields
	turquia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 350
			}
		}

		visible = {
			OR = {
				controls_state = 350
				any_country = {
					is_subject_of = ROOT
					controls_state = 350
				}
				ROOT = {
					has_resources_rights = {
						state = 350
						resources = { oil }
					}
				}
			}
			350 = {
				NOT = {
					has_state_flag = turquia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					350 = {
						has_resistance = yes
					}
				}
				350 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = turquia_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			350 = {
				set_state_flag = turquia_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = turquia_oil_II
		}
	}

	#Turquía: Expand Raman and Garzan Oil Fields
	turquia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 350
			}
		}

		visible = {
			OR = {
				controls_state = 350
				any_country = {
					is_subject_of = ROOT
					controls_state = 350
				}
				ROOT = {
					has_resources_rights = {
						state = 350
						resources = { oil }
					}
				}
			}
			350 = {
				NOT = {
					has_state_flag = turquia_oil_II_flag
				}
				has_state_flag = turquia_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					350 = {
						has_resistance = yes
					}
				}
				350 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = turquia_oil_II
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			350 = {
				set_state_flag = turquia_oil_II_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = turquia_oil_III
		}
	}

	#Turquía: Develop Raman and Garzan Oil Fields
	turquia_oil_III = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 350
			}
		}

		visible = {
			OR = {
				controls_state = 350
				any_country = {
					is_subject_of = ROOT
					controls_state = 350
				}
				ROOT = {
					has_resources_rights = {
						state = 350
						resources = { oil }
					}
				}
			}
			350 = {
				NOT = {
					has_state_flag = turquia_oil_III_flag
				}
				has_state_flag = turquia_oil_II_flag
			}
		}

		available = {
			if = {
				limit = {
					350 = {
						has_resistance = yes
					}
				}
				350 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = turquia_oil_III
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			350 = {
				set_state_flag = turquia_oil_III_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Reino Unido: Open Eakring Oil Field
	reino_unido_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 129
			}
		}

		visible = {
			OR = {
				controls_state = 129
				any_country = {
					is_subject_of = ROOT
					controls_state = 129
				}
				ROOT = {
					has_resources_rights = {
						state = 129
						resources = { oil }
					}
				}
			}
			129 = {
				NOT = {
					has_state_flag = reino_unido_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					129 = {
						has_resistance = yes
					}
				}
				129 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = reino_unido_oil_I
				}
			}
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			129 = {
				set_state_flag = reino_unido_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Suecia: Open Kvarntorp Oil Shale
	suecia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 141
			}
		}

		visible = {
			OR = {
				controls_state = 141
				any_country = {
					is_subject_of = ROOT
					controls_state = 141
				}
				ROOT = {
					has_resources_rights = {
						state = 141
						resources = { oil }
					}
				}
			}
			141 = {
				NOT = {
					has_state_flag = suecia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					141 = {
						has_resistance = yes
					}
				}
				141 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = suecia_oil_I
				}
			}
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			141 = {
				set_state_flag = suecia_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#España: Expand Puertollano Oil Shale
	espana_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 175
			}
		}

		visible = {
			OR = {
				controls_state = 175
				any_country = {
					is_subject_of = ROOT
					controls_state = 175
				}
				ROOT = {
					has_resources_rights = {
						state = 175
						resources = { oil }
					}
				}
			}
			175 = {
				NOT = {
					has_state_flag = espana_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					175 = {
						has_resistance = yes
					}
				}
				175 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = espana_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			175 = {
				set_state_flag = espana_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}

	#Libia: Open Zelten Oil Field
	libia_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 662
			}
		}

		visible = {
			OR = {
				controls_state = 662
				any_country = {
					is_subject_of = ROOT
					controls_state = 662
				}
				ROOT = {
					has_resources_rights = {
						state = 662
						resources = { oil }
					}
				}
			}
			662 = {
				NOT = {
					has_state_flag = libia_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					662 = {
						has_resistance = yes
					}
				}
				662 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = libia_oil_I
				}
			}
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			662 = {
				set_state_flag = libia_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = libia_oil_II
		}
	}

	#Libia: Expand Zelten Oil Field
	libia_oil_II = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 662
			}
		}

		visible = {
			OR = {
				controls_state = 662
				any_country = {
					is_subject_of = ROOT
					controls_state = 662
				}
				ROOT = {
					has_resources_rights = {
						state = 662
						resources = { oil }
					}
				}
			}
			662 = {
				NOT = {
					has_state_flag = libia_oil_II_flag
				}
				has_state_flag = libia_oil_I_flag
			}
		}

		available = {
			if = {
				limit = {
					662 = {
						has_resistance = yes
					}
				}
				662 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = libia_oil_II
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			662 = {
				set_state_flag = libia_oil_II_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Emiratos Arabes Unidos: Open Murban Bab Oil Field
	emiratos_arabes_unidos_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 658
			}
		}

		visible = {
			OR = {
				controls_state = 658
				any_country = {
					is_subject_of = ROOT
					controls_state = 658
				}
				ROOT = {
					has_resources_rights = {
						state = 658
						resources = { oil }
					}
				}
			}
			658 = {
				NOT = {
					has_state_flag = emiratos_arabes_unidos_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					658 = {
						has_resistance = yes
					}
				}
				658 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = emiratos_arabes_unidos_oil_I
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			658 = {
				set_state_flag = emiratos_arabes_unidos_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Omán: Open Yibal and Fahud Oil Field
	oman_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1015
			}
		}

		visible = {
			OR = {
				controls_state = 1015
				any_country = {
					is_subject_of = ROOT
					controls_state = 1015
				}
				ROOT = {
					has_resources_rights = {
						state = 1015
						resources = { oil }
					}
				}
			}
			1015 = {
				NOT = {
					has_state_flag = oman_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1015 = {
						has_resistance = yes
					}
				}
				1015 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = oman_oil_I
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			1015 = {
				set_state_flag = oman_oil_I_flag
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}

	#Siria: Open Suwaydiyah Oil Field
	siria_oil_I = {

		icon = oil
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 680
			}
		}

		visible = {
			OR = {
				controls_state = 680
				any_country = {
					is_subject_of = ROOT
					controls_state = 680
				}
				ROOT = {
					has_resources_rights = {
						state = 680
						resources = { oil }
					}
				}
			}
			680 = {
				NOT = {
					has_state_flag = siria_oil_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					680 = {
						has_resistance = yes
					}
				}
				680 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = siria_oil_I
				}
			}
			has_tech = excavation5
			num_of_civilian_factories_available_for_projects > 1
		}

		cost = 15
		days_remove = 30

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.5
				has_political_power < 80
			}
			modifier = {
				factor = 5
				has_political_power > 200
			}
			modifier = {
				factor = 10
				has_resources_in_country = {
					resource = oil
					amount < 1
				}
			}
		}

		remove_effect = {
			680 = {
				set_state_flag = siria_oil_I_flag
				add_resource = {
					type = oil
					amount = 5
				}
			}
		}
	}
}