### generalized inline for reactors

size = small
icon = $REACTOR_ICON$
icon_frame = 1
power = $POWER$

# component cost
inline_script = {
	script = component_costs/shorthands/esc_inlines_reactor_cost
	PRIMARY_RESOURCE_COST = $ALLOY_COST$
	STRATEGIC_RESOURCE_TYPE = energy
	STRATEGIC_RESOURCE_COST = 0
}

# potential / show_show_tech_unlock_if
inline_script = {
	script = ship_components_general/esc_inlines_uses_bio_ships_conditional
	EXTRA_CONDITION = ESC_ship_uses_$SHIP_SIZE_GROUP$_reactors
	EXTRA_CONDITION_VALUE = yes
	EVAL_TARGET = $IS_BIOSHIP_REACTOR$
}

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

ai_weight = {
	weight = 1
	factor = $COMPONENT_WEIGHT$
	modifier = {
		has_global_flag = @ACOT_active_flag
		factor = $WEIGHT_MULT_ACOT$
	}
}
