#	Example:
#
#	example_effect = {
#		add_political_power = 66
#		add_popularity = {
#			ideology = fascism
#			popularity = 0.33
#		}
#	}
#
#
#	In a script file:
#
#	effect = {
#		example_effect = yes
#	}
#

addition_of_mechanized_chassis_1_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = improved_infantry_weapons
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_1
				modules = {
					main_armament_slot = tank_heavy_machine_gun_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else = {
			create_equipment_variant = {
				type = mechanized_chassis_1
				modules = {
					main_armament_slot = tank_heavy_machine_gun
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
	}
}

addition_of_mechanized_chassis_2_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = advanced_infantry_weapons
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_2
				modules = {
					main_armament_slot = tank_heavy_machine_gun_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = {
			limit = {
				has_tech = improved_infantry_weapons
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_2
				modules = {
					main_armament_slot = tank_heavy_machine_gun_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else = {
			create_equipment_variant = {
				type = mechanized_chassis_2
				modules = {
					main_armament_slot = tank_heavy_machine_gun
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
	}
}

addition_of_mechanized_chassis_3_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = advanced_infantry_weapons
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_3
				modules = {
					main_armament_slot = tank_heavy_machine_gun_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = {
			limit = {
				has_tech = improved_infantry_weapons
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_3
				modules = {
					main_armament_slot = tank_heavy_machine_gun_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else = {
			create_equipment_variant = {
				type = mechanized_chassis_3
				modules = {
					main_armament_slot = tank_heavy_machine_gun
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
	}
}

addition_of_mechanized_chassis_4_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = infantry_weapons4_1
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_4
				modules = {
					main_armament_slot = tank_heavy_machine_gun_4
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = {
			limit = {
				has_tech = advanced_infantry_weapons
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_4
				modules = {
					main_armament_slot = tank_heavy_machine_gun_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = {
			limit = {
				has_tech = improved_infantry_weapons
			}
			
			create_equipment_variant = {
				type = mechanized_chassis_4
				modules = {
					main_armament_slot = tank_heavy_machine_gun_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else = {
			create_equipment_variant = {
				type = mechanized_chassis_4
				modules = {
					main_armament_slot = tank_heavy_machine_gun
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 0
					tank_nsb_engine_upgrade = 4
				}
			}
		}
	}
}

addition_of_mechanized_chassis_5_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = engine_tech_2
			}
			if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
		}
		else_if = {
			limit = {
				has_tech = engine_tech_1
			}
			if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
		}
		else = {
			if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_5
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
		}
	}
}

addition_of_mechanized_chassis_6_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = engine_tech_2
			}
			if = {
				limit = {
					has_tech = antiair11
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons6_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
		}
		else_if = {
			limit = {
				has_tech = engine_tech_1
			}
			if = {
				limit = {
					has_tech = antiair11
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons6_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
		}
		else = {
			if = {
				limit = {
					has_tech = antiair11
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons6_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_6
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
		}
	}
}

addition_of_mechanized_chassis_7_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = engine_tech_2
			}
			if = {
				limit = {
					has_tech = antiair14
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair11
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons6_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 14
					}
				}
			}
		}
		else_if = {
			limit = {
				has_tech = engine_tech_1
			}
			if = {
				limit = {
					has_tech = antiair14
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair11
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons6_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 9
					}
				}
			}
		}
		else = {
			if = {
				limit = {
					has_tech = antiair14
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair11
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair8
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_4
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair5
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = antiair2
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = interwar_antiair
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_auto_cannon
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons6_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_6
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = infantry_weapons4_1
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_5
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = advanced_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_3
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else_if = {
				limit = {
					has_tech = improved_infantry_weapons
				}
				
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun_2
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
			else = {
				create_equipment_variant = {
					type = mechanized_chassis_7
					modules = {
						main_armament_slot = tank_heavy_machine_gun
						turret_type_slot = tank_light_one_man_tank_turret
					}
					upgrades = {
						tank_AT_reliability_upgrade = 0
						tank_nsb_armor_upgrade = 0
						tank_nsb_engine_upgrade = 4
					}
				}
			}
		}
	}
}
