######################
### CARAPACE ARMOR ###
######################

####
# 6#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_ARMOR_6"
	size = small

	icon = "GFX_avc_ship_part_bioship_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_BIOSHIP_ARMOR_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 41
		}		
		upkeep = {
			food = 0.76
			alloys = 0.152
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 26
		ship_armor_add = 260
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.05
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < 0.5
		}
		ship_armor_regen_add_static = 0.325
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_small_6
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_ARMOR_6"
	size = medium

	icon = "GFX_avc_ship_part_bioship_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_BIOSHIP_ARMOR_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 103
		}		
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 78
		ship_armor_add = 780
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.05
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 0.975
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_medium_6
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_ARMOR_6"
	size = large

	icon = "GFX_avc_ship_part_bioship_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_BIOSHIP_ARMOR_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_LARGE_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 258
		}		
		upkeep = {
			food = 3.04
			alloys = 0.608
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 234
		ship_armor_add = 2340
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.05
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 2.925
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_large_6
}

####
# 7#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_ARMOR_7"
	size = small

	icon = "GFX_avc_ship_part_bioship_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_BIOSHIP_ARMOR_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 61
		}		
		upkeep = {
			food = 1.14
			alloys = 0.228
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 32
		ship_armor_add = 320
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.06
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < 0.5
		}
		ship_armor_regen_add_static = 0.40
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_small_7
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_ARMOR_7"
	size = medium

	icon = "GFX_avc_ship_part_bioship_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_BIOSHIP_ARMOR_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 155
		}		
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 96
		ship_armor_add = 960
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.06
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 1.20
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_medium_7
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_ARMOR_7"
	size = large

	icon = "GFX_avc_ship_part_bioship_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_BIOSHIP_ARMOR_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_LARGE_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 387
		}		
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 288
		ship_armor_add = 2880
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.06
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 3.60
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_large_7
}

####
# 8#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_ARMOR_8"
	size = small

	icon = "GFX_avc_ship_part_bioship_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_BIOSHIP_ARMOR_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 91
		}		
		upkeep = {
			food = 1.71
			alloys = 0.342
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 40
		ship_armor_add = 400
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.07
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < 0.5
		}
		ship_armor_regen_add_static = 0.50
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_small_8
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_ARMOR_8"
	size = medium

	icon = "GFX_avc_ship_part_bioship_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_BIOSHIP_ARMOR_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 232
		}		
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 120
		ship_armor_add = 1200
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.07
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 1.50
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_medium_8
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_ARMOR_8"
	size = large

	icon = "GFX_avc_ship_part_bioship_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_BIOSHIP_ARMOR_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_LARGE_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 581
		}		
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 360
		ship_armor_add = 3600
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.07
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 4.50
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_large_8
}

####
# 9#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_ARMOR_9"
	size = small

	icon = "GFX_avc_ship_part_bioship_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_BIOSHIP_ARMOR_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 136
		}		
		upkeep = {
			food = 2.57
			alloys = 0.514
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 50
		ship_armor_add = 500
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.08
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < 0.5
		}
		ship_armor_regen_add_static = 0.60
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_small_9
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_ARMOR_9"
	size = medium

	icon = "GFX_avc_ship_part_bioship_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_BIOSHIP_ARMOR_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 348
		}		
		upkeep = {
			food = 5.13
			alloys = 1.026
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 150
		ship_armor_add = 1500
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.08
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 1.80
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_medium_9
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_ARMOR_9"
	size = large

	icon = "GFX_avc_ship_part_bioship_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_BIOSHIP_ARMOR_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_LARGE_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 871
		}		
		upkeep = {
			food = 10.26
			alloys = 2.052
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 450
		ship_armor_add = 4500
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.08
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 5.40
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_large_9
}

####
#10#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_ARMOR_10"
	size = small

	icon = "GFX_avc_ship_part_bioship_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_BIOSHIP_ARMOR_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 204
		}		
		upkeep = {
			food = 3.85
			alloys = 0.77
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 63
		ship_armor_add = 625
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.09
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < 0.5
		}
		ship_armor_regen_add_static = 0.75
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_small_10
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_ARMOR_10"
	size = medium

	icon = "GFX_avc_ship_part_bioship_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_BIOSHIP_ARMOR_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 521
		}		
		upkeep = {
			food = 7.70
			alloys = 1.54
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 188
		ship_armor_add = 1875
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.09
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 2.25
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_medium_10
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_ARMOR_10"
	size = large

	icon = "GFX_avc_ship_part_bioship_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_BIOSHIP_ARMOR_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 1306
		}		
		upkeep = {
			food = 15.39
			alloys = 3.078
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 563
		ship_armor_add = 5625
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.09
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 6.75
	}
	
	custom_tooltip = avc_bio_ship_armor_regen_large_10
}

################
# Dragon Armor #
################

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_DRAGON_ARMOR_2"
	size = small

	icon = "GFX_avc_ship_part_bioship_dragon_armor_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_dragon_armor_2" }
	component_set = "AVC_BIOSHIP_DRAGON_ARMOR_2"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 306
		}		
		upkeep = {
			food = 5.77
			alloys = 1.154
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 75
		ship_armor_add = 750
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.10
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < 0.5
		}
		ship_armor_regen_add_static = 1.00
	}
	
	custom_tooltip = avc_bio_ship_daragon_armor_regen_small_2
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_DRAGON_ARMOR_2"
	size = medium

	icon = "GFX_avc_ship_part_bioship_dragon_armor_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_dragon_armor_2" }
	component_set = "AVC_BIOSHIP_DRAGON_ARMOR_2"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 782
		}		
		upkeep = {
			food = 11.54
			alloys = 2.308
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 225
		ship_armor_add = 2250
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.10
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 3.00
	}
	
	custom_tooltip = avc_bio_ship_dragon_armor_regen_medium_2
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_DRAGON_ARMOR_2"
	size = large

	icon = "GFX_avc_ship_part_bioship_dragon_armor_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_dragon_armor_2" }
	component_set = "AVC_BIOSHIP_DRAGON_ARMOR_2"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 1959
		}		
		upkeep = {
			food = 23.09
			alloys = 4.618
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 675
		ship_armor_add = 6750
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.10
	}
	triggered_ship_modifier = {
		potential = {
			has_armor_percentage < @bio_ship_armor_regen_threshold
		}
		ship_armor_regen_add_static = 9.00
	}
	
	custom_tooltip = avc_bio_ship_dragon_armor_regen_large_2
}


#################
### Infernals ###
#################

######################
### CARAPACE ARMOR ###
######################

####
# 6#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_LM_ARMOR_6"
	size = small

	icon = "GFX_ship_part_avc_bioship_lm_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_LM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 41
		}		
		upkeep = {
			food = 0.76
			alloys = 0.152
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 26
		ship_armor_add = 260
		ship_armor_regen_add_static = 0.70
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.05
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_6"
	size = medium

	icon = "GFX_ship_part_avc_bioship_lm_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 103
		}		
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 78
		ship_armor_add = 780
		ship_armor_regen_add_static = 1.90
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.05
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_LM_ARMOR_6"
	size = large

	icon = "GFX_ship_part_avc_bioship_lm_armor_6"
	icon_frame = 1

	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_6"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}

	upgrades_to = "AVC_BIOSHIP_LARGE_LM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 258
		}		
		upkeep = {
			food = 3.04
			alloys = 0.608
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 234
		ship_armor_add = 2340
		ship_armor_regen_add_static = 4.80
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.05
	}
}

####
# 7#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_LM_ARMOR_7"
	size = small

	icon = "GFX_ship_part_avc_bioship_lm_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_LM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 61
		}		
		upkeep = {
			food = 1.14
			alloys = 0.228
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 32
		ship_armor_add = 320
		ship_armor_regen_add_static = 0.90
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.06
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_7"
	size = medium

	icon = "GFX_ship_part_avc_bioship_lm_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 155
		}		
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 96
		ship_armor_add = 960
		ship_armor_regen_add_static = 2.50
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.06
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_LM_ARMOR_7"
	size = large

	icon = "GFX_ship_part_avc_bioship_lm_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_LARGE_LM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 387
		}		
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 288
		ship_armor_add = 2880
		ship_armor_regen_add_static = 6.20
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.06
	}
}

####
# 8#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_LM_ARMOR_8"
	size = small

	icon = "GFX_ship_part_avc_bioship_lm_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_LM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 91
		}		
		upkeep = {
			food = 1.71
			alloys = 0.342
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 40
		ship_armor_add = 400
		ship_armor_regen_add_static = 1.20
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.07
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_8"
	size = medium

	icon = "GFX_ship_part_avc_bioship_lm_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 232
		}		
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 120
		ship_armor_add = 1200
		ship_armor_regen_add_static = 3.20
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.07
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_LM_ARMOR_8"
	size = large

	icon = "GFX_ship_part_avc_bioship_lm_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_LARGE_LM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 581
		}		
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 360
		ship_armor_add = 3600
		ship_armor_regen_add_static = 8.00
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.07
	}
}

####
# 9#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_LM_ARMOR_9"
	size = small

	icon = "GFX_ship_part_avc_bioship_lm_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SMALL_LM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 136
		}		
		upkeep = {
			food = 2.57
			alloys = 0.514
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 50
		ship_armor_add = 500
		ship_armor_regen_add_static = 1.60
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.08
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_9"
	size = medium

	icon = "GFX_ship_part_avc_bioship_lm_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 348
		}		
		upkeep = {
			food = 5.13
			alloys = 1.026
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 150
		ship_armor_add = 1500
		ship_armor_regen_add_static = 4.20
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.08
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_LM_ARMOR_9"
	size = large

	icon = "GFX_ship_part_avc_bioship_lm_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_LARGE_LM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 871
		}		
		upkeep = {
			food = 10.26
			alloys = 2.052
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 450
		ship_armor_add = 4500
		ship_armor_regen_add_static = 10.40
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.08
	}
}

####
#10#
####

utility_component_template = {
	key = "AVC_BIOSHIP_SMALL_LM_ARMOR_10"
	size = small

	icon = "GFX_ship_part_avc_bioship_lm_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 204
		}		
		upkeep = {
			food = 3.85
			alloys = 0.77
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 63
		ship_armor_add = 625
		ship_armor_regen_add_static = 2.10
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.09
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_10"
	size = medium

	icon = "GFX_ship_part_avc_bioship_lm_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 521
		}		
		upkeep = {
			food = 7.70
			alloys = 1.54
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 188
		ship_armor_add = 1875
		ship_armor_regen_add_static = 5.50
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.09
	}
}

utility_component_template = {
	key = "AVC_BIOSHIP_LARGE_LM_ARMOR_10"
	size = large

	icon = "GFX_ship_part_avc_bioship_lm_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_BIOSHIP_LM_ARMOR_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 1306
		}		
		upkeep = {
			food = 15.39
			alloys = 3.078
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 563
		ship_armor_add = 5625
		ship_armor_regen_add_static = 13.50
	}
	
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.09
	}
}