# Icons set here are the ones show in the actual slot.

### Point Defence 1

weapon_component_template = {
	key = "AVW_PD_4"
	size = point_defence
	type = point_defence
	
	icon = "GFX_avw_ship_part_pd_4"
	icon_frame = 1

	prerequisites = { "tech_avw_pd_tracking_4" }
	component_set = "AVW_PD_4"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	projectile_gfx = "avw_pd_4"
	tags = { weapon_type_point_defense weapon_type_energy }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = "AVW_PD_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 17
		}
		upkeep = {
			energy = 0.17
			alloys = 0.017
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -13
	damage = { min = 5 max = 11 }
	hull_damage = 1
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0.25
	
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.4

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_PD_5"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_pd_5"
	icon_frame = 1

	prerequisites = { "tech_avw_pd_tracking_5" }
	component_set = "AVW_PD_5"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	projectile_gfx = "avw_pd_5"
	tags = { weapon_type_point_defense weapon_type_energy }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = "AVW_PD_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 22
		}
		upkeep = {
			energy = 0.22
			alloys = 0.022
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -17
	damage = { min = 6 max = 14 }
	hull_damage = 1
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0.25
	
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.5

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_PD_6"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_pd_6"
	icon_frame = 1

	prerequisites = { "tech_avw_pd_tracking_6" }
	component_set = "AVW_PD_6"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	projectile_gfx = "avw_pd_6"
	tags = { weapon_type_point_defense weapon_type_energy }
	ai_tags = { weapon_role_point_defense screen }
	resources = {
		category = ship_components
		cost = {
			alloys = 28
		}
		upkeep = {
			energy = 0.28
			alloys = 0.028
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -22
	damage = { min = 8 max = 19 }
	hull_damage = 1
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0.25
	
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.6

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_FLAK_4"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_flak_4"
	icon_frame = 1

	prerequisites = { "tech_avw_flak_batteries_4" }
	component_set = "AVW_FLAK_4"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	projectile_gfx = "avw_flak_pd_4"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = "AVW_FLAK_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 17
		}
		upkeep = {
			energy = 0.17
			alloys = 0.017
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -13
	damage = { min = 5 max = 11 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0.25
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.8

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_FLAK_5"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_flak_5"
	icon_frame = 1

	prerequisites = { "tech_avw_flak_batteries_5" }
	component_set = "AVW_FLAK_5"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	projectile_gfx = "avw_flak_pd_5"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = "AVW_FLAK_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 22
		}
		upkeep = {
			energy = 0.22
			alloys = 0.022
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -17
	damage = { min = 6 max = 14 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0.25
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.9

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_FLAK_6"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_flak_6"
	icon_frame = 1

	prerequisites = { "tech_avw_flak_batteries_6" }
	component_set = "AVW_FLAK_6"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	projectile_gfx = "avw_flak_pd_6"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense screen }
	resources = {
		category = ship_components
		cost = {
			alloys = 28
		}
		upkeep = {
			energy = 0.28
			alloys = 0.028
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -22
	damage = { min = 8 max = 19 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0.25
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 1

	military_power_multiplier = 0.75
}
