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

addition_of_armored_car_chassis_0_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		create_equipment_variant = {
			type = armored_car_chassis_0
			modules = {
				main_armament_slot = tank_heavy_machine_gun
			}
			upgrades = {
				tank_AT_reliability_upgrade = 0
				tank_nsb_armor_upgrade = 0
				tank_nsb_engine_upgrade = 0
			}
		}
	}
}

addition_of_armored_car_chassis_1_variant_effect = {

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

addition_of_armored_car_chassis_2_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = advanced_infantry_weapons
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_2
				modules = {
					main_armament_slot = tank_heavy_machine_gun_3
					special_type_slot_2 = smoke_launchers
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 1
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = {
			limit = {
				has_tech = improved_infantry_weapons
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_2
				modules = {
					main_armament_slot = tank_heavy_machine_gun_2
					special_type_slot_2 = smoke_launchers
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 1
					tank_nsb_engine_upgrade = 4
				}
			}
		}
	}
}

addition_of_armored_car_chassis_3_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = antiair2
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_3
				modules = {
					main_armament_slot = tank_auto_cannon_2
					special_type_slot_2 = smoke_launchers
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = { 
			limit = {
				has_tech = interwar_antiair
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_3
				modules = {
					main_armament_slot = tank_auto_cannon
					special_type_slot_2 = smoke_launchers
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = {
			limit = {
				has_tech = advanced_infantry_weapons
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_3
				modules = {
					main_armament_slot = tank_heavy_machine_gun_3
					special_type_slot_2 = smoke_launchers
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 4
				}
			}
		}
		else_if = {
			limit = {
				has_tech = improved_infantry_weapons
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_3
				modules = {
					main_armament_slot = tank_heavy_machine_gun_2
					special_type_slot_2 = smoke_launchers
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 4
				}
			}
		}
	}
}

addition_of_armored_car_chassis_4_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = antiair8
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_4
				modules = {
					main_armament_slot = tank_auto_cannon_4
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair5
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_4
				modules = {
					main_armament_slot = tank_auto_cannon_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair2
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_4
				modules = {
					main_armament_slot = tank_auto_cannon_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = { 
			limit = {
				has_tech = interwar_antiair
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_4
				modules = {
					main_armament_slot = tank_auto_cannon
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = infantry_weapons4_1
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_4
				modules = {
					main_armament_slot = tank_heavy_machine_gun_4
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = advanced_infantry_weapons
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_4
				modules = {
					main_armament_slot = tank_heavy_machine_gun_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
	}
}

addition_of_armored_car_chassis_5_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = antiair8
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_5
				modules = {
					main_armament_slot = tank_auto_cannon_4
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair5
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_5
				modules = {
					main_armament_slot = tank_auto_cannon_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair2
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_5
				modules = {
					main_armament_slot = tank_auto_cannon_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = { 
			limit = {
				has_tech = interwar_antiair
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_5
				modules = {
					main_armament_slot = tank_auto_cannon
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = infantry_weapons5_1
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_5
				modules = {
					main_armament_slot = tank_heavy_machine_gun_5
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = infantry_weapons4_1
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_5
				modules = {
					main_armament_slot = tank_heavy_machine_gun_4
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
	}
}

addition_of_armored_car_chassis_6_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = antiair11
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_6
				modules = {
					main_armament_slot = tank_auto_cannon_5
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair8
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_6
				modules = {
					main_armament_slot = tank_auto_cannon_4
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair5
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_6
				modules = {
					main_armament_slot = tank_auto_cannon_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair2
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_6
				modules = {
					main_armament_slot = tank_auto_cannon_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = { 
			limit = {
				has_tech = interwar_antiair
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_6
				modules = {
					main_armament_slot = tank_auto_cannon
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = infantry_weapons6_1
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_6
				modules = {
					main_armament_slot = tank_heavy_machine_gun_6
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = infantry_weapons5_1
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_6
				modules = {
					main_armament_slot = tank_heavy_machine_gun_5
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
	}
}

addition_of_armored_car_chassis_7_variant_effect = {

	if = {
		limit = {
			ROOT = {
				is_ai = yes
			}
		}
		
		if = {
			limit = {
				has_tech = antiair14
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_auto_cannon_6
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair11
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_auto_cannon_5
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair8
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_auto_cannon_4
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair5
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_auto_cannon_3
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = antiair2
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_auto_cannon_2
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = { 
			limit = {
				has_tech = interwar_antiair
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_auto_cannon
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = infantry_weapons6_1
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_heavy_machine_gun_6
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
		else_if = {
			limit = {
				has_tech = infantry_weapons5_1
			}
			
			create_equipment_variant = {
				type = armored_car_chassis_7
				modules = {
					main_armament_slot = tank_heavy_machine_gun_5
				}
				upgrades = {
					tank_AT_reliability_upgrade = 0
					tank_nsb_armor_upgrade = 4
					tank_nsb_engine_upgrade = 0
				}
			}
		}
	}
}
