### generalized inline for ship thrusters

size = small
icon = $THRUSTER_ICON$
icon_frame = 1
power = @ESC_THRUSTER_t$TIER$_power_$SHIP_SIZE_GROUP$

inline_script = {
	script = component_costs/shorthands/esc_inlines_thruster_cost
	SIZE = $SHIP_SIZE_GROUP$
	TIER = $TIER$
	IS_BIOSHIP_THRUSTER = $IS_BIOSHIP_THRUSTER$
	STRATEGIC_RESOURCE_TYPE = $STRATEGIC_RESOURCE_TYPE$
}

inline_script = {
	script = thrusters/esc_inlines_thruster_modifiers
	TIER = $TIER$
	SHIP_SIZE_GROUP = $SHIP_SIZE_GROUP$
}

prerequisites = { $PREREQUISITES$ }
component_set = "thruster_components"

inline_script = {
	script = ship_components_general/esc_inlines_uses_bio_ships_conditional
	EXTRA_CONDITION = ESC_ship_uses_$SHIP_SIZE_GROUP$_components
	EXTRA_CONDITION_VALUE = yes
	EVAL_TARGET = $IS_BIOSHIP_THRUSTER$
}

ai_weight = {
	weight = $TIER$
	### AI shouldn't use this component if it can't afford at least some upgrades right away
	modifier = {
		factor = 0.0
		no_resource_for_component = { RESOURCE = $STRATEGIC_RESOURCE_TYPE$ }
	}
}
