#All numbers for balancing are in ...common\scripted_variables\avc_scripted_variables_component_cost.txt

#############
### Armor ###
#############

####
# 6#
####

utility_component_template = {
	key = "AVC_SMALL_ARMOR_6"
	size = small

	icon = "GFX_avc_ship_part_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_ARMOR_6"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_SMALL_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 41
		}		
		upkeep = {
			energy = 0.76
			alloys = 0.152
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 325
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.05
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_ARMOR_6"
	size = medium

	icon = "GFX_avc_ship_part_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_ARMOR_6"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_MEDIUM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 103
		}		
		upkeep = {
			energy = 1.52
			alloys = 0.304
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 975
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.05
	}
}

utility_component_template = {
	key = "AVC_LARGE_ARMOR_6"
	size = large

	icon = "GFX_avc_ship_part_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_ARMOR_6"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_LARGE_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 258
		}		
		upkeep = {
			energy = 3.04
			alloys = 0.608
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 2925
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.05
	}
}

####
# 7#
####

utility_component_template = {
	key = "AVC_SMALL_ARMOR_7"
	size = small

	icon = "GFX_avc_ship_part_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_ARMOR_7"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_SMALL_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 61
		}		
		upkeep = {
			energy = 1.14
			alloys = 0.228
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 400
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.06
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_ARMOR_7"
	size = medium

	icon = "GFX_avc_ship_part_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_ARMOR_7"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_MEDIUM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 155
		}		
		upkeep = {
			energy = 2.28
			alloys = 0.456
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 1200
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.06
	}
}

utility_component_template = {
	key = "AVC_LARGE_ARMOR_7"
	size = large

	icon = "GFX_avc_ship_part_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_ARMOR_7"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_LARGE_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 387
		}		
		upkeep = {
			energy = 4.56
			alloys = 0.912
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 3600
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.06
	}
}

####
# 8#
####

utility_component_template = {
	key = "AVC_SMALL_ARMOR_8"
	size = small

	icon = "GFX_avc_ship_part_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_ARMOR_8"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_SMALL_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 91
		}		
		upkeep = {
			energy = 1.71
			alloys = 0.342
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 500
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.07
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_ARMOR_8"
	size = medium

	icon = "GFX_avc_ship_part_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_ARMOR_8"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_MEDIUM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 232
		}		
		upkeep = {
			energy = 3.42
			alloys = 0.684
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 1500
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.07
	}
}

utility_component_template = {
	key = "AVC_LARGE_ARMOR_8"
	size = large

	icon = "GFX_avc_ship_part_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_ARMOR_8"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_LARGE_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 581
		}		
		upkeep = {
			energy = 6.84
			alloys = 1.368
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 4500
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.07
	}
}

####
# 9#
####

utility_component_template = {
	key = "AVC_SMALL_ARMOR_9"
	size = small

	icon = "GFX_avc_ship_part_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_ARMOR_9"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_SMALL_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 136
		}		
		upkeep = {
			energy = 2.57
			alloys = 0.514
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 625
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.08
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_ARMOR_9"
	size = medium

	icon = "GFX_avc_ship_part_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_ARMOR_9"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_MEDIUM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 348
		}		
		upkeep = {
			energy = 5.13
			alloys = 1.026
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 1875
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.08
	}
}

utility_component_template = {
	key = "AVC_LARGE_ARMOR_9"
	size = large

	icon = "GFX_avc_ship_part_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_ARMOR_9"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_LARGE_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 871
		}		
		upkeep = {
			energy = 10.26
			alloys = 2.052
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 5625
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.08
	}
}

####
#10#
####

utility_component_template = {
	key = "AVC_SMALL_ARMOR_10"
	size = small

	icon = "GFX_avc_ship_part_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_ARMOR_10"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 204
		}		
		upkeep = {
			energy = 3.85
			alloys = 0.77
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 800
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.09
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_ARMOR_10"
	size = medium

	icon = "GFX_avc_ship_part_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_ARMOR_10"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 521
		}		
		upkeep = {
			energy = 7.70
			alloys = 1.54
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 2400
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.09
	}
}

utility_component_template = {
	key = "AVC_LARGE_ARMOR_10"
	size = large

	icon = "GFX_avc_ship_part_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_ARMOR_10"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 1306
		}		
		upkeep = {
			energy = 15.39
			alloys = 3.078
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 7200
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.09
	}
}

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

utility_component_template = {
	key = "AVC_SMALL_DRAGON_ARMOR_2"
	size = small

	icon = "GFX_avc_ship_part_dragon_armor_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_dragon_armor_2" }
	component_set = "AVC_DRAGON_ARMOR_2"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 306
		}		
		upkeep = {
			energy = 5.77
			alloys = 1.154
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 1000
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.10
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_DRAGON_ARMOR_2"
	size = medium

	icon = "GFX_avc_ship_part_dragon_armor_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_dragon_armor_2" }
	component_set = "AVC_DRAGON_ARMOR_2"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 782
		}		
		upkeep = {
			energy = 11.54
			alloys = 2.308
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 3000
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.10
	}
}

utility_component_template = {
	key = "AVC_LARGE_DRAGON_ARMOR_2"
	size = large

	icon = "GFX_avc_ship_part_dragon_armor_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_dragon_armor_2" }
	component_set = "AVC_DRAGON_ARMOR_2"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 1959
		}		
		upkeep = {
			energy = 23.09
			alloys = 4.618
		}
	}

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

	power = 0
	modifier = {
		ship_armor_add = 9000
	}
	ship_modifier = {
		ship_armor_hardening_add = 0.10
	}
}


########################
### Crystal Plating  ###
########################

####
# 3#
####

utility_component_template = {
	key = "AVC_SMALL_CRYSTAL_ARMOR_3"
	size = small

	icon = "GFX_avc_ship_part_crystal_armor_3"
	icon_frame = 1

	prerequisites = { "tech_avc_crystal_armor_3" }
	component_set = "AVC_CRYSTAL_ARMOR_3"
	upgrades_to = "AVC_SMALL_CRYSTAL_ARMOR_4"
	resources = {
		category = ship_components
		cost = {
			rare_crystals = 0.43
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 190
	}
	ship_modifier = {
		ship_damage_reduction_add = 3
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_CRYSTAL_ARMOR_3"
	size = medium

	icon = "GFX_avc_ship_part_crystal_armor_3"
	icon_frame = 1

	prerequisites = { "tech_avc_crystal_armor_3" }
	component_set = "AVC_CRYSTAL_ARMOR_3"
	upgrades_to = "AVC_MEDIUM_CRYSTAL_ARMOR_4"

	resources = {
		category = ship_components
		cost = {
			rare_crystals = 0.86
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 570
	}
	ship_modifier = {
		ship_damage_reduction_add = 4
	}
}

utility_component_template = {
	key = "AVC_LARGE_CRYSTAL_ARMOR_3"
	size = large

	icon = "GFX_avc_ship_part_crystal_armor_3"
	icon_frame = 1
	
	prerequisites = { "tech_avc_crystal_armor_3" }
	component_set = "AVC_CRYSTAL_ARMOR_3"
	upgrades_to = "AVC_LARGE_CRYSTAL_ARMOR_4"
	resources = {
		category = ship_components
		cost = {
			rare_crystals = 1.72
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 1710
	}
	ship_modifier = {
		ship_damage_reduction_add = 5
	}
}

####
# 4#
####

utility_component_template = {
	key = "AVC_SMALL_CRYSTAL_ARMOR_4"
	size = small

	icon = "GFX_avc_ship_part_crystal_armor_4"
	icon_frame = 1
	
	prerequisites = { "tech_avc_crystal_armor_4" }
	component_set = "AVC_CRYSTAL_ARMOR_4"
	resources = {
		category = ship_components
		cost = {
			rare_crystals = 0.56
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 360
	}
	ship_modifier = {
		ship_damage_reduction_add = 4
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_CRYSTAL_ARMOR_4"
	size = medium

	icon = "GFX_avc_ship_part_crystal_armor_4"
	icon_frame = 1

	prerequisites = { "tech_avc_crystal_armor_4" }
	component_set = "AVC_CRYSTAL_ARMOR_4"
	resources = {
		category = ship_components
		cost = {
			rare_crystals = 1.12
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 1080
	}
	ship_modifier = {
		ship_damage_reduction_add = 5
	}
}

utility_component_template = {
	key = "AVC_LARGE_CRYSTAL_ARMOR_4"
	size = large

	icon = "GFX_avc_ship_part_crystal_armor_4"
	icon_frame = 1

	prerequisites = { "tech_avc_crystal_armor_4" }
	component_set = "AVC_CRYSTAL_ARMOR_4"
	resources = {
		category = ship_components
		cost = {
			rare_crystals = 2.24
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}

	power = 0
	modifier = {
		ship_hull_add = 3250
	}
	ship_modifier = {
		ship_damage_reduction_add = 6
	}
}


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

#############
### Armor ###
#############

####
# 6#
####

utility_component_template = {
	key = "AVC_SMALL_LM_ARMOR_6"
	size = small

	icon = "GFX_ship_part_avc_lm_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_LM_ARMOR_6"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_SMALL_LM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 53
		}		
		upkeep = {
			energy = 0.76
			alloys = 0.152
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 325
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.05
	}

}

utility_component_template = {
	key = "AVC_MEDIUM_LM_ARMOR_6"
	size = medium

	icon = "GFX_ship_part_avc_lm_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_LM_ARMOR_6"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_MEDIUM_LM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 133
		}		
		upkeep = {
			energy = 1.52
			alloys = 0.304
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 975
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.05
	}
}

utility_component_template = {
	key = "AVC_LARGE_LM_ARMOR_6"
	size = large

	icon = "GFX_ship_part_avc_lm_armor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_6" }
	component_set = "AVC_LM_ARMOR_6"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_LARGE_LM_ARMOR_7"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 333
		}		
		upkeep = {
			energy = 3.04
			alloys = 0.608
		}
	}

	ai_weight = {
		weight = 30
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 2925
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.05
	}
}

####
# 7#
####

utility_component_template = {
	key = "AVC_SMALL_LM_ARMOR_7"
	size = small

	icon = "GFX_ship_part_avc_lm_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_LM_ARMOR_7"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_SMALL_LM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 80
		}		
		upkeep = {
			energy = 1.14
			alloys = 0.228
		}
	}

	ai_weight = {
		weight = 35
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 400
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.06
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_LM_ARMOR_7"
	size = medium

	icon = "GFX_ship_part_avc_lm_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_LM_ARMOR_7"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_MEDIUM_LM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 200
		}		
		upkeep = {
			energy = 2.28
			alloys = 0.456
		}
	}

	ai_weight = {
		weight = 35
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 1200
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.06
	}
}

utility_component_template = {
	key = "AVC_LARGE_LM_ARMOR_7"
	size = large

	icon = "GFX_ship_part_avc_lm_armor_7"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_7" }
	component_set = "AVC_LM_ARMOR_7"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_LARGE_LM_ARMOR_8"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 500
		}		
		upkeep = {
			energy = 4.56
			alloys = 0.912
		}
	}

	ai_weight = {
		weight = 35
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 3600
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.06
	}
}

####
# 8#
####

utility_component_template = {
	key = "AVC_SMALL_LM_ARMOR_8"
	size = small

	icon = "GFX_ship_part_avc_lm_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_LM_ARMOR_8"

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

	show_tech_unlock_if = {
		is_galvanic_empire = yes
		country_uses_bio_ships = no
	}

	upgrades_to = "AVC_SMALL_LM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 120
		}		
		upkeep = {
			energy = 1.71
			alloys = 0.342
		}
	}

	ai_weight = {
		weight = 40
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 500
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.07
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_LM_ARMOR_8"
	size = medium

	icon = "GFX_ship_part_avc_lm_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_LM_ARMOR_8"

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

	show_tech_unlock_if = {
		is_galvanic_empire = yes
		country_uses_bio_ships = no
	}

	upgrades_to = "AVC_MEDIUM_LM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 300
		}		
		upkeep = {
			energy = 3.42
			alloys = 0.684
		}
	}

	ai_weight = {
		weight = 40
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 1500
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.07
	}
}

utility_component_template = {
	key = "AVC_LARGE_LM_ARMOR_8"
	size = large

	icon = "GFX_ship_part_avc_lm_armor_8"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_8" }
	component_set = "AVC_LM_ARMOR_8"

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

	show_tech_unlock_if = {
		is_galvanic_empire = yes
		country_uses_bio_ships = no
	}

	upgrades_to = "AVC_LARGE_LM_ARMOR_9"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 750
		}		
		upkeep = {
			energy = 6.84
			alloys = 1.368
		}
	}

	ai_weight = {
		weight = 40
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 4500
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.07
	}
}

####
# 9#
####

utility_component_template = {
	key = "AVC_SMALL_LM_ARMOR_9"
	size = small

	icon = "GFX_ship_part_avc_lm_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_LM_ARMOR_9"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_SMALL_LM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 180
		}		
		upkeep = {
			energy = 2.57
			alloys = 0.513
		}
	}

	ai_weight = {
		weight = 45
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 625
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.08
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_LM_ARMOR_9"
	size = medium

	icon = "GFX_ship_part_avc_lm_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_LM_ARMOR_9"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_MEDIUM_LM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 450
		}		
		upkeep = {
			energy = 5.13
			alloys = 1.026
		}
	}

	ai_weight = {
		weight = 45
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 1875
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.08
	}
}

utility_component_template = {
	key = "AVC_LARGE_LM_ARMOR_9"
	size = large

	icon = "GFX_ship_part_avc_lm_armor_9"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_9" }
	component_set = "AVC_LM_ARMOR_9"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_LARGE_LM_ARMOR_10"
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 1125
		}		
		upkeep = {
			energy = 10.26
			alloys = 2.052
		}
	}

	ai_weight = {
		weight = 45
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 5625
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.08
	}
}

####
#10#
####

utility_component_template = {
	key = "AVC_SMALL_LM_ARMOR_10"
	size = small

	icon = "GFX_ship_part_avc_lm_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_LM_ARMOR_10"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 270
		}		
		upkeep = {
			energy = 3.86
			alloys = 0.771
		}
	}

	ai_weight = {
		weight = 50
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 800
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.09
	}
}

utility_component_template = {
	key = "AVC_MEDIUM_LM_ARMOR_10"
	size = medium

	icon = "GFX_ship_part_avc_lm_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_LM_ARMOR_10"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 675
		}		
		upkeep = {
			energy = 7.70
			alloys = 1.539
		}
	}

	ai_weight = {
		weight = 50
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 2400
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.09
	}
}

utility_component_template = {
	key = "AVC_LARGE_LM_ARMOR_10"
	size = large

	icon = "GFX_ship_part_avc_lm_armor_10"
	icon_frame = 1
	
	prerequisites = { "tech_avc_ship_armor_10" }
	component_set = "AVC_LM_ARMOR_10"
	
	potential = { 
		from = { 
			is_galvanic_empire = yes 
			country_uses_bio_ships = no
		} 
	}

	show_tech_unlock_if = {
		is_galvanic_empire = yes 
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			sr_living_metal = 1688
		}		
		upkeep = {
			energy = 15.39
			alloys = 3.078
		}
	}

	ai_weight = {
		weight = 50
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = { resource = sr_living_metal value < @inf_lm_AIincome }
			}
		}
		modifier = {
			factor = 1.5
			owner = {
				resource_stockpile_compare = { resource = sr_living_metal value > @inf_lm_AIstockpile }
			}
		}
	}

	power = 0
	modifier = {
		ship_armor_add = 7200
		ship_armor_regen_add_perc = @inf_regen_perc
		ship_hull_regen_add_perc = @inf_regen_perc
	}
	ship_modifier = {
		weapon_type_energy_weapon_fire_rate_mult = @inf_energy_speed
		ship_armor_hardening_add = 0.09
	}
}