# ##################################################
#
# Radial Effect / Aura components
#
# ##################################################

### Variables

@shipAuraRange = 80
@stationSmallAuraRange = 70
@stationMediumAuraRange = 90
@stationLargeAuraRange = 110


### Empty Aura-slot
utility_component_template = {
	key = "SHIP_AURA_EMPTY"
	size = small
	icon = "GFX_ship_part_empty_ftl_drive"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "ship_aura_components"
	
	ai_weight = {
		weight = 1
	}
}

utility_component_template = {
	key = "SHIP_AURA_SHIELD_MASTER"
	size = medium
	icon = "GFX_ship_part_aura_shield_master"
	icon_frame = 1
	power = -300
	cost = 500
	
	component_set = "ship_aura_components"
	
	hostile_aura = {
		name = "aura_shield_dampener"
		radius = @shipAuraRange
		apply_on = ships
		
		stack_info = {			#A ship can only be affected by one aura of a certain id. If multiple auras have the same ID the one with the highest priority will be applied.
			id = hostile_inhibitor_aura
			priority = 1
		}
		
		modifier = {
			ship_shield_hp_mult = -0.25
			ship_shield_regen_add_perc = -0.05
			ship_windup_mult = 4
			ship_speed_mult = -0.5
			fleet_emergency_ftl_min_days_mult = 1
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
}