key = $COMPONENT_SET$_$SIZE_CAPITAL$
size = $SIZE$
icon = $ICON$
icon_frame = 1
resources = {
	category = ship_components
	inline_script = {
		script = "grand_archive/mutations/component_dynamic_cost"
		COST = $DYNAMIC_COST$
	}
	cost = {
		exotic_gases	= $EXOTIC_GASES$
		rare_crystals	= $RARE_CRYSTALS$
		sr_dark_matter	= $DARK_MATTER$
		sr_zro			= $ZRO$
		mult = @fauna_cost_scaling
	}
}

modifier = {
	ship_cloaking_strength_add = $STRENGTH$
}

triggered_ship_modifier = {
	potential = {
		$POTENTIAL_TRIGGER$ = yes
	}
	modifier = {
		ship_shield_reduction = $SHIELD_NULLIFICATION$
	}
}
custom_tooltip = "$COMPONENT_SET$_TOOLTIP"

ship_limit = 1

potential = {
	OR = {
		is_ship_size = space_amoeba
		is_ship_size = space_amoeba_mother
		is_ship_size = space_whale_1
		is_ship_size = space_whale_2
		is_ship_size = space_whale_3
		is_ship_size = space_whale_4
		is_ship_size = space_whale_5
		is_ship_size = voidworms_small
		is_ship_size = voidworms_medium
		is_ship_size = voidworms_large
		is_ship_size = voidworms_titan
		is_ship_size = crystal_ship_small_blue
		is_ship_size = crystal_ship_medium_blue
		is_ship_size = crystal_ship_large_blue
		is_ship_size = cutholoids_hatchling
		is_ship_size = cutholoids_juvenile
		is_ship_size = cutholoids
	}
}

prerequisites = { $PREREQUISITE$ }
component_set = $COMPONENT_SET$
inline_script = {
	script = "grand_archive/mutations/camouflage/upgrade_$COMPONENT_SET$"
	SIZE = $SIZE_CAPITAL$
}

ai_tags = {
	gunship_stealth
	explosive_stealth
	carrier_stealth
	screen_stealth
	artillery_stealth
	brawler_stealth
	energy_torpedoes_stealth
}

ai_weight = {
	weight = $WEIGHT$
	modifier = {
		factor = 0
		no_resource_for_component = { RESOURCE = exotic_gases }
	}
	inline_script = ship_components/weights/roles_cloaking_devices
}
