### Caerulenite
utility_component_template = {
	key = "STZ_CAERULENITE_COMBAT_COMPUTER_SWARM"
	size = small
	icon = "GFX_stz_ship_part_computer_role_swarm_caerulenite"
	icon_frame = 1
	power = -30
	resources = {
		category = ship_components
		cost = {
			alloys = 25
			stz_sr_caerulenite = 1
		}
	}

    potential = {
        ship_uses_swarm_role = yes
    }

	class_restriction = { shipclass_military }
	component_set = "combat_computers"
	ship_behavior = "swarm"
	prerequisites = { "stz_tech_caerulenite_combat_computers" }
	upgrades_to = "STZ_VIRIDISIUM_COMBAT_COMPUTER_SWARM"
	ai_tags = { gunship brawler brawler_stealth }
	

	modifier = {
		ship_evasion_mult = 0.30
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.20
	}

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_COMBAT_COMPUTER_TORPEDO"
	size = small
	icon = "GFX_stz_ship_part_computer_role_swarm_caerulenite"
	icon_frame = 1
	power = -30
	resources = {
		category = ship_components
		cost = {
			alloys = 25
			stz_sr_caerulenite = 1
		}
	}

    potential = {
        ship_uses_torpedo_role = yes
    }

	class_restriction = { shipclass_military }
	component_set = "combat_computers"
	ship_behavior = "torpedo"
	prerequisites = { "stz_tech_caerulenite_combat_computers" "tech_torpedoes_1" }
	upgrades_to = "STZ_VIRIDISIUM_COMBAT_COMPUTER_TORPEDO"
	ai_tags = { explosive explosive_stealth }
	

	modifier = {
		ship_evasion_mult = 0.15
		weapon_type_explosive_weapon_damage_mult = 0.20
	}

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_COMBAT_COMPUTER_PICKET"
	size = small
	icon = "GFX_stz_ship_part_computer_role_picket_caerulenite"
	icon_frame = 1
	power = -30
	resources = {
		category = ship_components
		cost = {
			alloys = 25
			stz_sr_caerulenite = 1
		}
	}

    potential = {
        ship_uses_picket_role = yes
    }

	class_restriction = { shipclass_military }
	component_set = "combat_computers"
	ship_behavior = "picket"
	prerequisites = { "stz_tech_caerulenite_combat_computers" }
	upgrades_to = "STZ_VIRIDISIUM_COMBAT_COMPUTER_PICKET"
	ai_tags = { screen }
	

	modifier = {
		ship_evasion_mult = 0.15
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_tracking_add = 35
	}

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_COMBAT_COMPUTER_LINE"
	size = small
	icon = "GFX_stz_ship_part_computer_role_line_caerulenite"
	icon_frame = 1
	power = -30
	resources = {
		category = ship_components
		cost = {
			alloys = 25
			stz_sr_caerulenite = 1
		}
	}

    potential = {
        ship_uses_line_role = yes
    }

	class_restriction = { shipclass_military }
	component_set = "combat_computers"
	ship_behavior = "line"
	prerequisites = { "stz_tech_caerulenite_combat_computers" }
	upgrades_to = "STZ_VIRIDISIUM_COMBAT_COMPUTER_LINE"
	ai_tags = { gunship }
	

	ship_modifier = {
		ship_fire_rate_mult = 0.25
		ship_accuracy_add = 25
	}

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_COMBAT_COMPUTER_ARTILLERY"
	size = small
	icon = "GFX_stz_ship_part_computer_role_artillery_caerulenite"
	icon_frame = 1
	power = -30
	resources = {
		category = ship_components
		cost = {
			alloys = 25
			stz_sr_caerulenite = 1
		}
	}

    potential = {
        ship_uses_artillery_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "artillery"
	prerequisites = { "stz_tech_caerulenite_combat_computers" }
	upgrades_to = "STZ_VIRIDISIUM_COMBAT_COMPUTER_ARTILLERY"
	ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth }
	

	ship_modifier = {
		ship_fire_rate_mult = 0.25
		ship_weapon_range_mult = 0.25
	}

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_COMBAT_COMPUTER_CARRIER"
	size = small
	icon = "GFX_stz_ship_part_computer_role_carrier_caerulenite"
	icon_frame = 1
	power = -30
	resources = {
		category = ship_components
		cost = {
			alloys = 25
			stz_sr_caerulenite = 1
		}
	}

    potential = {
        ship_uses_carrier_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "carrier"
	prerequisites = { "stz_tech_caerulenite_combat_computers" }
	upgrades_to = "STZ_VIRIDISIUM_COMBAT_COMPUTER_CARRIER"
	ai_tags = { carrier }
	

	ship_modifier = {
		ship_engagement_range_mult = 1.25
	}

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_COMBAT_COMPUTER_PLATFORM"
	size = small
	icon = "GFX_stz_ship_part_computer_role_platform_caerulenite"
	icon_frame = 1
	power = -30
	resources = {
		category = ship_components
		cost = {
			alloys = 25
			stz_sr_caerulenite = 1
		}
	}

    potential = {
        ship_uses_platform_computers = yes
    }

	component_set = "combat_computers"
	ship_behavior = "platform"
	prerequisites = { "stz_tech_caerulenite_combat_computers" }
	upgrades_to = "STZ_VIRIDISIUM_COMBAT_COMPUTER_PLATFORM"

	ship_modifier = {
		ship_fire_rate_mult = 0.40
		ship_tracking_add = 30
		ship_accuracy_add = 15
	}

	ai_weight = {
		weight = 6
	}
}

### Viridisium
utility_component_template = {
	key = "STZ_VIRIDISIUM_COMBAT_COMPUTER_SWARM"
	size = small
	icon = "GFX_stz_ship_part_computer_role_swarm_viridisium"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			stz_sr_viridisium = 1
		}
	}

    potential = {
        ship_uses_swarm_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "swarm"
	prerequisites = { "stz_tech_viridisium_combat_computers" }
	ai_tags = { gunship brawler brawler_stealth }
	

	modifier = {
		ship_evasion_mult = 0.35
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.25
	}

	ai_weight = {
		weight = 7
	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_COMBAT_COMPUTER_TORPEDO"
	size = small
	icon = "GFX_stz_ship_part_computer_role_swarm_viridisium"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			stz_sr_viridisium = 1
		}
	}

    potential = {
        ship_uses_torpedo_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "torpedo"
	prerequisites = { "stz_tech_viridisium_combat_computers" "tech_torpedoes_1" }
	ai_tags = { explosive explosive_stealth }
	

	modifier = {
		ship_evasion_mult = 0.25
		weapon_type_explosive_weapon_damage_mult = 0.25
	}

	ai_weight = {
		weight = 7
	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_COMBAT_COMPUTER_PICKET"
	size = small
	icon = "GFX_stz_ship_part_computer_role_picket_viridisium"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			stz_sr_viridisium = 1
		}
	}

    potential = {
        ship_uses_picket_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "picket"
	prerequisites = { "stz_tech_viridisium_combat_computers" }
	ai_tags = { screen }
	

	modifier = {
		ship_evasion_mult = 0.20
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.25
		ship_tracking_add = 40
	}

	ai_weight = {
		weight = 7
	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_COMBAT_COMPUTER_LINE"
	size = small
	icon = "GFX_stz_ship_part_computer_role_line_viridisium"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			stz_sr_viridisium = 1
		}
	}

    potential = {
        ship_uses_line_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "line"
	prerequisites = { "stz_tech_viridisium_combat_computers" }
	ai_tags = { gunship }
	

	ship_modifier = {
		ship_fire_rate_mult = 0.30
		ship_accuracy_add = 30
	}

	ai_weight = {
		weight = 7
	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_COMBAT_COMPUTER_ARTILLERY"
	size = small
	icon = "GFX_stz_ship_part_computer_role_artillery_viridisium"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			stz_sr_viridisium = 1
		}
	}

    potential = {
        ship_uses_artillery_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "artillery"
	prerequisites = { "stz_tech_viridisium_combat_computers" }
	ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth }
	

	ship_modifier = {
		ship_fire_rate_mult = 0.30
		ship_weapon_range_mult = 0.30
	}

	ai_weight = {
		weight = 7
	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_COMBAT_COMPUTER_CARRIER"
	size = small
	icon = "GFX_stz_ship_part_computer_role_carrier_viridisium"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			stz_sr_viridisium = 1
		}
	}

    potential = {
        ship_uses_carrier_role = yes
    }

	component_set = "combat_computers"
	ship_behavior = "carrier"
	prerequisites = { "stz_tech_viridisium_combat_computers" }
	ai_tags = { carrier }
	

	ship_modifier = {
		ship_engagement_range_mult = 1.50
	}

	ai_weight = {
		weight = 7
	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_COMBAT_COMPUTER_PLATFORM"
	size = small
	icon = "GFX_stz_ship_part_computer_role_platform_viridisium"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			stz_sr_viridisium = 1
		}
	}

    potential = {
        ship_uses_platform_computers = yes
    }

	component_set = "combat_computers"
	ship_behavior = "platform"
	prerequisites = { "stz_tech_viridisium_combat_computers" }

	ship_modifier = {
		ship_fire_rate_mult = 0.45
		ship_tracking_add = 35
		ship_accuracy_add = 20
	}

	ai_weight = {
		weight = 7
	}
}