############################################################
##                   ESC Combat Computers                 ##
############################################################

# Due to 3.14 changes, this file was reorganized and computers are
# now listed by role rather than by type

############################################################
### Swarm computers

# Nanite Thought Matrix : Swarm
utility_component_template = {
	key = ESC_NANITE_COMPUTER_SWARM

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_swarm
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = swarm
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = swarm
	ai_tags = { gunship brawler }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_evasion_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_SWARM

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_swarm
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = swarm
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = swarm
	ai_tags = { gunship brawler }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_evasion_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Gigapredator Instincts : Swarm
utility_component_template = {
	key = ESC_GIGAPREDATOR_INSTINCTS_SWARM

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_gigapredator_instincts_swarm
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = swarm
		PREREQUISITE = esc_tech_gigapredator_instincts
		STRATEGIC_RESOURCE_TYPE = exotic_gases
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = swarm
	ai_tags = { gunship brawler }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Torpedo computers

# Nanite Thought Matrix : Torpedo
utility_component_template = {
	key = ESC_NANITE_COMPUTER_TORPEDO

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_swarm
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = torpedo
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = torpedo
	ai_tags = { explosive }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_evasion_add = 10
		weapon_type_explosive_weapon_damage_mult = 0.15
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 0.75
		ship_orbital_bombardment_mult = 0.75
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_TORPEDO

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_swarm
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = torpedo
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = torpedo
	ai_tags = { explosive }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_evasion_add = 10
		weapon_type_explosive_weapon_damage_mult = 0.15
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 0.75
		ship_orbital_bombardment_mult = 0.75
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Gigapredator Instincts : Torpedo
utility_component_template = {
	key = ESC_GIGAPREDATOR_INSTINCTS_TORPEDO

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_gigapredator_instincts_swarm
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = torpedo
		PREREQUISITE = esc_tech_gigapredator_instincts
		STRATEGIC_RESOURCE_TYPE = exotic_gases
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = torpedo
	ai_tags = { explosive }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
		ship_damage_against_starbases_mult = 0.75
		ship_orbital_bombardment_mult = 0.75
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Picket computers

# Automated Dreadnought Compute : Picket
utility_component_template = {
	key = ESC_DREADNOUGHT_COMPUTER_PICKET

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_dreadnought_computer_picket
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = picket_adc
		PREREQUISITE = esc_tech_dreadnought_computer
		STRATEGIC_RESOURCE_TYPE = rare_crystals
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = picket
	ai_tags = { screen }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Nanite Thought Matrix : Picket
utility_component_template = {
	key = ESC_NANITE_COMPUTER_PICKET

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_picket
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = picket
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = picket
	ai_tags = { screen }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_PICKET

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_picket
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = picket
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = picket
	ai_tags = { screen }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Gigapredator Instincts : Picket
utility_component_template = {
	key = ESC_GIGAPREDATOR_INSTINCTS_PICKET

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_gigapredator_instincts_picket
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = picket
		PREREQUISITE = esc_tech_gigapredator_instincts
		STRATEGIC_RESOURCE_TYPE = exotic_gases
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = picket
	ai_tags = { screen }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Line computers

# Automated Dreadnought Compute : Line
utility_component_template = {
	key = ESC_DREADNOUGHT_COMPUTER_LINE

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_dreadnought_computer_line
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = line_adc
		PREREQUISITE = esc_tech_dreadnought_computer
		STRATEGIC_RESOURCE_TYPE = rare_crystals
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = line
	ai_tags = { gunship }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_accuracy_add = 10
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
		ship_damage_against_starbases_mult = 0.75
		ship_orbital_bombardment_mult = 0.75
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Nanite Thought Matrix : Line
utility_component_template = {
	key = ESC_NANITE_COMPUTER_LINE

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_line
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = line
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = line
	ai_tags = { gunship }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 0.75
		ship_orbital_bombardment_mult = 0.75
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_LINE

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_line
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = line
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = line
	ai_tags = { gunship }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 0.75
		ship_orbital_bombardment_mult = 0.75
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Gigapredator Instincts : Line
utility_component_template = {
	key = ESC_GIGAPREDATOR_INSTINCTS_LINE

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_gigapredator_instincts_line
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = line
		PREREQUISITE = esc_tech_gigapredator_instincts
		STRATEGIC_RESOURCE_TYPE = exotic_gases
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = line
	ai_tags = { gunship }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_accuracy_add = 10
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
		ship_damage_against_starbases_mult = 0.75
		ship_orbital_bombardment_mult = 0.75
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Artillery computers

# Automated Dreadnought Computers : Artillery
utility_component_template = {
	key = ESC_DREADNOUGHT_COMPUTER_ARTILLERY

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_dreadnought_computer_artillery
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = artillery_adc
		PREREQUISITE = esc_tech_dreadnought_computer
		STRATEGIC_RESOURCE_TYPE = rare_crystals
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = artillery
	ai_tags = { artillery energy_torpedoes }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_weapon_range_mult = 0.1
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Nanite Thought Matrix : Artillery
utility_component_template = {
	key = ESC_NANITE_COMPUTER_ARTILLERY

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_artillery
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = artillery
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = artillery
	ai_tags = { artillery energy_torpedoes }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_weapon_range_mult = 0.1
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_ARTILLERY

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_artillery
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = artillery
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = artillery
	ai_tags = { artillery energy_torpedoes }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_weapon_range_mult = 0.1
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Gigapredator Instincts : Artillery
utility_component_template = {
	key = ESC_GIGAPREDATOR_INSTINCTS_ARTILLERY

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_gigapredator_instincts_artillery
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = artillery
		PREREQUISITE = esc_tech_gigapredator_instincts
		STRATEGIC_RESOURCE_TYPE = exotic_gases
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = artillery
	ai_tags = { artillery energy_torpedoes }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_weapon_range_mult = 0.1
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Carrier computers

# Automated Dreadnought Computers : Carrier
utility_component_template = {
	key = ESC_DREADNOUGHT_COMPUTER_CARRIER

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_dreadnought_computer_carrier
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = carrier
		PREREQUISITE = esc_tech_dreadnought_computer
		STRATEGIC_RESOURCE_TYPE = rare_crystals
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = carrier
	ai_tags = { carrier }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_weapon_range_mult = 0.1
		ship_engagement_range_mult = 1.0
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Nanite Thought Matrix : Carrier
utility_component_template = {
	key = ESC_NANITE_COMPUTER_CARRIER

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_carrier
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = carrier
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = carrier
	ai_tags = { carrier }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_weapon_range_mult = 0.1
		ship_engagement_range_mult = 1.0
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_CARRIER

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_carrier
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = carrier
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = carrier
	ai_tags = { carrier }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_weapon_range_mult = 0.1
		ship_engagement_range_mult = 1.0
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Gigapredator Instincts : Carrier
utility_component_template = {
	key = ESC_GIGAPREDATOR_INSTINCTS_CARRIER

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_gigapredator_instincts_carrier
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = carrier
		PREREQUISITE = esc_tech_gigapredator_instincts
		STRATEGIC_RESOURCE_TYPE = exotic_gases
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = carrier
	ai_tags = { carrier }

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_weapon_range_mult = 0.1
		ship_engagement_range_mult = 1.0
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_evasion_add = 10
		ship_speed_mult = 0.1
		ship_damage_against_starbases_mult = 1.0
		ship_orbital_bombardment_mult = 1.0
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Buffer and Debuffer computers

# Nanite Thought Matrix : buffer
utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_BUFFER

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_swarm
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = buffer
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	upgrade_path = buffer
	target_type = target_allies
	ship_behavior = swarm
	ai_tags = { buffer_role buffer_role_stealth }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_weapon_range_mult = 0.1
		buffer_role_weapon_fire_rate_mult = 0.15
		ship_accuracy_add = 15
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
		ship_evasion_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Nanite Thought Matrix : debuffer
utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_DEBUFFER

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_platform
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = debuffer
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	upgrade_path = debuffer
	ship_behavior = swarm
	ai_tags = { debuffer_role debuffer_role_stealth }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_weapon_range_mult = 0.1
		debuffer_role_weapon_fire_rate_mult = 0.15
		ship_accuracy_add = 15
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Platform computers

# Nanite Thought Matrix : Platform
utility_component_template = {
	key = ESC_NANITE_COMPUTER_PLATFORM

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_platform
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = platform
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = platform

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.2
		ship_armor_mult = 0.2
		ship_hull_mult = 0.2
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_PLATFORM

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_platform
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = platform
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = platform

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.2
		ship_armor_mult = 0.2
		ship_hull_mult = 0.2
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Starbase computers

# Nanite Thought Matrix : Starbase
utility_component_template = {
	key = ESC_NANITE_COMPUTER_STARBASE

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_starbase
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = starbase
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = platform

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

utility_component_template = {
	key = ESC_BIO_NANITE_COMPUTER_STARBASE

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_starbase
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = starbase
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = yes
		COMPONENT_WEIGHT = 16
	}

	ship_behavior = platform

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

############################################################
### Arkship computers

# vanilla computer direct overwrite for upgrades
utility_component_template = {
	key = "COMBAT_COMPUTER_ARKSHIP"
	size = small
	icon = "GFX_ship_part_computer_default"
	icon_frame = 1
	power = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 0
		}
	}
	ship_behavior = "arkship"

	potential = {
		is_arkship_ship = yes
	}

	component_set = "combat_computers"

	scripted_action = {
		arkship_build_megastructure
		arkship_survey
		arkship_deep_scan
		arkship_harvest_resources
		arkship_strip_mine
		arkship_empty_spine
		arkship_subspace_image
		arkship_reprocess_planet
		arkship_stellar_ignition
		arkship_exodus_jump
		arkship_settle
		arkship_drop_off_prisoners
		collect_waystation_stockpile
		arkship_lithoid_consume_world
		arkship_nanotech_consume_world
	}

	ai_weight = {
		weight = 0
	}

	upgrades_to = "ESC_NANITE_COMPUTER_ARKSHIP"
}

# Automated Dreadnought Computers : Arkship
utility_component_template = {
	key = "ESC_DREADNOUGHT_COMPUTER_ARKSHIP"
	size = small
	icon = "GFX_esc_dreadnought_computer"
	icon_frame = 1
	power = 0

	resources = {
		category = ship_components
		cost = {
			alloys = 0
		}
	}

	ship_behavior = "arkship"
	prerequisites = { "esc_tech_dreadnought_computer" }

	potential = {
		is_arkship_ship = yes
	}

	component_set = "combat_computers"

	ship_modifier = {
		ship_fire_rate_mult = 0.25
		ship_weapon_damage = 0.25
		ship_accuracy_add = 10
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.15
		ship_armor_mult = 0.15
	}

	scripted_action = {
		arkship_build_megastructure
		arkship_survey
		arkship_deep_scan
		arkship_harvest_resources
		arkship_strip_mine
		arkship_empty_spine
		arkship_subspace_image
		arkship_reprocess_planet
		arkship_stellar_ignition
		arkship_exodus_jump
		arkship_settle
		arkship_drop_off_prisoners
		collect_waystation_stockpile
		arkship_lithoid_consume_world
		arkship_nanotech_consume_world
	}

	ai_weight = {
		weight = 100
	}
}

# Nanite Thought Matrix : Arkship
utility_component_template = {
	key = "ESC_NANITE_COMPUTER_ARKSHIP"
	size = small
	icon = "GFX_esc_nanite_computer_starbase"
	icon_frame = 1
	power = 0

	resources = {
		category = ship_components
		cost = {
			alloys = 0
		}
	}

	ship_behavior = "arkship"
	prerequisites = { "esc_tech_nanite_thought_matrix" }

	potential = {
		is_arkship_ship = yes
	}

	component_set = "combat_computers"

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.25
		ship_armor_mult = 0.25
		ship_hull_mult = 0.25
	}

	scripted_action = {
		arkship_build_megastructure
		arkship_survey
		arkship_deep_scan
		arkship_harvest_resources
		arkship_strip_mine
		arkship_empty_spine
		arkship_subspace_image
		arkship_reprocess_planet
		arkship_stellar_ignition
		arkship_exodus_jump
		arkship_settle
		arkship_drop_off_prisoners
		collect_waystation_stockpile
		arkship_lithoid_consume_world
		arkship_nanotech_consume_world
	}

	ai_weight = {
		weight = 100
	}
}

############################################################
### Special computers

# Automated Dreadnought Computer : NSC Headquarters
utility_component_template = {
	key = ESC_DREADNOUGHT_COMPUTER_HQ

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_dreadnought_computer
		POWER = @ESC_COMPUTER_power_dreadnought
		SHIP_COMBAT_ROLE = NSC_headquarters
		PREREQUISITE = esc_tech_dreadnought_computer
		STRATEGIC_RESOURCE_TYPE = rare_crystals
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 20
	}

	ship_behavior = platform

	ship_modifier = {
		ship_weapon_damage = 0.2
		ship_fire_rate_mult = 0.1
		ship_tracking_add = 15
		ship_accuracy_add = 15
	}
	modifier = {
		ship_shield_mult = 0.25
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}

# Nanite Thought Matrix : NSC Headquarters
utility_component_template = {
	key = ESC_NANITE_COMPUTER_HQ

	inline_script = {
		script = ship_components_general/esc_inlines_combat_computers
		COMPUTER_ICON = GFX_esc_nanite_computer_starbase
		POWER = @ESC_COMPUTER_power_nanite
		SHIP_COMBAT_ROLE = NSC_headquarters
		PREREQUISITE = esc_tech_nanite_thought_matrix
		STRATEGIC_RESOURCE_TYPE = nanites
		IS_BIOSHIP_COMPUTER = no
		COMPONENT_WEIGHT = 20
	}

	ship_behavior = platform

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_damage = 0.15
		ship_accuracy_add = 10
		ship_tracking_add = 10
	}
	modifier = {
		ship_shield_mult = 0.1
		ship_armor_mult = 0.1
		ship_hull_mult = 0.1
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}
}
