upgrades = {

	#INF EQ
	INF_reliability_upgrade = {
		max_level = 6

		cost = land
		
		
		add_stats = {
		  reliability = 0.03
		  build_cost_ic = 0.04
		}
		
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
		
	}
	
	INF_SA_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  soft_attack = 0.2
		  reliability = -0.04
		  build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	INF_HA_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  hard_attack = 0.2
		  ap_attack = 0.2
		  reliability = -0.04
		  build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	INF_defence_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		   defense = 0.2
		   breakthrough = 0.2
		   reliability = -0.03
		   build_cost_ic = 0.03
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	#ART EQ
	ART_reliability_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  reliability = 0.03
		  build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	ART_SA_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  soft_attack = 0.6
		  breakthrough = 0.3
		  reliability = -0.04
		  build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	ART_HA_upgrade = {
		max_level = 6

		cost = land
		
		
		add_stats = {
		  hard_attack = 0.3
		  ap_attack = 0.4
		  reliability = -0.04
		   build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	ART_defence_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  defense = 0.3
		  reliability = -0.02
		   build_cost_ic = 0.03
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	#AT EQ
	AT_reliability_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  reliability = 0.03
		  build_cost_ic = 0.03
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	AT_pierce_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		   hard_attack = 0.6
		   soft_attack  = 0.2
		   reliability = -0.04
		   build_cost_ic = 0.04	  
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	AT_HA_upgrade = {
		max_level = 6

		cost = land
		
		
		add_stats = {
		   ap_attack = 1.0
		   reliability = -0.04	
		   build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	AT_defence_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		   defense = 0.5
		   reliability = -0.02
		   build_cost_ic = 0.03
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	#AA EQ
	AA_reliability_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  reliability = 0.03
		  build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	AA_AA_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  air_attack = 0.8
		  soft_attack = 0.2
		  reliability = -0.03
		   build_cost_ic = 0.03
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	AA_HA_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		   hard_attack = 0.3
		   ap_attack = 0.3
		   reliability = -0.03
		   build_cost_ic = 0.03
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	AA_defence_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  defense = 0.5
		  reliability = -0.02
		  build_cost_ic = 0.03
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	#MOT EQ
	MOT_reliability_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  reliability = 0.03
          fuel_capacity = 75
		  build_cost_ic = 0.08
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	MOT_speed_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		  maximum_speed = 0.8
          fuel_consumption = 0.02
		  reliability = -0.03
		  build_cost_ic = 0.04
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	
	
	#SUPP
	SUPP_reliability_upgrade = {
		max_level = 6

		cost = land
		
		add_stats = {
		   reliability = 0.05
		   build_cost_ic = 0.06
		}
		
		level_requirements = {
			1 = {
			    num_of_factories > 10
				is_ai = no
			}
			2 = {
			    num_of_factories > 10
				is_ai = no
			}
			3 = {
			    num_of_factories > 10
				is_ai = no
			}
			4 = {
			    num_of_factories > 10
				is_ai = no
			}
			5 = {
			    num_of_factories > 10
				is_ai = no
			}
			6 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
}
