
# STEEL MILL

AQC_resource_expansion_steel_selected = {
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_steel_3x = yes
	}
	IF = {
		limit = {
			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 3
			}
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_steel_3x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 6
			}
		}	
		AQC_resource_expansion_steel_6x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 10
			}
		}	
		AQC_resource_expansion_steel_10x = yes
	}
}

AQC_resource_expansion_steel_3x = {

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

AQC_resource_expansion_steel_6x = {
	AQC_resource_expansion_steel_3x = yes
	AQC_resource_expansion_steel_3x = yes
} 

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

# ALUMINUM MILL

AQC_resource_expansion_aluminium_selected = {
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_aluminium_3x = yes
	}
	IF = {
		limit = {
			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 3
			}
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_aluminium_3x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 6
			}
		}	
		AQC_resource_expansion_aluminium_6x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 10
			}
		}	
		AQC_resource_expansion_aluminium_10x = yes
	}
}

AQC_resource_expansion_aluminium_3x = {

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

AQC_resource_expansion_aluminium_6x = {
	AQC_resource_expansion_aluminium_3x = yes
	AQC_resource_expansion_aluminium_3x = yes
} 

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

# TUNGSTEN MILL

AQC_resource_expansion_tungsten_selected = {
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_tungsten_3x = yes
	}
	IF = {
		limit = {
			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 3
			}
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_tungsten_3x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 6
			}
		}	
		AQC_resource_expansion_tungsten_6x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 10
			}
		}	
		AQC_resource_expansion_tungsten_10x = yes
	}
}

AQC_resource_expansion_tungsten_3x = {

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

AQC_resource_expansion_tungsten_6x = {
	AQC_resource_expansion_tungsten_3x = yes
	AQC_resource_expansion_tungsten_3x = yes
} 

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

# CHROMIUM MILL

AQC_resource_expansion_chromium_selected = {
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_chromium_3x = yes
	}
	IF = {
		limit = {
			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 3
			}
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}
			has_country_flag = { 
				flag = selected_mill_construction
			}
		}	
		AQC_resource_expansion_chromium_3x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 10
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 6
			}
		}	
		AQC_resource_expansion_chromium_6x = yes
	}
	IF = {
		limit = {
			NOT = {
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 3
				}
				has_country_flag = { 
					flag =  current_mill_quantity_construction
					value = 6
				}
			}

			has_country_flag = { 
				flag = selected_mill_construction
			}

			has_country_flag = { 
				flag =  current_mill_quantity_construction
				value = 10
			}
		}	
		AQC_resource_expansion_chromium_10x = yes
	}
}

AQC_resource_expansion_chromium_3x = {

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

AQC_resource_expansion_chromium_6x = {
	AQC_resource_expansion_chromium_3x = yes
	AQC_resource_expansion_chromium_3x = yes
} 

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