
# NUCLEAR REACTOR

AQC_nuclear_reactor_selected = {
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 2
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 4
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 6
				}
			}
			has_country_flag = { 
				flag = selected_special_construction
			}
		}	
		AQC_nuclear_reactor_2x = yes
	}
	IF = {
		limit = {
			has_country_flag = { 
				flag =  current_special_quantity_construction
				value = 2
			}
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 4
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 6
				}
			}
			has_country_flag = { 
				flag = selected_special_construction
			}
		}	
		AQC_nuclear_reactor_2x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 2
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 6
				}
			}

			has_country_flag = { 
				flag = selected_special_construction
			}

			has_country_flag = { 
				flag =  current_special_quantity_construction
				value = 4
			}
		}	
		AQC_nuclear_reactor_4x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 2
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 4
				}
			}

			has_country_flag = { 
				flag = selected_special_construction
			}

			has_country_flag = { 
				flag =  current_special_quantity_construction
				value = 6
			}
		}	
		AQC_nuclear_reactor_6x = yes
	}
}

AQC_nuclear_reactor_2x = {

	random_owned_controlled_state = {
		limit = {
			free_building_slots = {
				building = nuclear_reactor
				size > 0
				include_locked = no
			}
		}
		add_building_construction = {
			type = nuclear_reactor
			level = 1
			instant_build = no #ADDS TO QUEUE
		}
	}
	random_owned_controlled_state = {
		limit = {
			free_building_slots = {
				building = nuclear_reactor
				size > 0
				include_locked = no
			}
		}
		add_building_construction = {
			type = nuclear_reactor
			level = 1
			instant_build = no #ADDS TO QUEUE
		}
	}
}

AQC_nuclear_reactor_4x = {
	AQC_nuclear_reactor_2x = yes
	AQC_nuclear_reactor_2x = yes
} 

AQC_nuclear_reactor_6x = {
	AQC_nuclear_reactor_2x = yes
	AQC_nuclear_reactor_2x = yes
	AQC_nuclear_reactor_2x = yes
} 


# INDUSTRIAL EXPANSION

AQC_industrial_expansion_selected = {
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 2
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 4
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 6
				}
			}
			has_country_flag = { 
				flag = selected_special_construction
			}
		}	
		AQC_industrial_expansion_2x = yes
	}
	IF = {
		limit = {
			has_country_flag = { 
				flag =  current_special_quantity_construction
				value = 2
			}
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 4
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 6
				}
			}
			has_country_flag = { 
				flag = selected_special_construction
			}
		}	
		AQC_industrial_expansion_2x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 2
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 6
				}
			}

			has_country_flag = { 
				flag = selected_special_construction
			}

			has_country_flag = { 
				flag =  current_special_quantity_construction
				value = 4
			}
		}	
		AQC_industrial_expansion_4x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 2
				}
				has_country_flag = { 
					flag =  current_special_quantity_construction
					value = 4
				}
			}

			has_country_flag = { 
				flag = selected_special_construction
			}

			has_country_flag = { 
				flag =  current_special_quantity_construction
				value = 6
			}
		}	
		AQC_industrial_expansion_6x = yes
	}
}

AQC_industrial_expansion_2x = {

	random_owned_controlled_state = {
		limit = {
			free_building_slots = {
				building = industrial_expansion
				size > 0
				include_locked = no
			}
		}
		add_building_construction = {
			type = industrial_expansion
			level = 1
			instant_build = no #ADDS TO QUEUE
		}
	}
	random_owned_controlled_state = {
		limit = {
			free_building_slots = {
				building = industrial_expansion
				size > 0
				include_locked = no
			}
		}
		add_building_construction = {
			type = industrial_expansion
			level = 1
			instant_build = no #ADDS TO QUEUE
		}
	}
}

AQC_industrial_expansion_4x = {
	AQC_industrial_expansion_2x = yes
	AQC_industrial_expansion_2x = yes
} 

AQC_industrial_expansion_6x = {
	AQC_industrial_expansion_2x = yes
	AQC_industrial_expansion_2x = yes
	AQC_industrial_expansion_2x = yes
} 