# AI tank design for testing

generic_light_tanks = {
	category = land

	 

	available_for = {}

	roles = {
		land_light_tank
	}

	priority = {
		factor = 1000
	}

	great_war_tank_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = basic_light_tank_chassis
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 1000
			type = light_tank_chassis_0
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_small_cannon 
						tank_heavy_machine_gun 
					} 
				}
				turret_type_slot = tank_light_one_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_gasoline_engine
			}
			upgrades = {
				tank_nsb_engine_upgrade = 4
				tank_nsb_armor_upgrade = 3
			}
		}

		allowed_modules = {
		    tank_small_cannon
			tank_heavy_machine_gun
			tank_light_one_man_tank_turret
			tank_bogie_suspension
			tank_riveted_armor
			tank_gasoline_engine
		}
	}

	basic_light_tank_default = {
		priority = {
			factor = 300
			modifier = { 
				has_tech = improved_light_tank_chassis 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 2000
			type = light_tank_chassis_1
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_small_cannon tank_auto_cannon 
					} 
				}
				turret_type_slot = tank_light_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_gasoline_engine
			}
			upgrades = {
				tank_nsb_engine_upgrade = 6
				tank_nsb_armor_upgrade = 5
			}
		}

		allowed_modules = {
			tank_small_cannon 
			tank_auto_cannon 
			tank_light_two_man_tank_turret
			tank_bogie_suspension
			tank_riveted_armor
			tank_gasoline_engine
		}
	}

	improved_light_tank_default = {
		priority = {
			factor = 350
			modifier = { 
				has_tech = advanced_light_tank_chassis 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 3000
			type = light_tank_chassis_2
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_small_cannon_2  
						tank_auto_cannon_2  
					} 
				}
				turret_type_slot = tank_light_two_man_tank_turret 
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_welded_armor 
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_1
				special_type_slot_2 = smoke_launchers
			}
			upgrades = {
				tank_nsb_engine_upgrade = 5
				tank_nsb_armor_upgrade = 5
			}
		}

		allowed_modules = {
			tank_radio_1
			tank_small_cannon_2  
			tank_auto_cannon_2  
			tank_light_two_man_tank_turret
			tank_welded_armor
			tank_bogie_suspension
			tank_gasoline_engine
		}
	}

	advanced_light_tank_default = {
		priority = {
			factor = 500
		}

		target_variant = {
			match_value = 4000
			type = light_tank_chassis_3
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_medium_cannon 
						tank_small_cannon  
					} 
				}
				turret_type_slot = tank_light_three_man_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension
				armor_type_slot = tank_welded_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_2
				special_type_slot_2 = sloped_armor
				special_type_slot_3 = smoke_launchers
				special_type_slot_4 = empty
			}
			upgrades = {
				tank_nsb_engine_upgrade = 6
				tank_nsb_armor_upgrade = 6
			}
		}

		allowed_modules = { 
			tank_radio_2
			tank_small_cannon_2 
			smoke_launchers
			sloped_armor
			tank_light_three_man_tank_turret
			tank_torsion_bar_suspension
			tank_welded_armor
			tank_gasoline_engine
		}
	}
}

generic_medium_tanks = {
	category = land

	 

	available_for = {}

	roles = {
		land_medium_tank
	}

	priority = {
		factor = 500
		modifier = {
			num_of_factories < 10
			factor = 999
		}
	}

	basic_medium_tank_default = {
		priority = {
			factor = 300
			modifier = { 
				has_tech = improved_medium_tank_chassis
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 2000
			type = medium_tank_chassis_1
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_medium_cannon 
						tank_small_cannon
					} 
				}
				turret_type_slot = tank_medium_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_1
				special_type_slot_2 = smoke_launchers
			}
			upgrades = {
				tank_nsb_engine_upgrade = {
					base = 5
					modifier = {
						is_major = yes
						add = 2
					}
				}
				tank_nsb_armor_upgrade = {
					base = 5
					modifier = {
						is_major = yes
						add = 2
					}
				}
			}
		}

		allowed_modules = {
			tank_medium_cannon 
			tank_small_cannon
			tank_medium_two_man_tank_turret
			tank_bogie_suspension
			tank_riveted_armor
			tank_gasoline_engine
		}
	}

	improved_medium_tank_default = {
		priority = {
			factor = 400
			modifier = { 
				has_tech = advanced_medium_tank_chassis 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 3000
			type = medium_tank_chassis_2
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_medium_cannon
						tank_high_velocity_cannon
					} 
				}
				turret_type_slot = { 
					any_of = { 
						tank_medium_three_man_tank_turret 
						tank_medium_two_man_tank_turret 
					}
				}
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_welded_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_1
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = empty
			}
			upgrades = {
				tank_nsb_engine_upgrade = {
					base = 6
					modifier = {
						is_major = yes
						add = 2
					}
				}
				tank_nsb_armor_upgrade = {
					base = 6
					modifier = {
						is_major = yes
						add = 2
					}
				}
			}
		}

		allowed_modules = {
	      	tank_high_velocity_cannon
			tank_medium_cannon
			tank_medium_three_man_tank_turret
			tank_medium_two_man_tank_turret
			tank_bogie_suspension
			tank_welded_armor
			tank_gasoline_engine
			tank_radio_1
		}
	}

	advanced_medium_tank_default = {
		priority = {
			factor = 500
		}

		target_variant = {
			match_value = 4000
			type = medium_tank_chassis_3
			modules = {
				main_armament_slot = tank_high_velocity_cannon_2
				turret_type_slot = tank_medium_three_man_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension
				armor_type_slot = tank_welded_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = tank_radio_2
				special_type_slot_2 = sloped_armor
				special_type_slot_3 = smoke_launchers
				special_type_slot_4 = extra_ammo_storage
			}
			upgrades = {
				tank_nsb_engine_upgrade = {
					base = 8
					modifier = {
							add = 2
						}
				}
				tank_nsb_armor_upgrade = {
					base = 8
					modifier = {
						add = 2
						has_war = yes
					}
				}
			}
		}

		allowed_modules = {
			tank_high_velocity_cannon_2
			tank_medium_three_man_tank_turret
			tank_torsion_bar_suspension
			tank_welded_armor
			tank_diesel_engine
			sloped_armor
			tank_radio_2
			smoke_launchers
			extra_ammo_storage
		}
	}
}


###HEAVY TANKS
generic_heavy_tanks = {
	category = land

	 

	available_for = {}

	roles = {
		land_heavy_tank
	}

	priority = {
		factor = 300
		modifier = {
			num_of_factories < 40
			factor = 0
		}
	}

	basic_heavy_tank_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_heavy_tank_chassis 
				factor = 0 #let's not waste XP here
			}
			
		}

		target_variant = {
			match_value = 1000
			type = heavy_tank_chassis_1
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_close_support_gun  
						tank_small_cannon 
					} 
				}
				turret_type_slot = tank_heavy_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = secondary_turret_small_cannon
				special_type_slot_2 = secondary_turret_hmg
			}
			upgrades = {
				tank_nsb_engine_upgrade = 7
				tank_nsb_armor_upgrade = {
					base = 6
					modifier = {
						is_major = yes
						add = 2
					}
				}
			}
		}

		allowed_modules = {
			tank_small_cannon 
			tank_close_support_gun 
			tank_heavy_two_man_tank_turret
			tank_bogie_suspension
			tank_riveted_armor
			tank_diesel_engine
			secondary_turret_small_cannon
			secondary_turret_hmg
		}
	}

	improved_heavy_tank_default = {
		priority = {
			factor = 10
			modifier = { 
				has_tech = advanced_heavy_tank_chassis 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 2000
			type = heavy_tank_chassis_2
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_heavy_cannon 
						tank_high_velocity_cannon
					} 
				}
				turret_type_slot = { 
					any_of = { 
						tank_heavy_three_man_tank_turret 
						tank_heavy_two_man_tank_turret 
					} 
				}
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_welded_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_2
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = empty
			}
			upgrades = {
				tank_nsb_engine_upgrade = 9
				tank_nsb_armor_upgrade = {
					base = 6
					modifier = {
						is_major = yes
						add = 2
					}
				}
			}
		}

		allowed_modules = {
			tank_heavy_cannon 
			tank_high_velocity_cannon 
			tank_heavy_two_man_tank_turret
			tank_heavy_three_man_tank_turret
			tank_bogie_suspension
			tank_welded_armor
			tank_gasoline_engine
			tank_radio_1
		}
	}

	advanced_heavy_tank_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 4000
			type = heavy_tank_chassis_3
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_heavy_cannon
						tank_high_velocity_cannon 
					} 
				}
				turret_type_slot = tank_heavy_three_man_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension
				armor_type_slot = tank_cast_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_3
				special_type_slot_2 = sloped_armor
				special_type_slot_3 = smoke_launchers
				special_type_slot_4 = extra_ammo_storage
				
			}
			upgrades = {
				tank_nsb_engine_upgrade = {
					base = 12
				}
				tank_nsb_armor_upgrade = {
					base = 9
					modifier = {
						add = 2
						has_war = yes
					}
					modifier = {
						add = 2
							is_major = yes
					}
				}
			}
		}

		allowed_modules = {
			tank_heavy_cannon 
			tank_high_velocity_cannon
			tank_heavy_three_man_tank_turret
			tank_torsion_bar_suspension
			tank_welded_armor
			tank_gasoline_engine
			tank_radio_3
			sloped_armor
			smoke_launchers
			extra_ammo_storage
		}
	}
}


generic_super_heavy_tanks = {
	category = land

	 

	available_for = {}

	roles = {
		land_super_heavy_tank
	}

	priority = {
		factor = 200
		modifier = {
			num_of_factories < 25
			factor = 0
		}
	}

	basic_super_heavy_tank_default = {
		priority = {
			factor = 10
			modifier = { 
				has_government = fascism
				factor = 5
			}
			
		}

		target_variant = {
			match_value = 1000
			type = super_heavy_tank_chassis_1
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_super_heavy_cannon 
						tank_heavy_cannon 
					} 
				}
				turret_type_slot = tank_super_heavy_four_man_tank_turret
				suspension_type_slot = tank_interleaved_suspension
				armor_type_slot = tank_cast_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = tank_radio_3
				special_type_slot_2 = wet_ammo_storage
				special_type_slot_3 = smoke_launchers
				special_type_slot_4 = extra_ammo_storage
			}
			upgrades = {
				tank_nsb_engine_upgrade = 12
				tank_nsb_armor_upgrade = {
					base = 8
					modifier = {
						add = 1
						has_war = yes
					}
					modifier = {
						any_enemy_country = {
							is_major = yes
						}
						add = 1
					}
				}
			}
		}

		allowed_modules = {
			tank_super_heavy_cannon 
			tank_heavy_cannon
			tank_super_heavy_four_man_tank_turret
			tank_interleaved_suspension
			tank_cast_armor
			tank_diesel_engine
			tank_radio_2
			secondary_turret_hmg
			sloped_armor
			additional_machine_guns
		}
	}
}

generic_modern_tanks = {
	category = land

	 

	available_for = {}

	roles = {
		land_modern_tank
	}

	priority = {
		factor = 200
		modifier = {
			num_of_factories < 100
			factor = 0
		}
	}

	basic_modern_tank_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 1000
			type = modern_tank_chassis_1
			modules = {
				main_armament_slot = { 
					any_of = { 
						tank_high_velocity_cannon_3 
						tank_high_velocity_cannon_2  
					} 
				}
				turret_type_slot = tank_modern_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension
				armor_type_slot = tank_welded_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = tank_radio_3
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = extra_ammo_storage
				special_type_slot_4 = sloped_armor
			}
			upgrades = {
				tank_nsb_engine_upgrade = 14
				tank_nsb_armor_upgrade = {
					base = 10
					modifier = {
						add = 2
						has_war = yes
					}
					modifier = {
						any_enemy_country = {
							is_major = yes
						}
						add = 2
					}
				}
			}
		}

		allowed_modules = {
            extra_ammo_storage
			tank_high_velocity_cannon_2 
			tank_high_velocity_cannon_3 
			tank_modern_tank_turret
			tank_torsion_bar_suspension
			tank_welded_armor
			tank_diesel_engine
			sloped_armor
			smoke_launchers
			wet_ammo_storage
			tank_radio_3
		}
	}
}