generic_heavy_tank_destroyer = {
	category = land

	available_for = {}

	roles = {
		land_heavy_tank_destroyer
	}

	priority = {
		factor = 100
		modifier = {
			is_major = no
			factor = 0.1
		}
	}
    heavy_destroyer0 = {
		priority = {
			factor = 350
            modifier = { 
				has_tech = antitank4
				factor = 0 #let's not waste XP here
			}
      	}
		enable = {
			has_tech = antitank2
		}

		target_variant = {
			match_value = 200
			type = heavy_tank_destroyer_chassis_1
			modules = {
			        main_armament_slot = { any_of = { tank_heavy_cannon_2 tank_heavy_cannon } }
			        turret_type_slot = tank_heavy_three_man_tank_turret
			        suspension_type_slot = tank_torsion_bar_suspension
			        armor_type_slot = tank_makeshift_armor
			        engine_type_slot = tank_diesel_engine
			        special_type_slot_1 = secondary_turret_small_cannon
			        special_type_slot_2 = secondary_turret_small_cannon
			        special_type_slot_3 = secondary_turret_small_cannon
			        special_type_slot_4 = easy_maintenance
		        }
		        upgrades = {
			        tank_nsb_engine_upgrade = 0
			        tank_nsb_armor_upgrade = 0
			}
		}
	}
    heavy_destroyer1 = {
		priority = {
			factor = 450
            modifier = { 
				has_tech = antitank5
				factor = 0 #let's not waste XP here
			}
      	}
		enable = {
			has_tech = antitank4
		}

		target_variant = {
			match_value = 800
			type = heavy_tank_destroyer_chassis_1
			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_makeshift_armor
			        engine_type_slot = tank_diesel_engine
			        special_type_slot_1 = secondary_turret_small_cannon
			        special_type_slot_2 = secondary_turret_small_cannon
			        special_type_slot_3 = secondary_turret_small_cannon
			        special_type_slot_4 = easy_maintenance
		        }
		        upgrades = {
			        tank_nsb_engine_upgrade = 2
			        tank_nsb_armor_upgrade = 4
			}
		}
	}
    heavy_destroyer2 = {
		priority = {
			factor = 600
      	}
		enable = {
			has_tech = antitank5
            has_tech = improved_heavy_tank_chassis 
		}

		target_variant = {
			match_value = 1500
			type = heavy_tank_destroyer_chassis_2
			modules = {
			        main_armament_slot = tank_high_velocity_cannon_3
			        turret_type_slot = tank_heavy_three_man_tank_turret
			        suspension_type_slot = tank_bogie_suspension
			        armor_type_slot = tank_makeshift_armor
			        engine_type_slot = tank_diesel_engine
			        special_type_slot_1 = secondary_turret_small_cannon
			        special_type_slot_2 = secondary_turret_small_cannon
			        special_type_slot_3 = secondary_turret_small_cannon
			        special_type_slot_4 = secondary_turret_small_cannon
		    }
		    upgrades = {
			    tank_nsb_engine_upgrade = 2
			    tank_nsb_armor_upgrade = 4
			}
		}
	}
}
