@cost_6S = 30
@cost_6M = 60
@cost_6L = 120
@ftl1 = 5
@ftl2 = 10
@ftl3 = 15
@ftl4 = 30
@power1 = -5
@power2 = -7.5
@power3 = -10
@power4 = -10

utility_component_template = {
	key = "ENIGMATIC_DECODER"
	size = aux
	icon = "GFX_ship_part_enigmatic_decoder"
	icon_frame = 1
	power = -20
	resources = {
		category = ship_components
		cost = {
			alloys = 20
		}
	}

	prerequisites = { tech_enigmatic_decoder }
	component_set = "ENIGMATIC_DECODER"
	upgrades_to = "AVC_ENIGMATIC_DECODER_2"

	ship_modifier = {
		ship_tracking_add = 5
		ship_accuracy_add = 5
	}

	ai_weight = {
		weight = 10
		modifier = {
			factor = 2
			OR = {
				is_preferred_weapons = weapon_type_energy
				is_preferred_weapons = weapon_type_kinetic
			}
		}
	}
}

utility_component_template = {
	key = "ENIGMATIC_ENCODER"
	size = aux
	icon = "GFX_ship_part_enigmatic_encoder"
	icon_frame = 1
	power = -20
	resources = {
		category = ship_components
		cost = {
			alloys = 20
		}
	}

	prerequisites = { tech_enigmatic_encoder }
	component_set = "ENIGMATIC_ENCODER"
	upgrades_to = "AVC_ENIGMATIC_ENCODER_2"

	ship_modifier = {
		ship_disengage_opportunities_add = 1
	}

	ai_weight = {
		weight = 10
		modifier = {
			factor = 0 # Don't use this if you might use No Retreat.
			OR = {
				is_militarist = yes
				has_ethic = ethic_gestalt_consciousness
				has_civic = civic_fanatic_purifiers
			}
		}
	}
}
