prospect_for_resources = {

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

	#Algeria: Expand Kenadsa Coal Basin
	algeria_coal_I = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			513 = {
				NOT = {
					has_state_flag = algeria_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			513 = {
				set_state_flag = algeria_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Congo Belga: Develop Luena Coal Mines
	congo_belga_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 889
			}
		}

		visible = {
			OR = {
				controls_state = 889
				any_country = {
					is_subject_of = ROOT
					controls_state = 889
				}
				ROOT = {
					has_resources_rights = {
						state = 889
						resources = { coal }
					}
				}
			} 
			889 = {
				NOT = {
					has_state_flag = congo_belga_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			889 = {
				set_state_flag = congo_belga_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Marruecos Frances: Expand Jerada Anthracite Mines
	marruecos_coal_I = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			461 = {
				NOT = {
					has_state_flag = marruecos_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			461 = {
				set_state_flag = marruecos_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				increase_state_category = yes
			}
		}
	}

	#Mozambique: Expand Moatize Coal Basin
	mozambique_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 896
			}
		}

		visible = {
			OR = {
				controls_state = 896
				any_country = {
					is_subject_of = ROOT
					controls_state = 896
				}
				ROOT = {
					has_resources_rights = {
						state = 896
						resources = { coal }
					}
				}
			} 
			896 = {
				NOT = {
					has_state_flag = mozambique_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			896 = {
				set_state_flag = mozambique_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Nigeria: Develop Enugu Coalfield
	nigeria_coal_I = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			900 = {
				NOT = {
					has_state_flag = nigeria_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			900 = {
				set_state_flag = nigeria_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				increase_state_category = yes
			}
		}
	}

	#Rhodesia del Sur: Develop Wankie Coalfield
	rhodesia_sur_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 545
			}
		}

		visible = {
			OR = {
				controls_state = 545
				any_country = {
					is_subject_of = ROOT
					controls_state = 545
				}
				ROOT = {
					has_resources_rights = {
						state = 545
						resources = { coal }
					}
				}
			} 
			545 = {
				NOT = {
					has_state_flag = rhodesia_sur_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			545 = {
				set_state_flag = rhodesia_sur_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				increase_state_category = yes
			}
		}
	}

	#Sudafrica: Expand Witbank Coal Basin
	sudafrica_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 275
			}
		}

		visible = {
			OR = {
				controls_state = 275
				any_country = {
					is_subject_of = ROOT
					controls_state = 275
				}
				ROOT = {
					has_resources_rights = {
						state = 275
						resources = { coal }
					}
				}
			} 
			275 = {
				NOT = {
					has_state_flag = sudafrica_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			275 = {
				set_state_flag = sudafrica_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = sudafrica_coal_II
		}
	}

	#Sudafrica: Open Sigma Coal Mine
	sudafrica_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 275
			}
		}

		visible = {
			OR = {
				controls_state = 275
				any_country = {
					is_subject_of = ROOT
					controls_state = 275
				}
				ROOT = {
					has_resources_rights = {
						state = 275
						resources = { coal }
					}
				}
			}
			275 = {
				NOT = {
					has_state_flag = sudafrica_coal_II_flag
				}
				has_state_flag = sudafrica_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					275 = {
						has_resistance = yes
					}
				}
				275 = {
					resistance < 15
					compliance > 40
				}
			}

			NOT = {
				any_country = {
					has_decision = sudafrica_coal_II
				}
			}
			
			num_of_civilian_factories_available_for_projects > 1
			has_tech = excavation4
			has_tech = advanced_oil_processing
		}

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

		remove_effect = {
			275 = {
				set_state_flag = sudafrica_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			random_owned_controlled_state = {
				prioritize = { 275 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
		}
	}

	#Sudafrica: Expand Vryheid Coal Basim
	sudafrica_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 719
			}
		}

		visible = {
			OR = {
				controls_state = 719
				any_country = {
					is_subject_of = ROOT
					controls_state = 719
				}
				ROOT = {
					has_resources_rights = {
						state = 719
						resources = { coal }
					}
				}
			} 
			719 = {
				NOT = {
					has_state_flag = sudafrica_coal_III_flag
				}
			}
		}

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

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

		remove_effect = {
			719 = {
				set_state_flag = sudafrica_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Tanzania: Prospect the Ruhuhu Basin
	tanzania_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 546
			}
		}

		visible = {
			OR = {
				controls_state = 546
				any_country = {
					is_subject_of = ROOT
					controls_state = 546
				}
				ROOT = {
					has_resources_rights = {
						state = 546
						resources = { coal }
					}
				}
			} 
			546 = {
				NOT = {
					has_state_flag = tanzania_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			546 = {
				set_state_flag = tanzania_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Mexico: Expand Sabinas Coke Basin
	mexico_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 480
			}
		}

		visible = {
			OR = {
				controls_state = 480
				any_country = {
					is_subject_of = ROOT
					controls_state = 480
				}
				ROOT = {
					has_resources_rights = {
						state = 480
						resources = { coal }
					}
				}
			} 
			480 = {
				NOT = {
					has_state_flag = mexico_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			480 = {
				set_state_flag = mexico_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Brasil: Expand Santa Catarina Mines
	brasil_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 503
			}
		}

		visible = {
			OR = {
				controls_state = 503
				any_country = {
					is_subject_of = ROOT
					controls_state = 503
				}
				ROOT = {
					has_resources_rights = {
						state = 503
						resources = { coal }
					}
				}
			} 
			503 = {
				NOT = {
					has_state_flag = brasil_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			503 = {
				set_state_flag = brasil_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Brasil: Prospect Charqueadas and Candiota Basins
	brasil_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 502
			}
		}

		visible = {
			OR = {
				controls_state = 502
				any_country = {
					is_subject_of = ROOT
					controls_state = 502
				}
				ROOT = {
					has_resources_rights = {
						state = 502
						resources = { coal }
					}
				}
			} 
			502 = {
				NOT = {
					has_state_flag = brasil_coal_II_flag
				}
			}
		}

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

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

		remove_effect = {
			502 = {
				set_state_flag = brasil_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Chile: Deep Shaft Investment in Lota-Schwager
	chile_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 279
			}
		}

		visible = {
			OR = {
				controls_state = 279
				any_country = {
					is_subject_of = ROOT
					controls_state = 279
				}
				ROOT = {
					has_resources_rights = {
						state = 279
						resources = { coal }
					}
				}
			} 
			279 = {
				NOT = {
					has_state_flag = chile_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			279 = {
				set_state_flag = chile_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Colombia: Expand Sinifaná Coal Basin
	colombia_coal_I = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			493 = {
				NOT = {
					has_state_flag = colombia_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			493 = {
				set_state_flag = colombia_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#Colombia: Develop Boyacá Coal Basin
	colombia_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 306
			}
		}

		visible = {
			OR = {
				controls_state = 306
				any_country = {
					is_subject_of = ROOT
					controls_state = 306
				}
				ROOT = {
					has_resources_rights = {
						state = 306
						resources = { coal }
					}
				}
			} 
			306 = {
				NOT = {
					has_state_flag = colombia_coal_II_flag
				}
			}
		}

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

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

		remove_effect = {
			306 = {
				set_state_flag = colombia_coal_II_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#Argentina: Prospect Río Turbio Coalfield
	argentina_coal_I = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			954 = {
				NOT = {
					has_state_flag = argentina_coal_I_flag
				}
			}
		}

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

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

		remove_effect = {
			954 = {
				set_state_flag = argentina_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = argentina_coal_II
		}
	}

	#Argentina: Expand Río Turbio Coalfield
	argentina_coal_II = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			954 = {
				NOT = {
					has_state_flag = argentina_coal_II_flag
				}
				has_state_flag = argentina_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					954 = {
						has_resistance = yes
					}
				}
				954 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = argentina_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			954 = {
				set_state_flag = argentina_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#China: Expand Fushun Coal Mine
	china_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 716
			}
		}

		visible = {
			OR = {
				controls_state = 716
				any_country = {
					is_subject_of = ROOT
					controls_state = 716
				}
				ROOT = {
					has_resources_rights = {
						state = 716
						resources = { coal }
					}
				}
			} 
			716 = {
				NOT = {
					has_state_flag = china_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					716 = {
						has_resistance = yes
					}
				}
				716 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			716 = {
				set_state_flag = china_coal_I_flag
				add_resource = {
					type = coal 
					amount = 15
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = china_coal_VII
		}
	}

	#China: Expand Kailan Coal Basin
	china_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 608
			}
		}

		visible = {
			OR = {
				controls_state = 608
				any_country = {
					is_subject_of = ROOT
					controls_state = 608
				}
				ROOT = {
					has_resources_rights = {
						state = 608
						resources = { coal }
					}
				}
			} 
			608 = {
				NOT = {
					has_state_flag = china_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					608 = {
						has_resistance = yes
					}
				}
				608 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_II
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			608 = {
				set_state_flag = china_coal_II_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#China: Expand Kailan Coal Basin
	china_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 609
			}
		}

		visible = {
			OR = {
				controls_state = 609
				any_country = {
					is_subject_of = ROOT
					controls_state = 609
				}
				ROOT = {
					has_resources_rights = {
						state = 609
						resources = { coal }
					}
				}
			} 
			609 = {
				NOT = {
					has_state_flag = china_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					609 = {
						has_resistance = yes
					}
				}
				609 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_III
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			609 = {
				set_state_flag = china_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#China: Expand Datong Coal Basin
	china_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 615
			}
		}

		visible = {
			OR = {
				controls_state = 615
				any_country = {
					is_subject_of = ROOT
					controls_state = 615
				}
				ROOT = {
					has_resources_rights = {
						state = 615
						resources = { coal }
					}
				}
			} 
			615 = {
				NOT = {
					has_state_flag = china_coal_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					615 = {
						has_resistance = yes
					}
				}
				615 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_IV
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			615 = {
				set_state_flag = china_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 20
				}
			}
		}
	}

	#China: Expand Hegang Coal Mine
	china_coal_V = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			714 = {
				NOT = {
					has_state_flag = china_coal_V_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					714 = {
						has_resistance = yes
					}
				}
				714 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_V
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			714 = {
				set_state_flag = china_coal_V_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#China: Develop Jixi Coal Mine
	china_coal_VI = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 717
			}
		}

		visible = {
			OR = {
				controls_state = 717
				any_country = {
					is_subject_of = ROOT
					controls_state = 717
				}
				ROOT = {
					has_resources_rights = {
						state = 717
						resources = { coal }
					}
				}
			} 
			717 = {
				NOT = {
					has_state_flag = china_coal_VI_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					717 = {
						has_resistance = yes
					}
				}
				717 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_VI
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			717 = {
				set_state_flag = china_coal_VI_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#China: Continue Expansion of Fushun Coal Mine
	china_coal_VII = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 716
			}
		}

		visible = {
			OR = {
				controls_state = 716
				any_country = {
					is_subject_of = ROOT
					controls_state = 716
				}
				ROOT = {
					has_resources_rights = {
						state = 716
						resources = { coal }
					}
				}
			} 
			716 = {
				NOT = {
					has_state_flag = china_coal_VII_flag
				}
				has_state_flag = china_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					716 = {
						has_resistance = yes
					}
				}
				716 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_VII
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			716 = {
				set_state_flag = china_coal_VII_flag
				add_resource = {
					type = coal 
					amount = 15
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = china_coal_VIII
		}
	}

	#China: Open Haizhou Coal Mine
	china_coal_VIII = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 716
			}
		}

		visible = {
			OR = {
				controls_state = 716
				any_country = {
					is_subject_of = ROOT
					controls_state = 716
				}
				ROOT = {
					has_resources_rights = {
						state = 716
						resources = { coal }
					}
				}
			} 
			716 = {
				NOT = {
					has_state_flag = china_coal_VIII_flag
				}
				has_state_flag = china_coal_VII_flag
			}
		}

		available = {
			if = {
				limit = {
					716 = {
						has_resistance = yes
					}
				}
				716 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_VIII
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			716 = {
				set_state_flag = china_coal_VIII_flag
				add_resource = {
					type = coal 
					amount = 25
				}
			}
		}
	}

	#China: Prospect Pingdingshan Coal Basin
	china_coal_IX = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 607
			}
		}

		visible = {
			OR = {
				controls_state = 607
				any_country = {
					is_subject_of = ROOT
					controls_state = 607
				}
				ROOT = {
					has_resources_rights = {
						state = 607
						resources = { coal }
					}
				}
			} 
			607 = {
				NOT = {
					has_state_flag = china_coal_IX_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					607 = {
						has_resistance = yes
					}
				}
				607 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_IX
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			607 = {
				set_state_flag = china_coal_IX_flag
				add_resource = {
					type = coal 
					amount = 20
				}
			}
		}
	}

	#China: Prospect Huainan Coalfield
	china_coal_X = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 606
			}
		}

		visible = {
			OR = {
				controls_state = 606
				any_country = {
					is_subject_of = ROOT
					controls_state = 606
				}
				ROOT = {
					has_resources_rights = {
						state = 606
						resources = { coal }
					}
				}
			} 
			606 = {
				NOT = {
					has_state_flag = china_coal_X_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					606 = {
						has_resistance = yes
					}
				}
				606 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = china_coal_X
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			606 = {
				set_state_flag = china_coal_X_flag
				add_resource = {
					type = coal 
					amount = 20
				}
			}
		}
	}

	#TAIWAN: Expand Northern Taiwan Coalfield
	taiwan_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 524
			}
		}

		visible = {
			OR = {
				controls_state = 524
				any_country = {
					is_subject_of = ROOT
					controls_state = 524
				}
				ROOT = {
					has_resources_rights = {
						state = 524
						resources = { coal }
					}
				}
			} 
			524 = {
				NOT = {
					has_state_flag = taiwan_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					524 = {
						has_resistance = yes
					}
				}
				524 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = taiwan_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			524 = {
				set_state_flag = taiwan_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#INDIA: Expand Assam Coal Basin
	india_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 432
			}
		}

		visible = {
			OR = {
				controls_state = 432
				any_country = {
					is_subject_of = ROOT
					controls_state = 432
				}
				ROOT = {
					has_resources_rights = {
						state = 432
						resources = { coal }
					}
				}
			} 
			432 = {
				NOT = {
					has_state_flag = india_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					432 = {
						has_resistance = yes
					}
				}
				432 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = india_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			432 = {
				set_state_flag = india_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#INDIA: Open Moher Sub-basin
	india_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 438
			}
		}

		visible = {
			OR = {
				controls_state = 438
				any_country = {
					is_subject_of = ROOT
					controls_state = 438
				}
				ROOT = {
					has_resources_rights = {
						state = 438
						resources = { coal }
					}
				}
			} 
			438 = {
				NOT = {
					has_state_flag = india_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					438 = {
						has_resistance = yes
					}
				}
				438 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = india_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			438 = {
				set_state_flag = india_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#INDIA: Open Manikpur Mine
	india_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 436
			}
		}

		visible = {
			OR = {
				controls_state = 436
				any_country = {
					is_subject_of = ROOT
					controls_state = 436
				}
				ROOT = {
					has_resources_rights = {
						state = 436
						resources = { coal }
					}
				}
			} 
			436 = {
				NOT = {
					has_state_flag = india_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					436 = {
						has_resistance = yes
					}
				}
				436 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = india_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			436 = {
				set_state_flag = india_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#JAPÓN: Intensify Miike & Chikuho Production
	japan_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 528
			}
		}

		visible = {
			OR = {
				controls_state = 528
				any_country = {
					is_subject_of = ROOT
					controls_state = 528
				}
				ROOT = {
					has_resources_rights = {
						state = 528
						resources = { coal }
					}
				}
			} 
			528 = {
				NOT = {
					has_state_flag = japan_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					528 = {
						has_resistance = yes
					}
				}
				528 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = japan_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			528 = {
				set_state_flag = japan_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#JAPÓN: Expand Yubari and Horonai Coal Mines
	japan_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 536
			}
		}

		visible = {
			OR = {
				controls_state = 536
				any_country = {
					is_subject_of = ROOT
					controls_state = 536
				}
				ROOT = {
					has_resources_rights = {
						state = 536
						resources = { coal }
					}
				}
			} 
			536 = {
				NOT = {
					has_state_flag = japan_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					536 = {
						has_resistance = yes
					}
				}
				536 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = japan_coal_II
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			536 = {
				set_state_flag = japan_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#JAPÓN: Expand Sendai Lignite Field
	japan_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1019
			}
		}

		visible = {
			OR = {
				controls_state = 1019
				any_country = {
					is_subject_of = ROOT
					controls_state = 1019
				}
				ROOT = {
					has_resources_rights = {
						state = 1019
						resources = { coal }
					}
				}
			} 
			1019 = {
				NOT = {
					has_state_flag = japan_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1019 = {
						has_resistance = yes
					}
				}
				1019 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = japan_coal_III
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			1019 = {
				set_state_flag = japan_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#COREA: Expand Sadong Coal Mine
	korea_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 527
			}
		}

		visible = {
			OR = {
				controls_state = 527
				any_country = {
					is_subject_of = ROOT
					controls_state = 527
				}
				ROOT = {
					has_resources_rights = {
						state = 527
						resources = { coal }
					}
				}
			} 
			527 = {
				NOT = {
					has_state_flag = korea_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					527 = {
						has_resistance = yes
					}
				}
				527 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = korea_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			527 = {
				set_state_flag = korea_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#COREA: Develop Jangseong Coal Mine
	korea_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1029
			}
		}

		visible = {
			OR = {
				controls_state = 1029
				any_country = {
					is_subject_of = ROOT
					controls_state = 1029
				}
				ROOT = {
					has_resources_rights = {
						state = 1029
						resources = { coal }
					}
				}
			} 
			1029 = {
				NOT = {
					has_state_flag = korea_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1029 = {
						has_resistance = yes
					}
				}
				1029 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = korea_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			1029 = {
				set_state_flag = korea_coal_II_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#PAKISTAN: Develop Baluchistan Coal Basin
	pakistan_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 988
			}
		}

		visible = {
			OR = {
				controls_state = 988
				any_country = {
					is_subject_of = ROOT
					controls_state = 988
				}
				ROOT = {
					has_resources_rights = {
						state = 988
						resources = { coal }
					}
				}
			} 
			988 = {
				NOT = {
					has_state_flag = pakistan_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					988 = {
						has_resistance = yes
					}
				}
				988 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = pakistan_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			988 = {
				set_state_flag = pakistan_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#PAKISTAN: Develop Makerwal Collieries
	pakistan_coal_II = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			440 = {
				NOT = {
					has_state_flag = pakistan_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					440 = {
						has_resistance = yes
					}
				}
				440 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = pakistan_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			440 = {
				set_state_flag = pakistan_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#FILIPINAS: Open the Malangas Coal Mines
	philippines_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1025
			}
		}

		visible = {
			OR = {
				controls_state = 1025
				any_country = {
					is_subject_of = ROOT
					controls_state = 1025
				}
				ROOT = {
					has_resources_rights = {
						state = 1025
						resources = { coal }
					}
				}
			} 
			1025 = {
				NOT = {
					has_state_flag = philippines_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1025 = {
						has_resistance = yes
					}
				}
				1025 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = philippines_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			1025 = {
				set_state_flag = philippines_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#TURQUÍA: Expand the Zonguldak Coal Basin
	turkey_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 347
			}
		}

		visible = {
			OR = {
				controls_state = 347
				any_country = {
					is_subject_of = ROOT
					controls_state = 347
				}
				ROOT = {
					has_resources_rights = {
						state = 347
						resources = { coal }
					}
				}
			} 
			347 = {
				NOT = {
					has_state_flag = turkey_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					347 = {
						has_resistance = yes
					}
				}
				347 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = turkey_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			347 = {
				set_state_flag = turkey_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = turkey_coal_II
		}
	}

	#TURQUÍA: Develop the Zonguldak Coal Basin
	turkey_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 347
			}
		}

		visible = {
			OR = {
				controls_state = 347
				any_country = {
					is_subject_of = ROOT
					controls_state = 347
				}
				ROOT = {
					has_resources_rights = {
						state = 347
						resources = { coal }
					}
				}
			} 
			347 = {
				NOT = {
					has_state_flag = turkey_coal_II_flag
				}
				has_state_flag = turkey_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					347 = {
						has_resistance = yes
					}
				}
				347 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = turkey_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			347 = {
				set_state_flag = turkey_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#TURQUÍA: Open Tunçbilek-Tavşanlı Lignite Basin
	turkey_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 343
			}
		}

		visible = {
			OR = {
				controls_state = 343
				any_country = {
					is_subject_of = ROOT
					controls_state = 343
				}
				ROOT = {
					has_resources_rights = {
						state = 343
						resources = { coal }
					}
				}
			} 
			343 = {
				NOT = {
					has_state_flag = turkey_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					343 = {
						has_resistance = yes
					}
				}
				343 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = turkey_coal_III
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			343 = {
				set_state_flag = turkey_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = turkey_coal_IV
		}
	}

	#TURQUÍA: Expand Tunçbilek-Tavşanlı Lignite Basin
	turkey_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 343
			}
		}

		visible = {
			OR = {
				controls_state = 343
				any_country = {
					is_subject_of = ROOT
					controls_state = 343
				}
				ROOT = {
					has_resources_rights = {
						state = 343
						resources = { coal }
					}
				}
			} 
			343 = {
				NOT = {
					has_state_flag = turkey_coal_IV_flag
				}
				has_state_flag = turkey_coal_III_flag
			}
		}

		available = {
			if = {
				limit = {
					343 = {
						has_resistance = yes
					}
				}
				343 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = turkey_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			343 = {
				set_state_flag = turkey_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#IRÁN: Modernize Alborz Coal Basin
	iran_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 266
			}
		}

		visible = {
			OR = {
				controls_state = 266
				any_country = {
					is_subject_of = ROOT
					controls_state = 266
				}
				ROOT = {
					has_resources_rights = {
						state = 266
						resources = { coal }
					}
				}
			} 
			266 = {
				NOT = {
					has_state_flag = iran_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					266 = {
						has_resistance = yes
					}
				}
				266 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = iran_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			266 = {
				set_state_flag = iran_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#BULGARIA: Expand Pernik Coal Mines
	bulgaria_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 48
			}
		}

		visible = {
			OR = {
				controls_state = 48
				any_country = {
					is_subject_of = ROOT
					controls_state = 48
				}
				ROOT = {
					has_resources_rights = {
						state = 48
						resources = { coal }
					}
				}
			} 
			48 = {
				NOT = {
					has_state_flag = bulgaria_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					48 = {
						has_resistance = yes
					}
				}
				48 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bulgaria_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			48 = {
				set_state_flag = bulgaria_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = bulgaria_coal_II
		}
	}

	#BULGARIA: Develop Bobov Dol Coalfield
	bulgaria_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 48
			}
		}

		visible = {
			OR = {
				controls_state = 48
				any_country = {
					is_subject_of = ROOT
					controls_state = 48
				}
				ROOT = {
					has_resources_rights = {
						state = 48
						resources = { coal }
					}
				}
			} 
			48 = {
				NOT = {
					has_state_flag = bulgaria_coal_II_flag
				}
				has_state_flag = bulgaria_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					48 = {
						has_resistance = yes
					}
				}
				48 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bulgaria_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			48 = {
				set_state_flag = bulgaria_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#BULGARIA: Open Troyanovo Lignite Mine
	bulgaria_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 212
			}
		}

		visible = {
			OR = {
				controls_state = 212
				any_country = {
					is_subject_of = ROOT
					controls_state = 212
				}
				ROOT = {
					has_resources_rights = {
						state = 212
						resources = { coal }
					}
				}
			} 
			212 = {
				NOT = {
					has_state_flag = bulgaria_coal_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					212 = {
						has_resistance = yes
					}
				}
				212 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = bulgaria_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			212 = {
				set_state_flag = bulgaria_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#CHECOSLOVAQUIA: Develop Ostrava Coal Mines
	czechoslovakia_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 74
			}
		}

		visible = {
			OR = {
				controls_state = 74
				any_country = {
					is_subject_of = ROOT
					controls_state = 74
				}
				ROOT = {
					has_resources_rights = {
						state = 74
						resources = { coal }
					}
				}
			} 
			74 = {
				NOT = {
					has_state_flag = czechoslovakia_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					74 = {
						has_resistance = yes
					}
				}
				74 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = czechoslovakia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			74 = {
				set_state_flag = czechoslovakia_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = czechoslovakia_coal_II
		}
	}

	#CHECOSLOVAQUIA: Intensify Ostrava Coal Extraction
	czechoslovakia_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 74
			}
		}

		visible = {
			OR = {
				controls_state = 74
				any_country = {
					is_subject_of = ROOT
					controls_state = 74
				}
				ROOT = {
					has_resources_rights = {
						state = 74
						resources = { coal }
					}
				}
			} 
			74 = {
				NOT = {
					has_state_flag = czechoslovakia_coal_II_flag
				}
				has_state_flag = czechoslovakia_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					74 = {
						has_resistance = yes
					}
				}
				74 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = czechoslovakia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			74 = {
				set_state_flag = czechoslovakia_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = czechoslovakia_coal_III
		}
	}

	#CHECOSLOVAQUIA: Develop Karviná Coal Mines
	czechoslovakia_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 74
			}
		}

		visible = {
			OR = {
				controls_state = 74
				any_country = {
					is_subject_of = ROOT
					controls_state = 74
				}
				ROOT = {
					has_resources_rights = {
						state = 74
						resources = { coal }
					}
				}
			} 
			74 = {
				NOT = {
					has_state_flag = czechoslovakia_coal_III_flag
				}
				has_state_flag = czechoslovakia_coal_II_flag
			}
		}

		available = {
			if = {
				limit = {
					74 = {
						has_resistance = yes
					}
				}
				74 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = czechoslovakia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			74 = {
				set_state_flag = czechoslovakia_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#CHECOSLOVAQUIA: Expand Most Lignite Basin
	czechoslovakia_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 69
			}
		}

		visible = {
			OR = {
				controls_state = 69
				any_country = {
					is_subject_of = ROOT
					controls_state = 69
				}
				ROOT = {
					has_resources_rights = {
						state = 69
						resources = { coal }
					}
				}
			} 
			69 = {
				NOT = {
					has_state_flag = czechoslovakia_coal_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					69 = {
						has_resistance = yes
					}
				}
				69 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = czechoslovakia_coal_IV
				}
			}
			has_tech = excavation2
			has_tech = oil_processing
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			69 = {
				set_state_flag = czechoslovakia_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			random_owned_controlled_state = {
				prioritize = { 69 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = czechoslovakia_coal_V
		}
	}

	#CHECOSLOVAQUIA: Expand Sokolov Lignite Basin
	czechoslovakia_coal_V = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 69
			}
		}

		visible = {
			OR = {
				controls_state = 69
				any_country = {
					is_subject_of = ROOT
					controls_state = 69
				}
				ROOT = {
					has_resources_rights = {
						state = 69
						resources = { coal }
					}
				}
			} 
			69 = {
				NOT = {
					has_state_flag = czechoslovakia_coal_V_flag
				}
				has_state_flag = czechoslovakia_coal_IV_flag
			}
		}

		available = {
			if = {
				limit = {
					69 = {
						has_resistance = yes
					}
				}
				69 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = czechoslovakia_coal_V
				}
			}
			has_tech = excavation3
			has_tech = improved_oil_processing
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			69 = {
				set_state_flag = czechoslovakia_coal_V_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			random_owned_controlled_state = {
				prioritize = { 69 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
		}
	}

	#CHECOSLOVAQUIA: Develop Upper Nitra Coal Basin
	czechoslovakia_coal_VI = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 70
			}
		}

		visible = {
			OR = {
				controls_state = 70
				any_country = {
					is_subject_of = ROOT
					controls_state = 70
				}
				ROOT = {
					has_resources_rights = {
						state = 70
						resources = { coal }
					}
				}
			} 
			70 = {
				NOT = {
					has_state_flag = czechoslovakia_coal_VI_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					70 = {
						has_resistance = yes
					}
				}
				70 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = czechoslovakia_coal_VI
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			70 = {
				set_state_flag = czechoslovakia_coal_VI_flag
				add_resource = {
					type = coal 
					amount = 15
				}
			}
		}
	}

	#FRANCIA: Develop Lorraine Basin
	france_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 28
			}
		}

		visible = {
			OR = {
				controls_state = 28
				any_country = {
					is_subject_of = ROOT
					controls_state = 28
				}
				ROOT = {
					has_resources_rights = {
						state = 28
						resources = { coal }
					}
				}
			} 
			28 = {
				NOT = {
					has_state_flag = france_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					28 = {
						has_resistance = yes
					}
				}
				28 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = france_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			28 = {
				set_state_flag = france_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#FRANCIA: Expand Provence Coalfield
	france_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 21
			}
		}

		visible = {
			OR = {
				controls_state = 21
				any_country = {
					is_subject_of = ROOT
					controls_state = 21
				}
				ROOT = {
					has_resources_rights = {
						state = 21
						resources = { coal }
					}
				}
			} 
			21 = {
				NOT = {
					has_state_flag = france_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					21 = {
						has_resistance = yes
					}
				}
				21 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = france_coal_II
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			21 = {
				set_state_flag = france_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#HUNGRÍA: Intensify Tatabánya Coal Extraction
	hungary_coal_I = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			155 = {
				NOT = {
					has_state_flag = hungary_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					155 = {
						has_resistance = yes
					}
				}
				155 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = hungary_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			155 = {
				set_state_flag = hungary_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#HUNGRÍA: Expand Komló Coal Mines
	hungary_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 974
			}
		}

		visible = {
			OR = {
				controls_state = 974
				any_country = {
					is_subject_of = ROOT
					controls_state = 974
				}
				ROOT = {
					has_resources_rights = {
						state = 974
						resources = { coal }
					}
				}
			} 
			974 = {
				NOT = {
					has_state_flag = hungary_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					974 = {
						has_resistance = yes
					}
				}
				974 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = hungary_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			974 = {
				set_state_flag = hungary_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#HUNGRÍA: Develop Borsod Coal Basin
	hungary_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 43
			}
		}

		visible = {
			OR = {
				controls_state = 43
				any_country = {
					is_subject_of = ROOT
					controls_state = 43
				}
				ROOT = {
					has_resources_rights = {
						state = 43
						resources = { coal }
					}
				}
			} 
			43 = {
				NOT = {
					has_state_flag = hungary_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					43 = {
						has_resistance = yes
					}
				}
				43 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = hungary_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			43 = {
				set_state_flag = hungary_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#IRLANDA: Expand the Leinster Coalfield
	ireland_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 113
			}
		}

		visible = {
			OR = {
				controls_state = 113
				any_country = {
					is_subject_of = ROOT
					controls_state = 113
				}
				ROOT = {
					has_resources_rights = {
						state = 113
						resources = { coal }
					}
				}
			} 
			113 = {
				NOT = {
					has_state_flag = ireland_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					113 = {
						has_resistance = yes
					}
				}
				113 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = ireland_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			113 = {
				set_state_flag = ireland_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#POLONIA: Intensify Upper Silesian Coal Extraction
	poland_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 67
			}
		}

		visible = {
			OR = {
				controls_state = 67
				any_country = {
					is_subject_of = ROOT
					controls_state = 67
				}
				ROOT = {
					has_resources_rights = {
						state = 67
						resources = { coal }
					}
				}
			} 
			67 = {
				NOT = {
					has_state_flag = poland_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					67 = {
						has_resistance = yes
					}
				}
				67 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = poland_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			67 = {
				set_state_flag = poland_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#POLONIA: Develop Dambrowa Coal Basin
	poland_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 90
			}
		}

		visible = {
			OR = {
				controls_state = 90
				any_country = {
					is_subject_of = ROOT
					controls_state = 90
				}
				ROOT = {
					has_resources_rights = {
						state = 90
						resources = { coal }
					}
				}
			} 
			90 = {
				NOT = {
					has_state_flag = poland_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					90 = {
						has_resistance = yes
					}
				}
				90 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = poland_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			90 = {
				set_state_flag = poland_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#POLONIA: Open 1 Maja Mine
	poland_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 762
			}
		}

		visible = {
			OR = {
				controls_state = 762
				any_country = {
					is_subject_of = ROOT
					controls_state = 762
				}
				ROOT = {
					has_resources_rights = {
						state = 762
						resources = { coal }
					}
				}
			} 
			762 = {
				NOT = {
					has_state_flag = poland_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					762 = {
						has_resistance = yes
					}
				}
				762 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = poland_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			762 = {
				set_state_flag = poland_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#POLONIA: Develop Konin Lignite Basin
	poland_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 87
			}
		}

		visible = {
			OR = {
				controls_state = 87
				any_country = {
					is_subject_of = ROOT
					controls_state = 87
				}
				ROOT = {
					has_resources_rights = {
						state = 87
						resources = { coal }
					}
				}
			} 
			87 = {
				NOT = {
					has_state_flag = poland_coal_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					87 = {
						has_resistance = yes
					}
				}
				87 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = poland_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			87 = {
				set_state_flag = poland_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#PORTUGAL: Expand São Pedro da Cova Coal Mines
	portugal_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 112
			}
		}

		visible = {
			OR = {
				controls_state = 112
				any_country = {
					is_subject_of = ROOT
					controls_state = 112
				}
				ROOT = {
					has_resources_rights = {
						state = 112
						resources = { coal }
					}
				}
			} 
			112 = {
				NOT = {
					has_state_flag = portugal_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					112 = {
						has_resistance = yes
					}
				}
				112 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = portugal_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			112 = {
				set_state_flag = portugal_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = portugal_coal_II
		}
	}

	#PORTUGAL: Expand Pejão Mines
	portugal_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 112
			}
		}

		visible = {
			OR = {
				controls_state = 112
				any_country = {
					is_subject_of = ROOT
					controls_state = 112
				}
				ROOT = {
					has_resources_rights = {
						state = 112
						resources = { coal }
					}
				}
			} 
			112 = {
				NOT = {
					has_state_flag = portugal_coal_II_flag
				}
				has_state_flag = portugal_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					112 = {
						has_resistance = yes
					}
				}
				112 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = portugal_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			112 = {
				set_state_flag = portugal_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#PORTUGAL: Open Minas do Espadanal
	portugal_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 795
			}
		}

		visible = {
			OR = {
				controls_state = 795
				any_country = {
					is_subject_of = ROOT
					controls_state = 795
				}
				ROOT = {
					has_resources_rights = {
						state = 795
						resources = { coal }
					}
				}
			} 
			795 = {
				NOT = {
					has_state_flag = portugal_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					795 = {
						has_resistance = yes
					}
				}
				795 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = portugal_coal_III
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			795 = {
				set_state_flag = portugal_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#RUMANÍA: Expand Petroșani Coal Basin
	romania_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 84
			}
		}

		visible = {
			OR = {
				controls_state = 84
				any_country = {
					is_subject_of = ROOT
					controls_state = 84
				}
				ROOT = {
					has_resources_rights = {
						state = 84
						resources = { coal }
					}
				}
			} 
			84 = {
				NOT = {
					has_state_flag = romania_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					84 = {
						has_resistance = yes
					}
				}
				84 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = romania_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			84 = {
				set_state_flag = romania_coal_I_flag
				add_resource = {
					type = coal 
					amount = 20
				}
			}
		}
	}

	#RUMANÍA: Develop Rovinari Lignite Basin
	romania_coal_II = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			81 = {
				NOT = {
					has_state_flag = romania_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					81 = {
						has_resistance = yes
					}
				}
				81 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = romania_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			81 = {
				set_state_flag = romania_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#ESPAÑA: Expand Ponferrada Anthracite Mines
	spain_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 174
			}
		}

		visible = {
			OR = {
				controls_state = 174
				any_country = {
					is_subject_of = ROOT
					controls_state = 174
				}
				ROOT = {
					has_resources_rights = {
						state = 174
						resources = { coal }
					}
				}
			} 
			174 = {
				NOT = {
					has_state_flag = spain_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					174 = {
						has_resistance = yes
					}
				}
				174 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = spain_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			174 = {
				set_state_flag = spain_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#ESPAÑA: Develop Puertollano Coal Basin
	spain_coal_II = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			175 = {
				NOT = {
					has_state_flag = spain_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					175 = {
						has_resistance = yes
					}
				}
				175 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = spain_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			175 = {
				set_state_flag = spain_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#ESPAÑA: Intensify Berguedà Lignite Mining
	spain_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 165
			}
		}

		visible = {
			OR = {
				controls_state = 165
				any_country = {
					is_subject_of = ROOT
					controls_state = 165
				}
				ROOT = {
					has_resources_rights = {
						state = 165
						resources = { coal }
					}
				}
			} 
			165 = {
				NOT = {
					has_state_flag = spain_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					165 = {
						has_resistance = yes
					}
				}
				165 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = spain_coal_III
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			165 = {
				set_state_flag = spain_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#ESPAÑA: Expand Teruel Lignite Mining
	spain_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 166
			}
		}

		visible = {
			OR = {
				controls_state = 166
				any_country = {
					is_subject_of = ROOT
					controls_state = 166
				}
				ROOT = {
					has_resources_rights = {
						state = 166
						resources = { coal }
					}
				}
			} 
			166 = {
				NOT = {
					has_state_flag = spain_coal_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					166 = {
						has_resistance = yes
					}
				}
				166 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = spain_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			166 = {
				set_state_flag = spain_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#YUGOSLAVIA: Expand Istria Coal Basin
	yugoslavia_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 852
			}
		}

		visible = {
			OR = {
				controls_state = 852
				any_country = {
					is_subject_of = ROOT
					controls_state = 852
				}
				ROOT = {
					has_resources_rights = {
						state = 852
						resources = { coal }
					}
				}
			} 
			852 = {
				NOT = {
					has_state_flag = yugoslavia_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					852 = {
						has_resistance = yes
					}
				}
				852 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = yugoslavia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			852 = {
				set_state_flag = yugoslavia_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#YUGOSLAVIA: Expand Kreka Coal Basin
	yugoslavia_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 104
			}
		}

		visible = {
			OR = {
				controls_state = 104
				any_country = {
					is_subject_of = ROOT
					controls_state = 104
				}
				ROOT = {
					has_resources_rights = {
						state = 104
						resources = { coal }
					}
				}
			} 
			104 = {
				NOT = {
					has_state_flag = yugoslavia_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					104 = {
						has_resistance = yes
					}
				}
				104 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = yugoslavia_coal_II
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			104 = {
				set_state_flag = yugoslavia_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#YUGOSLAVIA: Develop Velenje Lignite Mine
	yugoslavia_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 102
			}
		}

		visible = {
			OR = {
				controls_state = 102
				any_country = {
					is_subject_of = ROOT
					controls_state = 102
				}
				ROOT = {
					has_resources_rights = {
						state = 102
						resources = { coal }
					}
				}
			} 
			102 = {
				NOT = {
					has_state_flag = yugoslavia_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					102 = {
						has_resistance = yes
					}
				}
				102 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = yugoslavia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			102 = {
				set_state_flag = yugoslavia_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#YUGOSLAVIA: Expand Danube Lignite
	yugoslavia_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 107
			}
		}

		visible = {
			OR = {
				controls_state = 107
				any_country = {
					is_subject_of = ROOT
					controls_state = 107
				}
				ROOT = {
					has_resources_rights = {
						state = 107
						resources = { coal }
					}
				}
			} 
			107 = {
				NOT = {
					has_state_flag = yugoslavia_coal_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					107 = {
						has_resistance = yes
					}
				}
				107 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = yugoslavia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			107 = {
				set_state_flag = yugoslavia_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#URSS: Expand Donbas Coal Basin
	soviet_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 227
			}
		}

		visible = {
			OR = {
				controls_state = 227
				any_country = {
					is_subject_of = ROOT
					controls_state = 227
				}
				ROOT = {
					has_resources_rights = {
						state = 227
						resources = { coal }
					}
				}
			} 
			227 = {
				NOT = {
					has_state_flag = soviet_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					227 = {
						has_resistance = yes
					}
				}
				227 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_I
				}
			}
			has_tech = excavation2
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			227 = {
				set_state_flag = soviet_coal_I_flag
				add_resource = {
					type = coal 
					amount = 30
				}
			}
		}
	}

	#URSS: Expand Kuzbas Coal Basin
	soviet_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 569
			}
		}

		visible = {
			OR = {
				controls_state = 569
				any_country = {
					is_subject_of = ROOT
					controls_state = 569
				}
				ROOT = {
					has_resources_rights = {
						state = 569
						resources = { coal }
					}
				}
			} 
			569 = {
				NOT = {
					has_state_flag = soviet_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					569 = {
						has_resistance = yes
					}
				}
				569 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_II
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			569 = {
				set_state_flag = soviet_coal_II_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = soviet_coal_XII
		}
	}

	#URSS: Expand Moscow Coal Basin
	soviet_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 219
			}
		}

		visible = {
			OR = {
				controls_state = 219
				any_country = {
					is_subject_of = ROOT
					controls_state = 219
				}
				ROOT = {
					has_resources_rights = {
						state = 219
						resources = { coal }
					}
				}
			} 
			219 = {
				NOT = {
					has_state_flag = soviet_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					219 = {
						has_resistance = yes
					}
				}
				219 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_III
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			219 = {
				set_state_flag = soviet_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#URSS: Expand Kizel Coal Basin
	soviet_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 398
			}
		}

		visible = {
			OR = {
				controls_state = 398
				any_country = {
					is_subject_of = ROOT
					controls_state = 398
				}
				ROOT = {
					has_resources_rights = {
						state = 398
						resources = { coal }
					}
				}
			} 
			398 = {
				NOT = {
					has_state_flag = soviet_coal_IV_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					398 = {
						has_resistance = yes
					}
				}
				398 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_IV
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			398 = {
				set_state_flag = soviet_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = soviet_coal_V
		}
	}

	#URSS: Further Development of Kizel Coal Basin
	soviet_coal_V = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 398
			}
		}

		visible = {
			OR = {
				controls_state = 398
				any_country = {
					is_subject_of = ROOT
					controls_state = 398
				}
				ROOT = {
					has_resources_rights = {
						state = 398
						resources = { coal }
					}
				}
			} 
			398 = {
				NOT = {
					has_state_flag = soviet_coal_V_flag
				}
				has_state_flag = soviet_coal_IV_flag
			}
		}

		available = {
			if = {
				limit = {
					398 = {
						has_resistance = yes
					}
				}
				398 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_V
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			398 = {
				set_state_flag = soviet_coal_V_flag
				add_resource = {
					type = coal 
					amount = 15
				}
			}
		}
	}

	#URSS: Develop Karaganda Coal Basin
	soviet_coal_VI = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 590
			}
		}

		visible = {
			OR = {
				controls_state = 590
				any_country = {
					is_subject_of = ROOT
					controls_state = 590
				}
				ROOT = {
					has_resources_rights = {
						state = 590
						resources = { coal }
					}
				}
			} 
			590 = {
				NOT = {
					has_state_flag = soviet_coal_VI_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					590 = {
						has_resistance = yes
					}
				}
				590 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_VI
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			590 = {
				set_state_flag = soviet_coal_VI_flag
				add_resource = {
					type = coal 
					amount = 15
				}
			}
		}
	}

	#URSS: Expand Vorkuta Coal Mines
	soviet_coal_VII = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 581
			}
		}

		visible = {
			OR = {
				controls_state = 581
				any_country = {
					is_subject_of = ROOT
					controls_state = 581
				}
				ROOT = {
					has_resources_rights = {
						state = 581
						resources = { coal }
					}
				}
			} 
			581 = {
				NOT = {
					has_state_flag = soviet_coal_VII_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					581 = {
						has_resistance = yes
					}
				}
				581 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_VII
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			581 = {
				set_state_flag = soviet_coal_VII_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#URSS: Prospect Chelyabinsk Coal Basin
	soviet_coal_VIII = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 572
			}
		}

		visible = {
			OR = {
				controls_state = 572
				any_country = {
					is_subject_of = ROOT
					controls_state = 572
				}
				ROOT = {
					has_resources_rights = {
						state = 572
						resources = { coal }
					}
				}
			} 
			572 = {
				NOT = {
					has_state_flag = soviet_coal_VIII_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					572 = {
						has_resistance = yes
					}
				}
				572 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_VIII
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			572 = {
				set_state_flag = soviet_coal_VIII_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#URSS: Prospect Ekibastuz Coal Basin
	soviet_coal_IX = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 882
			}
		}

		visible = {
			OR = {
				controls_state = 882
				any_country = {
					is_subject_of = ROOT
					controls_state = 882
				}
				ROOT = {
					has_resources_rights = {
						state = 882
						resources = { coal }
					}
				}
			} 
			882 = {
				NOT = {
					has_state_flag = soviet_coal_IX_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					882 = {
						has_resistance = yes
					}
				}
				882 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_IX
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			882 = {
				set_state_flag = soviet_coal_IX_flag
				add_resource = {
					type = coal 
					amount = 15
				}
			}
		}
	}

	#URSS: Open West Donbas Coal Mines
	soviet_coal_X = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 226
			}
		}

		visible = {
			OR = {
				controls_state = 226
				any_country = {
					is_subject_of = ROOT
					controls_state = 226
				}
				ROOT = {
					has_resources_rights = {
						state = 226
						resources = { coal }
					}
				}
			} 
			226 = {
				NOT = {
					has_state_flag = soviet_coal_X_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					226 = {
						has_resistance = yes
					}
				}
				226 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_X
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			226 = {
				set_state_flag = soviet_coal_X_flag
				add_resource = {
					type = coal 
					amount = 15
				}
			}
		}
	}

	#URSS: Prospect Lvov-Volyn Coal Basin
	soviet_coal_XI = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 93
			}
		}

		visible = {
			OR = {
				controls_state = 93
				any_country = {
					is_subject_of = ROOT
					controls_state = 93
				}
				ROOT = {
					has_resources_rights = {
						state = 93
						resources = { coal }
					}
				}
			} 
			93 = {
				NOT = {
					has_state_flag = soviet_coal_XI_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					93 = {
						has_resistance = yes
					}
				}
				93 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_XI
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			93 = {
				set_state_flag = soviet_coal_XI_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#URSS: Further Development of Kuzbas Coal Basin
	soviet_coal_XII = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 569
			}
		}

		visible = {
			OR = {
				controls_state = 569
				any_country = {
					is_subject_of = ROOT
					controls_state = 569
				}
				ROOT = {
					has_resources_rights = {
						state = 569
						resources = { coal }
					}
				}
			} 
			569 = {
				NOT = {
					has_state_flag = soviet_coal_XII_flag
				}
				has_state_flag = soviet_coal_II_flag
			}
		}

		available = {
			if = {
				limit = {
					569 = {
						has_resistance = yes
					}
				}
				569 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = soviet_coal_XII
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			569 = {
				set_state_flag = soviet_coal_XII_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#AUSTRALIA: Expand New South Wales Coal Mines
	australia_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 285
			}
		}

		visible = {
			OR = {
				controls_state = 285
				any_country = {
					is_subject_of = ROOT
					controls_state = 285
				}
				ROOT = {
					has_resources_rights = {
						state = 285
						resources = { coal }
					}
				}
			} 
			285 = {
				NOT = {
					has_state_flag = australia_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					285 = {
						has_resistance = yes
					}
				}
				285 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = australia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			285 = {
				set_state_flag = australia_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#AUSTRALIA: Expand Yallourn Lignite Open Cut
	australia_coal_III = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 517
			}
		}

		visible = {
			OR = {
				controls_state = 517
				any_country = {
					is_subject_of = ROOT
					controls_state = 517
				}
				ROOT = {
					has_resources_rights = {
						state = 517
						resources = { coal }
					}
				}
			} 
			517 = {
				NOT = {
					has_state_flag = australia_coal_III_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					517 = {
						has_resistance = yes
					}
				}
				517 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = australia_coal_III
				}
			}
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			517 = {
				set_state_flag = australia_coal_III_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = australia_coal_IV
		}
	}

	#AUSTRALIA: Open Morwell Lignite Open Cut
	australia_coal_IV = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 517
			}
		}

		visible = {
			OR = {
				controls_state = 517
				any_country = {
					is_subject_of = ROOT
					controls_state = 517
				}
				ROOT = {
					has_resources_rights = {
						state = 517
						resources = { coal }
					}
				}
			} 
			517 = {
				NOT = {
					has_state_flag = australia_coal_IV_flag
				}
				has_state_flag = australia_coal_III_flag
			}
		}

		available = {
			if = {
				limit = {
					517 = {
						has_resistance = yes
					}
				}
				517 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = australia_coal_IV
				}
			}
			has_tech = excavation4
			has_tech = improved_oil_processing
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			517 = {
				set_state_flag = australia_coal_IV_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
			random_owned_controlled_state = {
				prioritize = { 517 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
		}
	}

	#INDOCHINA: Expand Hong Gai and Cam Pha Anthracite Mines
	indochina_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 671
			}
		}

		visible = {
			OR = {
				controls_state = 671
				any_country = {
					is_subject_of = ROOT
					controls_state = 671
				}
				ROOT = {
					has_resources_rights = {
						state = 671
						resources = { coal }
					}
				}
			} 
			671 = {
				NOT = {
					has_state_flag = indochina_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					671 = {
						has_resistance = yes
					}
				}
				671 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = indochina_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			671 = {
				set_state_flag = indochina_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#TÚNEZ: Open Oum Douil Lignite Mine
	tunisia_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 458
			}
		}

		visible = {
			OR = {
				controls_state = 458
				any_country = {
					is_subject_of = ROOT
					controls_state = 458
				}
				ROOT = {
					has_resources_rights = {
						state = 458
						resources = { coal }
					}
				}
			} 
			458 = {
				NOT = {
					has_state_flag = tunisia_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					458 = {
						has_resistance = yes
					}
				}
				458 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = tunisia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			458 = {
				set_state_flag = tunisia_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#CANADÁ: Expand Drumheller Coalfield
	canada_coal_I = {
		icon = coal
		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 = { coal }
					}
				}
			} 
			470 = {
				NOT = {
					has_state_flag = canada_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					470 = {
						has_resistance = yes
					}
				}
				470 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = canada_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			470 = {
				set_state_flag = canada_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#CANADÁ: Develop Souris Valley Coalfield
	canada_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 469
			}
		}

		visible = {
			OR = {
				controls_state = 469
				any_country = {
					is_subject_of = ROOT
					controls_state = 469
				}
				ROOT = {
					has_resources_rights = {
						state = 469
						resources = { coal }
					}
				}
			} 
			469 = {
				NOT = {
					has_state_flag = canada_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					469 = {
						has_resistance = yes
					}
				}
				469 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = canada_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			469 = {
				set_state_flag = canada_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#MALASIA: Develop Batu Arang Lignite Basin
	malaysia_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 336
			}
		}

		visible = {
			OR = {
				controls_state = 336
				any_country = {
					is_subject_of = ROOT
					controls_state = 336
				}
				ROOT = {
					has_resources_rights = {
						state = 336
						resources = { coal }
					}
				}
			} 
			336 = {
				NOT = {
					has_state_flag = malaysia_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					336 = {
						has_resistance = yes
					}
				}
				336 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = malaysia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			336 = {
				set_state_flag = malaysia_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#SIAM: Open Mae Moh Lignite Mine
	siam_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 869
			}
		}

		visible = {
			OR = {
				controls_state = 869
				any_country = {
					is_subject_of = ROOT
					controls_state = 869
				}
				ROOT = {
					has_resources_rights = {
						state = 869
						resources = { coal }
					}
				}
			} 
			869 = {
				NOT = {
					has_state_flag = siam_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					869 = {
						has_resistance = yes
					}
				}
				869 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = siam_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			869 = {
				set_state_flag = siam_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#AUSTRIA: Expand Köflach-Voitsberg Lignite District
	austria_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 976
			}
		}

		visible = {
			OR = {
				controls_state = 976
				any_country = {
					is_subject_of = ROOT
					controls_state = 976
				}
				ROOT = {
					has_resources_rights = {
						state = 976
						resources = { coal }
					}
				}
			} 
			976 = {
				NOT = {
					has_state_flag = austria_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					976 = {
						has_resistance = yes
					}
				}
				976 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = austria_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			976 = {
				set_state_flag = austria_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#AUSTRIA: Develop Hausruck Lignite District
	austria_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 152
			}
		}

		visible = {
			OR = {
				controls_state = 152
				any_country = {
					is_subject_of = ROOT
					controls_state = 152
				}
				ROOT = {
					has_resources_rights = {
						state = 152
						resources = { coal }
					}
				}
			} 
			152 = {
				NOT = {
					has_state_flag = austria_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					152 = {
						has_resistance = yes
					}
				}
				152 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = austria_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			152 = {
				set_state_flag = austria_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#DINAMARCA: Open Søby Brunkulslejer
	denmark_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 99
			}
		}

		visible = {
			OR = {
				controls_state = 99
				any_country = {
					is_subject_of = ROOT
					controls_state = 99
				}
				ROOT = {
					has_resources_rights = {
						state = 99
						resources = { coal }
					}
				}
			} 
			99 = {
				NOT = {
					has_state_flag = denmark_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					99 = {
						has_resistance = yes
					}
				}
				99 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = denmark_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			99 = {
				set_state_flag = denmark_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = denmark_coal_II
		}
	}

	#DINAMARCA: Expand Søby Brunkulslejer
	denmark_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 99
			}
		}

		visible = {
			OR = {
				controls_state = 99
				any_country = {
					is_subject_of = ROOT
					controls_state = 99
				}
				ROOT = {
					has_resources_rights = {
						state = 99
						resources = { coal }
					}
				}
			} 
			99 = {
				NOT = {
					has_state_flag = denmark_coal_II_flag
				}
				has_state_flag = denmark_coal_I_flag
			}
		}

		available = {
			if = {
				limit = {
					99 = {
						has_resistance = yes
					}
				}
				99 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = denmark_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			99 = {
				set_state_flag = denmark_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#ALEMANIA: Expand Rhineland Lignite
	germany_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 51
			}
		}

		visible = {
			OR = {
				controls_state = 51
				any_country = {
					is_subject_of = ROOT
					controls_state = 51
				}
				ROOT = {
					has_resources_rights = {
						state = 51
						resources = { coal }
					}
				}
			} 
			51 = {
				NOT = {
					has_state_flag = germany_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					51 = {
						has_resistance = yes
					}
				}
				51 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = germany_coal_I
				}
			}
			has_tech = excavation2
			has_tech = improved_oil_processing
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			51 = {
				set_state_flag = germany_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
			random_owned_controlled_state = {
				prioritize = { 51 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
		}
	}

	#ALEMANIA: Expand Leuna Lignite Complex
	germany_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 65
			}
		}

		visible = {
			OR = {
				controls_state = 65
				any_country = {
					is_subject_of = ROOT
					controls_state = 65
				}
				ROOT = {
					has_resources_rights = {
						state = 65
						resources = { coal }
					}
				}
			} 
			65 = {
				NOT = {
					has_state_flag = germany_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					65 = {
						has_resistance = yes
					}
				}
				65 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = germany_coal_II
				}
			}
			has_tech = excavation4
			has_tech = improved_oil_processing
			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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			65 = {
				set_state_flag = germany_coal_II_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
			random_owned_controlled_state = {
				prioritize = { 65 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
		}
	}

	#GRECIA: Expand Aliveri Lignite Mine
	greece_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 47
			}
		}

		visible = {
			OR = {
				controls_state = 47
				any_country = {
					is_subject_of = ROOT
					controls_state = 47
				}
				ROOT = {
					has_resources_rights = {
						state = 47
						resources = { coal }
					}
				}
			} 
			47 = {
				NOT = {
					has_state_flag = greece_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					47 = {
						has_resistance = yes
					}
				}
				47 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = greece_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			47 = {
				set_state_flag = greece_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#GRECIA: Develop Ptolemaida Lignite Basin
	greece_coal_II = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 185
			}
		}

		visible = {
			OR = {
				controls_state = 185
				any_country = {
					is_subject_of = ROOT
					controls_state = 185
				}
				ROOT = {
					has_resources_rights = {
						state = 185
						resources = { coal }
					}
				}
			} 
			185 = {
				NOT = {
					has_state_flag = greece_coal_II_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					185 = {
						has_resistance = yes
					}
				}
				185 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = greece_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			185 = {
				set_state_flag = greece_coal_II_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#ITALIA: Expand Valdarno Lignite Basin
	italy_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 162
			}
		}

		visible = {
			OR = {
				controls_state = 162
				any_country = {
					is_subject_of = ROOT
					controls_state = 162
				}
				ROOT = {
					has_resources_rights = {
						state = 162
						resources = { coal }
					}
				}
			} 
			162 = {
				NOT = {
					has_state_flag = italy_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					162 = {
						has_resistance = yes
					}
				}
				162 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = italy_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			162 = {
				set_state_flag = italy_coal_I_flag
				add_resource = {
					type = coal 
					amount = 10
				}
			}
		}
	}

	#ALBANIA: Open Memaliaj Coal Mine
	albania_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 805
			}
		}

		visible = {
			OR = {
				controls_state = 805
				any_country = {
					is_subject_of = ROOT
					controls_state = 805
				}
				ROOT = {
					has_resources_rights = {
						state = 805
						resources = { coal }
					}
				}
			} 
			805 = {
				NOT = {
					has_state_flag = albania_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					805 = {
						has_resistance = yes
					}
				}
				805 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = albania_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			805 = {
				set_state_flag = albania_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#NUEVA ZELANDA: Develop Waikato Coalfield
	new_zealand_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 1079
			}
		}

		visible = {
			OR = {
				controls_state = 1079
				any_country = {
					is_subject_of = ROOT
					controls_state = 1079
				}
				ROOT = {
					has_resources_rights = {
						state = 1079
						resources = { coal }
					}
				}
			} 
			1079 = {
				NOT = {
					has_state_flag = new_zealand_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					1079 = {
						has_resistance = yes
					}
				}
				1079 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = new_zealand_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			1079 = {
				set_state_flag = new_zealand_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
			}
		}
	}

	#ESTONIA: Develop Virumaa Oil Shale
	estonia_coal_I = {
		icon = coal
		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 813
			}
		}

		visible = {
			OR = {
				controls_state = 813
				any_country = {
					is_subject_of = ROOT
					controls_state = 813
				}
				ROOT = {
					has_resources_rights = {
						state = 813
						resources = { coal }
					}
				}
			} 
			813 = {
				NOT = {
					has_state_flag = estonia_coal_I_flag
				}
			}
		}

		available = {
			if = {
				limit = {
					813 = {
						has_resistance = yes
					}
				}
				813 = {
					resistance < 15
					compliance > 40
				}
			}
			NOT = {
				any_country = {
					has_decision = estonia_coal_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 = coal
					amount < 1
				}
			}
		}

		remove_effect = {
			813 = {
				set_state_flag = estonia_coal_I_flag
				add_resource = {
					type = coal 
					amount = 5
				}
				add_resource = {
					type = oil 
					amount = 5
				}
			}
		}
	}
}
