equipments = {
	
	### Helpful handy information: modules that depend on other modules (ie, big guns require fixed turrets)
	### require that the module slots for their equipment archetype are defined in operational order for AI + historical templates.
	### tldr; If your gun requires a specific turret: define the turret slot first.

	light_tank_chassis = {
		year = 1922
		is_archetype = yes
		is_buildable = no

		can_be_produced = {
			# if = { # R56
			# 	limit = {
			# 		has_dlc = "Arms Against Tyranny"
			# 	}
			# 	NOT = {
			# 		has_idea = BUL_army_restrictions_aat
			# 	}
			# }
			# else = {
				NOT = { # R56
					has_idea = BUL_army_restrictions
					has_idea = MPL_mandate
					has_idea = GER_treaty_of_versailles
					has_idea = GER_treaty_of_versailles_2
					has_idea = GER_treaty_of_versailles_3
				}
			# }
		}

		picture = archetype_light_tank_equipment
		type = armor
		group_by = archetype
		interface_category = interface_category_armor
		priority = 2000

		

		module_slots = {

			turret_type_slot = { #Turrets must go at the top
				required = yes
				allowed_module_categories = {
					tank_light_turret_type
				}
			}
			
			main_armament_slot = {
				required = yes
				allowed_module_categories = {
					tank_small_main_armament
					tank_flamethrower
				}
			}
			
			suspension_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_suspension_type
					tank_non_tracked_suspension_type
				}
			}

			armor_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_armor_type
				}
			}

			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_engine_type
				}
			}

			special_type_slot_1 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					tank_secondary_turret
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_2 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					tank_secondary_turret
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_3 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					tank_secondary_turret
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_4 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					tank_secondary_turret
					r56_tank_rangefinder_category # R56
				}
			}
			
		}
		# R56
		module_count_limit = { category = r56_tank_rangefinder_category count < 2 }
		module_count_limit = { module = r56_tank_improved_optics count < 2 }
		module_count_limit = { module = r56_tank_supercharger count < 2 }
		module_count_limit = { module = r56_tank_hull_lmg count < 2 }
		module_count_limit = { module = additional_machine_guns count < 2 }
		module_count_limit = { module = r56_tank_electro_mechanical_fire_control count < 2 }
		###
		module_count_limit = {
			module = sloped_armor
			count < 2
		}	
		module_count_limit = {
			category = tank_radio_module
			count < 2
		}
		module_count_limit = {
			category = tank_secondary_turret
			count < 2
		}
		module_count_limit = {
			module = amphibious_drive
			count < 2
		}

		module_count_limit = {
			module = wet_ammo_storage
			count < 2
		}

		module_count_limit = {
			module = squeezebore_adaptor
			count < 2
		}

		module_count_limit = {
			module = armor_skirts
			count < 2
		}

		module_count_limit = {
			module = dozer_blade
			count < 2
		}

		module_count_limit = {
			module = easy_maintenance
			count < 2
		}
		module_count_limit = {
			module = auto_loader
			count < 2
		}
		module_count_limit = {
			module = stabilizer
			count < 2
		}
		default_modules = {
			main_armament_slot = empty
			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
		}

		fuel_consumption = 0
		maximum_speed = 4
		build_cost_ic = 1.51 #RT56RPMITAKA changed from 1
		reliability = 0.8
		breakthrough = -4 #RT56RPMITAKA
		hardness = 0.5 #RT56RPMITAKA changed from 0.8 
		armor_value = 10 
		resources = {
			steel = 1
		}

		lend_lease_cost = 10

		manpower = 2 
		scaled_by_reliability = { #RT56RPMITAKA vanilla thing
			max_strength = 0.5
		}

	}

	light_tank_chassis_0 = { #also great war tank
		abbreviation = "lt0"
		derived_variant_name = light_tank_equipment_0
		visual_level = 0
		year = 1922
		archetype = light_tank_chassis
		priority = 2000
		module_slots = inherit

		upgrades = {
			tank_nsb_engine_upgrade
			tank_nsb_armor_upgrade
		}


		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = -0.05
			hard_attack = -0.05
			air_attack = -0.05
		}
	}

	light_tank_chassis_1 = {
		abbreviation = "lt1"
		derived_variant_name = light_tank_equipment_1
		visual_level = 0
		year = 1934
		archetype = light_tank_chassis
		parent = light_tank_chassis_0
		priority = 2000
		module_slots = inherit
		maximum_speed = 5
		build_cost_ic = 1.51 #RT56RPMITAKA changed from 1.25
		reliability = 0.95
		armor_value = 15 # R56
		hardness = 0.7 #RT56RPMITAKA
		breakthrough = -2 #RT56RPMITAKA
	}

	light_tank_chassis_2 = {
		abbreviation = "lt2"
		derived_variant_name = light_tank_equipment_2
		visual_level = 1
		year = 1936
		archetype = light_tank_chassis
		parent = light_tank_chassis_1
		priority = 2000
		module_slots = inherit
		build_cost_ic = 1.51 #RT56RPMITAKA changed from 1.6
		maximum_speed = 6
		reliability = 1.1
		armor_value = 20 # R56
		hardness = 0.75 #RT56RPMITAKA
		breakthrough = 0 #RT56RPMITAKA
		fuel_consumption = -0.2 #RT56RPMITAKA
		resources = {
			steel = 1
		}


		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = 0.05
			hard_attack = 0.05
			air_attack = 0.05
		}
	}

	light_tank_chassis_3 = {
		abbreviation = "lt3"
		derived_variant_name = light_tank_equipment_3
		visual_level = 2
		year = 1942
		archetype = light_tank_chassis
		parent = light_tank_chassis_2
		priority = 2000
		module_slots = inherit
		build_cost_ic = 1.51 #RT56RPMITAKA changed from 2.0
		maximum_speed = 7
		reliability = 1.3
		armor_value = 25
		breakthrough = 2 #RT56RPMITAKA
		hardness = 0.8 #RT56RPMITAKA
		fuel_consumption = -0.5 #RT56RPMITAKA
		resources = {
			steel = 1 #RT56RPMITAKA changed from 2
		}
		

		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = 0.1
			hard_attack = 0.1
			air_attack = 0.1
		}
	}
	light_tank_chassis_4 = { # R56
		abbreviation = "lt4"
		derived_variant_name = light_tank_equipment_3	#WIP
		visual_level = 2
		year = 1944
		archetype = light_tank_chassis
		parent = light_tank_chassis_3
		priority = 2000
		module_slots = inherit
		build_cost_ic = 1.51 #RT56RPMITAKA changed from 2.4
		maximum_speed = 8
		reliability = 1.4	#not too much or people can make extremely fast tanks while still at high reliability
		armor_value = 30	#modern medium goes extremely high, but all light tanks are a bit low
		hardness = 0.85 #RT56RPMITAKA
		breakthrough = 4 #RT56RPMITAKA
		fuel_consumption = -0.5 #RT56RPMITAKA
		resources = {
			steel = 1 #RT56RPMITAKA changed from 2
		}


		module_add_stats_multiplier = { #RT56RPMITAKA since this is road addition, it will be slighty better than last, possible rework
			soft_attack = 0.125
			hard_attack = 0.125
			air_attack = 0.125
		}
	}

	

	medium_tank_chassis = {
		year = 1922
		is_archetype = yes
		is_buildable = no
		can_be_produced = {
			# if = { # R56
			# 	limit = {
			# 		has_dlc = "Arms Against Tyranny"
			# 	}
			# 	NOT = {
			# 		has_idea = BUL_army_restrictions_aat
			# 	}
			# }
			# else = {
				NOT = { # R56
					has_idea = BUL_army_restrictions
					has_idea = MPL_mandate
					has_idea = GER_treaty_of_versailles
					has_idea = GER_treaty_of_versailles_2
					has_idea = GER_treaty_of_versailles_3
				}
			# }
		}
		picture = archetype_medium_tank_equipment
		type = armor
		group_by = archetype
		interface_category = interface_category_armor
		priority = 2000

		module_slots = {

			turret_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_light_turret_type
					tank_medium_turret_type
				}
			}
			
			main_armament_slot = {
				required = yes
				allowed_module_categories = {
					tank_small_main_armament
					tank_flamethrower
				}
			}

			suspension_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_suspension_type
				}
			}

			armor_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_armor_type
				}
			}

			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_engine_type
				}
			}

			special_type_slot_1 = {
				required = no
				allowed_module_categories = {
					tank_radio_module
					tank_special_module
					tank_secondary_turret
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_2 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_3 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_4 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}
			
		}
		# R56
		module_count_limit = { module = r56_tank_improved_optics count < 2 }
		module_count_limit = { module = r56_tank_hull_lmg count < 2 }
		module_count_limit = { module = additional_machine_guns count < 2 }
		module_count_limit = { category = r56_tank_rangefinder_category count < 2 }
		module_count_limit = { module = r56_tank_supercharger count < 2 }
		module_count_limit = { module = r56_tank_electro_mechanical_fire_control count < 2 }
		###
		module_count_limit = {
			module = sloped_armor
			count < 2
		}	
		module_count_limit = {
			category = tank_radio_module
			count < 2
		}
		module_count_limit = {
			category = tank_secondary_turret
			count < 3 #two secondary turrets only
		}
		module_count_limit = {
			module = amphibious_drive
			count < 2
		}
		module_count_limit = {
			module = wet_ammo_storage
			count < 2
		}

		module_count_limit = {
			module = squeezebore_adaptor
			count < 2
		}

		module_count_limit = {
			module = armor_skirts
			count < 2
		}

		module_count_limit = {
			module = dozer_blade
			count < 2
		}

		module_count_limit = {
			module = easy_maintenance
			count < 2
		}
		module_count_limit = {
			module = auto_loader
			count < 2
		}
		module_count_limit = {
			module = stabilizer
			count < 2
		}
		default_modules = {
			main_armament_slot = empty
			turret_type_slot = tank_medium_one_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
		}

		fuel_consumption = 0
		maximum_speed = 4
		build_cost_ic = 2
		reliability = 0.5
		armor_value = 20
		hardness = 0.5 #RT56RPMITAKA changed from 0.85
		breakthrough = -3 #RT56RPMITAKA
		resources = {
			steel = 1
		}

		lend_lease_cost = 12

		manpower = 2
		scaled_by_reliability = { #RT56RPMITAKA vanilla thing
			max_strength = 0.5
		}

	}
	medium_tank_chassis_0 = { #used for interwar tanks
		abbreviation = "mt0"
		derived_variant_name = medium_tank_equipment_0
		visual_level = 0
		year = 1922
		archetype = medium_tank_chassis
		priority = 2000
		module_slots = inherit
		upgrades = {
			tank_nsb_engine_upgrade
			tank_nsb_armor_upgrade
		}
		maximum_speed = 4
		build_cost_ic = 5.25 #RT56RPMITAKA changed from 2.5
		reliability = 0.65 #RT56RPMITAKA changed from 0.75
		armor_value = 20 
		resources = {
			steel = 1
		}


		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = -0.05
			hard_attack = -0.05
			air_attack = -0.05
		}
	}

	medium_tank_chassis_1 = {
		abbreviation = "mt1"
		derived_variant_name = medium_tank_equipment_1
		visual_level = 0
		year = 1936
		archetype = medium_tank_chassis
		parent = medium_tank_chassis_0
		priority = 2000
		module_slots = inherit
		armor_value = 30 
		build_cost_ic = 5.25 #RT56RPMITAKA changed from 2.5
		reliability = 0.70 #RT56RPMITAKA changed from 0.80
		maximum_speed = 5
		breakthrough = 0 #RT56RPMITAKA
		hardness = 0.8 #RT56RPMITAKA
	}
	
	medium_tank_chassis_2 = {
		abbreviation = "mt2"
		derived_variant_name = medium_tank_equipment_2
		visual_level = 1
		year = 1940
		parent = medium_tank_chassis_1
		archetype = medium_tank_chassis
		priority = 2000
		module_slots = inherit
		maximum_speed = 6
		build_cost_ic = 5.25 #RT56RPMITAKA changed from 3.2
		reliability = 0.9 #RT56RPMITAKA changed from 1.0
		#breakthrough = 14
		breakthrough = 2 #RT56RPMITAKA
		fuel_consumption = -0.2 #RT56RPMITAKA
		hardness = 0.85 #RT56RPMITAKA
		armor_value = 40
		resources = {
			steel = 1
		}

		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = 0.05
			hard_attack = 0.05
			air_attack = 0.05
		}
	}
	medium_tank_chassis_3 = {
		abbreviation = "mt3"
		derived_variant_name = medium_tank_equipment_3
		visual_level = 2
		year = 1943
		parent = medium_tank_chassis_2
		archetype = medium_tank_chassis
		priority = 2000
		module_slots = inherit
		maximum_speed = 6
		build_cost_ic = 5.25 #RT56RPMITAKA changed from 4.0
		reliability = 1.2
		armor_value = 50
		hardness = 0.9 #RT56RPMITAKA
		breakthrough = 5 #RT56RPMITAKA
		fuel_consumption = -0.5 #RT56RPMITAKA
		resources = {
			steel = 1 #RT56RPMITAKA changed from 2
		}

		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = 0.1
			hard_attack = 0.1
			air_attack = 0.1
		}
	}

	heavy_tank_chassis = {
		year = 1922
		is_archetype = yes
		is_buildable = no
		can_be_produced = {
			# if = { # R56
			# 	limit = {
			# 		has_dlc = "Arms Against Tyranny"
			# 	}
			# 	NOT = {
			# 		has_idea = BUL_army_restrictions_aat
			# 	}
			# }
			# else = {
				NOT = { # R56
					has_idea = BUL_army_restrictions
					has_idea = MPL_mandate
					has_idea = GER_treaty_of_versailles
					has_idea = GER_treaty_of_versailles_2
					has_idea = GER_treaty_of_versailles_3
				}
			# }
		}
		picture = archetype_heavy_tank_equipment
		type = armor
		group_by = archetype
		interface_category = interface_category_armor
		priority = 2000
		
		module_slots = {

			turret_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_light_turret_type
					tank_medium_turret_type
					tank_heavy_turret_type
				}
			}
			
			main_armament_slot = {
				required = yes
				allowed_module_categories = {
					tank_small_main_armament
					tank_flamethrower
				}
			}

			suspension_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_suspension_type
				}
			}

			armor_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_armor_type
				}
			}

			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_engine_type
				}
			}

			special_type_slot_1 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					tank_secondary_turret
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_2 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_3 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_4 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

		}
		# R56
		module_count_limit = { module = r56_tank_improved_optics count < 2 }
		module_count_limit = { module = r56_tank_hull_lmg count < 2 }
		module_count_limit = { module = additional_machine_guns count < 2 }
		module_count_limit = { module = r56_tank_supercharger count < 2 }
		module_count_limit = { module = r56_tank_electro_mechanical_fire_control count < 2 }
		module_count_limit = { category = r56_tank_rangefinder_category count < 2 }
		###
		module_count_limit = {
			module = sloped_armor
			count < 2
		}	
		module_count_limit = {
			category = tank_radio_module
			count < 2
		}

		module_count_limit = {
			module = amphibious_drive
			count < 2
		}
		module_count_limit = {
			module = wet_ammo_storage
			count < 2
		}

		module_count_limit = {
			module = squeezebore_adaptor
			count < 2
		}

		module_count_limit = {
			module = armor_skirts
			count < 2
		}

		module_count_limit = {
			module = dozer_blade
			count < 2
		}

		module_count_limit = {
			module = easy_maintenance
			count < 2
		}
		module_count_limit = {
			module = auto_loader
			count < 2
		}
		module_count_limit = {
			module = stabilizer
			count < 2
		}
		default_modules = {
			main_armament_slot = empty
			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_gasoline_engine
		}

		fuel_consumption = 0
		maximum_speed = 3
		build_cost_ic = 10
		reliability = 0.75
		armor_value = 30
		hardness = 0.5 #RT56RPMITAKA changed from 0.95
		breakthrough = -10 #RT56RPMITAKA
		resources = {
			steel = 1
		}

		lend_lease_cost = 14

		manpower = 2
		scaled_by_reliability = { #RT56RPMITAKA vanilla thing
			max_strength = 0.5
		}

	}

	heavy_tank_chassis_0 = { #interwar heavy tanks
		abbreviation = "hv0"
		derived_variant_name = heavy_tank_equipment_0
		visual_level = 0
		year = 1922
		archetype = heavy_tank_chassis
		priority = 2000
		module_slots = inherit
		upgrades = {
			tank_nsb_engine_upgrade
			tank_nsb_armor_upgrade
		}
		maximum_speed = 3
		build_cost_ic = 10
		reliability = 0.65 #RT56RPMITAKA changed from 0.75
		armor_value = 35

		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = -0.05
			hard_attack = -0.05
			air_attack = -0.05
		}
	}

	heavy_tank_chassis_1 = {
		abbreviation = "hv1"
		derived_variant_name = heavy_tank_equipment_1
		visual_level = 0
		year = 1934
		archetype = heavy_tank_chassis
		parent = heavy_tank_chassis_0
		priority = 2000
		module_slots = inherit
		armor_value = 45 #RT56RPMITAKA changed from 55
		maximum_speed = 5
		reliability = 0.75 #RT56RPMITAKA changed from 0.80
		hardness = 0.9 #RT56RPMITAKA
		breakthrough = 0 #RT56RPMITAKA
		}
	
		heavy_tank_chassis_2 = {
		abbreviation = "hv2"
		derived_variant_name = heavy_tank_equipment_2
		visual_level = 1
		year = 1940
		archetype = heavy_tank_chassis
		parent = heavy_tank_chassis_1
		priority = 2000
		module_slots = inherit
		build_cost_ic = 10
		maximum_speed = 5
		reliability = 1 #RT56RPMITAKA changed from 1.1
		armor_value = 60
		breakthrough = 5 #RT56RPMITAKA
		hardness = 0.95 #RT56RPMITAKA
		resources = {
			steel = 1
#			chromium = 1 #RT56RPMITAKA
		}

		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = 0.05
			hard_attack = 0.05
			air_attack = 0.05
		}
	}

	heavy_tank_chassis_3 = {
		abbreviation = "hv3"
		derived_variant_name = heavy_tank_equipment_3
		visual_level = 2
		year = 1943
		archetype = heavy_tank_chassis
		parent = heavy_tank_chassis_2
		priority = 2000
		module_slots = inherit
		build_cost_ic = 10 #RT56RPMITAKA changed from 12
		maximum_speed = 5
		reliability = 1.2
		armor_value = 75
		hardness = 0.95 #RT56RPMITAKA
		breakthrough = 10 #RT56RPMITAKA
		fuel_consumption = -0.2 #RT56RPMITAKA
		resources = {
			steel = 1 #RT56RPMITAKA changed from 1
			chromium = 1
		}

		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = 0.1
			hard_attack = 0.1
			air_attack = 0.1
		}	
	}

	modern_tank_chassis = {
		year = 1948
		is_archetype = yes
		is_buildable = no
		can_be_produced = {
			# if = { # R56
			# 	limit = {
			# 		has_dlc = "Arms Against Tyranny"
			# 	}
			# 	NOT = {
			# 		has_idea = BUL_army_restrictions_aat
			# 	}
			# }
			# else = {
				NOT = { # R56
					has_idea = BUL_army_restrictions
					has_idea = MPL_mandate
					has_idea = GER_treaty_of_versailles
					has_idea = GER_treaty_of_versailles_2
					has_idea = GER_treaty_of_versailles_3
				}
			# }
		}
		picture = archetype_modern_tank_equipment
		type = armor
		group_by = archetype
		interface_category = interface_category_armor
		priority = 2000

		module_slots = {

			turret_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_light_turret_type
					tank_medium_turret_type
					tank_heavy_turret_type
					tank_modern_turret_type
				}
			}
			
			main_armament_slot = {
				required = yes
				allowed_module_categories = {
					tank_small_main_armament
				}
			}

			suspension_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_suspension_type
				}
			}

			armor_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_armor_type
				}
			}

			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_engine_type
				}
			}

			special_type_slot_1 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_2 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_3 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_4 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					r56_tank_rangefinder_category # R56
				}
			}

		}
		# R56
		module_count_limit = { module = r56_tank_improved_optics count < 2 }
		module_count_limit = { module = r56_tank_supercharger count < 2 }
		module_count_limit = { module = r56_tank_hull_lmg count < 2 }
		module_count_limit = { module = additional_machine_guns count < 2 }
		module_count_limit = { module = r56_tank_electro_mechanical_fire_control count < 2 }
		module_count_limit = { category = r56_tank_rangefinder_category count < 2 }
		###
		module_count_limit = {
			module = sloped_armor
			count < 2
		}	
		module_count_limit = {
			category = tank_radio_module
			count < 2
		}
		module_count_limit = {
			module = amphibious_drive
			count < 1
		}

		module_count_limit = {
			module = wet_ammo_storage
			count < 2
		}

		module_count_limit = {
			module = squeezebore_adaptor
			count < 2
		}

		module_count_limit = {
			module = armor_skirts
			count < 2
		}

		module_count_limit = {
			module = dozer_blade
			count < 2
		}

		module_count_limit = {
			module = easy_maintenance
			count < 2
		}
		module_count_limit = {
			module = auto_loader
			count < 2
		}

		module_count_limit = {
			module = stabilizer
			count < 2
		}

		default_modules = {
			main_armament_slot = empty
			turret_type_slot = tank_modern_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
		}

		fuel_consumption = 0
		maximum_speed = 7
		build_cost_ic = 6
		reliability = 1.2
		armor_value = 65
		hardness = 0.95
		resources = {
			steel = 2
			chromium = 1
		}

		lend_lease_cost = 13

		manpower = 2
		scaled_by_reliability = { #RT56RPMITAKA vanilla thing
			max_strength = 0.5
		}
	}

	modern_tank_chassis_1 = {
		abbreviation = "mbt0"
		derived_variant_name = modern_tank_equipment_1
		visual_level = 0
		year = 1948
		archetype = modern_tank_chassis
		priority = 2000
		module_slots = inherit

		upgrades = {
			tank_nsb_engine_upgrade
			tank_nsb_armor_upgrade
		}


		module_add_stats_multiplier = { #RT56RPMITAKA vanilla thing
			soft_attack = 0.15
			hard_attack = 0.15
			air_attack = 0.15
		}
	}
	modern_tank_chassis_2 = { # R56
		abbreviation = "mbt1"
		derived_variant_name = modern_tank_equipment_2
		visual_level = 0
		year = 1950
		archetype = modern_tank_chassis
		parent = modern_tank_chassis_1
		priority = 2000
		module_slots = inherit

		fuel_consumption = 0
		maximum_speed = 8
		build_cost_ic = 10
		reliability = 1.3
		armor_value = 75
		hardness = 0.95
		resources = {
			steel = 3
			chromium = 1
		}

		module_add_stats_multiplier = { #RT56RPMITAKA since this is road addition, it will be slighty better than last, possible rework
			soft_attack = 0.175
			hard_attack = 0.175
			air_attack = 0.175
		}

	}

	super_heavy_tank_chassis = {
		year = 1948
		is_archetype = yes
		is_buildable = no
		can_be_produced = {
			# if = { # R56
			# 	limit = {
			# 		has_dlc = "Arms Against Tyranny"
			# 	}
			# 	NOT = {
			# 		has_idea = BUL_army_restrictions_aat
			# 	}
			# }
			# else = {
				NOT = { # R56
					has_idea = BUL_army_restrictions
					has_idea = MPL_mandate
					has_idea = GER_treaty_of_versailles
					has_idea = GER_treaty_of_versailles_2
					has_idea = GER_treaty_of_versailles_3
				}
			# }
		}
		picture = archetype_super_heavy_tank_equipment
		type = armor
		group_by = archetype
		interface_category = interface_category_armor
		priority = 2000

		module_slots = {
			turret_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_medium_turret_type # R56
					tank_heavy_turret_type # R56
					tank_super_heavy_turret_type
				}
			}
		
			main_armament_slot = {
				required = yes
				allowed_module_categories = {
					tank_small_main_armament
				}
			}

			suspension_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_suspension_type
				}
			}

			armor_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_armor_type
				}
			}

			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_engine_type
				}
			}

			special_type_slot_1 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
					tank_secondary_turret
					r56_tank_coaxial_support_cannon_category # R56
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_2 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_coaxial_support_cannon_category # R56
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_3 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_coaxial_support_cannon_category # R56
					r56_tank_rangefinder_category # R56
				}
			}

			special_type_slot_4 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_secondary_turret
					tank_radio_module
					r56_tank_coaxial_support_cannon_category # R56
					r56_tank_rangefinder_category # R56
				}
			}

		}
		# R56
		module_count_limit = { module = r56_tank_supercharger count < 2 }
		module_count_limit = { module = r56_tank_improved_optics count < 2 }
		module_count_limit = { module = r56_tank_hull_lmg count < 2 }
		module_count_limit = { module = additional_machine_guns count < 2 }
		module_count_limit = { module = r56_tank_electro_mechanical_fire_control count < 2 }
		module_count_limit = { category = r56_tank_rangefinder_category count < 2 }
		module_count_limit = { module = r56_tank_coaxial_support_cannon count < 2 }
		###
		module_count_limit = {
			module = sloped_armor
			count < 2
		}	
		module_count_limit = {
			category = tank_radio_module
			count < 2
		}
		module_count_limit = {
			module = amphibious_drive
			count < 1
		}
		module_count_limit = {
			module = wet_ammo_storage
			count < 2
		}

		module_count_limit = {
			module = squeezebore_adaptor
			count < 2
		}

		module_count_limit = {
			module = armor_skirts
			count < 2
		}

		module_count_limit = {
			module = dozer_blade
			count < 2
		}

		module_count_limit = {
			module = easy_maintenance
			count < 2
		}
		module_count_limit = {
			module = auto_loader
			count < 2
		}
		module_count_limit = {
			module = stabilizer
			count < 2
		}
		default_modules = {
			main_armament_slot = empty
			turret_type_slot = tank_super_heavy_three_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
		}

		fuel_consumption = 0
		maximum_speed = 4
		build_cost_ic = 28
		reliability = 1
		armor_value = 90
		hardness = 0 #Hardness doesn't apply to support comapnies, this must be changed if they every become a line battalion. #Was 1
		resources = {
			steel = 3
			chromium = 2
		}

		lend_lease_cost = 20

		manpower = 2
		scaled_by_reliability = { #RT56RPMITAKA vanilla thing
			max_strength = 0.5
		}
	}

	super_heavy_tank_chassis_1 = {
		abbreviation = "sh0"
		derived_variant_name = super_heavy_tank_equipment_1
		visual_level = 0
		year = 1943
		archetype = super_heavy_tank_chassis
		priority = 2000
		module_slots = inherit
		upgrades = {
			tank_nsb_engine_upgrade
			tank_nsb_armor_upgrade
		}
	}

	amphibious_tank_chassis = {
		year = 1936
		is_archetype = yes
		is_buildable = no
		can_be_produced = {
			# if = { # R56
			# 	limit = {
			# 		has_dlc = "Arms Against Tyranny"
			# 	}
			# 	NOT = {
			# 		has_idea = BUL_army_restrictions_aat
			# 	}
			# }
			# else = {
				NOT = { # R56
					has_idea = BUL_army_restrictions
					has_idea = MPL_mandate
					has_idea = GER_treaty_of_versailles
					has_idea = GER_treaty_of_versailles_2
					has_idea = GER_treaty_of_versailles_3
				}
			# }
		}
		picture = archetype_amphibious_tank_equipment
		type = armor
		group_by = archetype
		interface_category = interface_category_armor
		priority = 2000

		module_slots = {
		
			turret_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_light_turret_type
				}
			}
			
			main_armament_slot = {
				required = yes
				allowed_module_categories = {
					tank_small_main_armament
				}
			}

			suspension_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_suspension_type
				}
			}

			armor_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_armor_type
				}
			}

			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					tank_engine_type
				}
			}

			special_type_slot_1 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
				}
			}

			special_type_slot_2 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
				}
			}

			special_type_slot_3 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
				}
			}

			special_type_slot_4 = {
				required = no
				allowed_module_categories = {
					tank_special_module
					tank_radio_module
				}
			}

		}
		# R56
		module_count_limit = { module = r56_tank_supercharger count < 2 }
		module_count_limit = { module = r56_tank_improved_optics count < 2 }
		module_count_limit = { module = r56_tank_hull_lmg count < 2 }
		module_count_limit = { module = additional_machine_guns count < 2 }
		module_count_limit = { module = r56_tank_electro_mechanical_fire_control count < 2 }
		module_count_limit = { category = r56_tank_rangefinder_category count < 2 }
		###
		module_count_limit = {
			module = sloped_armor
			count < 2
		}	
		module_count_limit = {
			category = tank_radio_module
			count < 2
		}

		module_count_limit = {
			module = amphibious_drive
			count < 1
		}
		module_count_limit = {
			module = wet_ammo_storage
			count < 2
		}

		module_count_limit = {
			module = squeezebore_adaptor
			count < 2
		}

		module_count_limit = {
			module = armor_skirts
			count < 2
		}

		module_count_limit = {
			module = dozer_blade
			count < 2
		}

		module_count_limit = {
			module = easy_maintenance
			count < 2
		}
		module_count_limit = {
			module = auto_loader
			count < 2
		}

		module_count_limit = {
			module = stabilizer
			count < 2
		}

		default_modules = {
			main_armament_slot = empty
			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
		}

		fuel_consumption = 0
		maximum_speed = 5
		build_cost_ic = 4.5
		reliability = 1.1
		armor_value = 15
		hardness = 0.85
		resources = {
			steel = 1
		}

		lend_lease_cost = 10

		manpower = 2
		scaled_by_reliability = { #RT56RPMITAKA vanilla thing
			max_strength = 0.5
		}
	}

	amphibious_tank_chassis_1 = {
		abbreviation = "am0"
		derived_variant_name = amphibious_tank_equipment_1
		visual_level = 0
		year = 1940
		archetype = amphibious_tank_chassis
		priority = 2000
		upgrades = {
			tank_nsb_engine_upgrade
			tank_nsb_armor_upgrade
		}
		module_slots = inherit
	}




	###################################
	######## SPECIAL PROJECTS #########
	###################################

	land_cruiser_chassis = {
		year = 1945
		is_archetype = yes
		is_buildable = no
		can_be_produced = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				NOT = {
					has_idea = BUL_army_restrictions_aat
				}
			}
			else = {
				NOT = {
					has_idea = BUL_army_restrictions
				}
			}
		}
		picture = archetype_super_heavy_tank_equipment
		type = armor
		group_by = archetype
		interface_category = interface_category_armor
		priority = 2000

		max_military_factories = 5

		module_slots = {
			lc_main_armament_slot = {
				required = yes
				allowed_module_categories = {
					lc_main_armament
				}
			}

			lc_secondary_armament_slot = {
				required = no
				allowed_module_categories = {
					lc_secondary_armament
				}
			}

			lc_special_features_slot_1 = {
				required = no
				allowed_module_categories = {
					lc_radio_module
					lc_aerial_deployment
					lc_external_features
					lc_structural_features
				}
			}

			lc_special_features_slot_2 = {
				required = no
				allowed_module_categories = {
					lc_radio_module
					lc_aerial_deployment
					lc_external_features
					lc_structural_features
				}
			}

			lc_special_features_slot_3 = {
				required = no
				allowed_module_categories = {
					lc_radio_module
					lc_aerial_deployment
					lc_external_features
					lc_structural_features
				}
			}
				
			lc_additional_armament_slot_1 = {
				required = no
				allowed_module_categories = {
					lc_additional_armament
				}
			}

			lc_additional_armament_slot_2 = {
				required = no
				allowed_module_categories = {
					lc_additional_armament
				}
			}

			lc_additional_armament_slot_3 = {
				required = no
				allowed_module_categories = {
					lc_additional_armament
				}
			}

			lc_additional_armament_slot_4 = {
				required = no
				allowed_module_categories = {
					lc_additional_armament
				}
			}
		}

		module_count_limit = {
			module = lc_assault_gun
			count < 2
		}

		module_count_limit = {
			module = lc_high_velocity_cannon_turret
			count < 3
		}

		module_count_limit = {
			module = lc_flamethrower_turret
			count < 3
		}

		module_count_limit = {
			module = lc_rocket_launcher
			count < 3
		}

		module_count_limit = {
			category = lc_radio_module
			count < 2
		}

		module_count_limit = {
			module = lc_radar
			count < 2
		}

		module_count_limit = {
			category = lc_aerial_deployment
			count < 2
		}
		
		module_count_limit = {
			module = lc_armored_skirts
			count < 2
		}

		module_count_limit = {
			module = lc_obstacle_clearance_gear
			count < 2
		}

		module_count_limit = {
			module = lc_wet_ammunition_storage
			count < 2
		}

		module_count_limit = {
			module = lc_smoke_generators
			count < 2
		}

		module_count_limit = {
			module = lc_stabilizers
			count < 2
		}	

		default_modules = {
			#lc_main_armament_slot = lc_heavy_naval_guns
			#lc_secondary_armament_slot = lc_medium_naval_guns
		}

		fuel_consumption = 12
		maximum_speed = 5 #shouldn't be slower than infantry, or we ran into problems
		build_cost_ic = 330
		reliability = 1
		armor_value = 150
		defense = 12
		hardness = 0 #Hardness doesn't apply to support companies, this must be changed if they every become a line battalion. #Was 10
		
		resources = {
			steel = 8
			chromium = 4
		}

		lend_lease_cost = 80

		manpower = 30 #Other Tanks: 2

	}

	land_cruiser_chassis_1 = {
		abbreviation = "LCR"
		derived_variant_name = land_cruiser_equipment_1
		visual_level = 0
		year = 1945
		archetype = land_cruiser_chassis
		priority = 2000
		module_slots = inherit
		upgrades = {
			tank_nsb_engine_upgrade
			tank_nsb_armor_upgrade
		}
	}

}
