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

### Variables

@shipAuraRange = 100
@stationSmallAuraRange = 100
@stationMediumAuraRange = 150
@stationLargeAuraRange = 200


### 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
	}
}

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

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

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

# #################
#  Friendly Auras
# #################

utility_component_template = {
	key = "SHIP_AURA_NANOBOT_CLOUD"
	size = medium
	icon = "GFX_ship_part_aura_nanobot"
	icon_frame = 1
	power = 0
	cost = 250
	
	component_set = "ship_aura_components"
	
	friendly_aura = {
		name = "aura_nanobot_cloud"
		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 = friendly_support_aura
			priority = 20
		}
		
		modifier = {
			ship_auto_repair_add = 0.015
			ship_armor_add = 35
			ship_hitpoints_add = 3000
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1000
	}
}

utility_component_template = {
	key = "STATION_SMALL_AURA_NANOBOT_CLOUD"
	size = medium
	icon = "GFX_ship_part_aura_nanobot"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_small_aura_components"
	
	friendly_aura = {
		name = "aura_nanobot_cloud"
		radius = @stationSmallAuraRange
		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 = friendly_support_aura
			priority = 20
		}
		
		modifier = {
			ship_auto_repair_add = 0.05
			ship_armor_add = 35
			ship_hitpoints_add = 3000
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1
	}
}

utility_component_template = {
	key = "STATION_MEDIUM_AURA_NANOBOT_CLOUD"
	size = medium
	icon = "GFX_ship_part_aura_nanobot"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_medium_aura_components"
	
	friendly_aura = {
		name = "aura_nanobot_cloud"
		radius = @stationMediumAuraRange
		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 = friendly_support_aura
			priority = 20
		}
		
		modifier = {
			ship_auto_repair_add = 0.05
			ship_armor_add = 40
			ship_hitpoints_add = 5000
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "STATION_LARGE_AURA_NANOBOT_CLOUD"
	size = medium
	icon = "GFX_ship_part_aura_nanobot"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_large_aura_components"
	
	friendly_aura = {
		name = "aura_nanobot_cloud"
		radius = @stationLargeAuraRange
		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 = friendly_support_aura
			priority = 20
		}
		
		modifier = {
			ship_auto_repair_add = 0.05
			ship_armor_add = 40
			ship_hitpoints_add = 10000
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 100
	}
}

utility_component_template = {
	key = "SHIP_AURA_SHIELD_RECHARGER"
	size = medium
	icon = "GFX_ship_part_aura_shield_recharger"
	icon_frame = 1
	power = 0
	cost = 250
	
	component_set = "ship_aura_components"
	
	friendly_aura = {
		name = "aura_shield_recharger"
		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 = friendly_support_aura
			priority = 30
		}
		
		modifier = {
			ship_shield_regen_add_perc = 0.2
			ship_shield_hp_mult = 0.15
			ship_shield_regen_add = 15
			ship_shield_hp_add = 5000
		} 
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1000
	}
	prerequisites = { "tech_shield_recharge_aura_1" }

}

utility_component_template = {
	key = "STATION_SMALL_AURA_SHIELD_RECHARGER"
	size = medium
	icon = "GFX_ship_part_aura_shield_recharger"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_small_aura_components"
	
	friendly_aura = {
		name = "aura_shield_recharger"
		radius = @stationSmallAuraRange
		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 = friendly_support_aura
			priority = 30
		}
		
		modifier = {
			ship_shield_regen_add_perc = 0.2
			ship_shield_hp_mult = 0.15
			ship_shield_regen_add = 15
			ship_shield_hp_add = 5000
		} 
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1
	}
	prerequisites = { "tech_shield_recharge_aura_1" }
}

utility_component_template = {
	key = "STATION_MEDIUM_AURA_SHIELD_RECHARGER"
	size = medium
	icon = "GFX_ship_part_aura_shield_recharger"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_medium_aura_components"
	
	friendly_aura = {
		name = "aura_shield_recharger"
		radius = @stationMediumAuraRange
		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 = friendly_support_aura
			priority = 30
		}
		
		modifier = {
			ship_shield_regen_add_perc = 0.2
			ship_shield_hp_mult = 0.15
			ship_shield_regen_add = 15
			ship_shield_hp_add = 10000
		}  
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 10
	}
	prerequisites = { "tech_shield_recharge_aura_1" }
}

utility_component_template = {
	key = "STATION_LARGE_AURA_SHIELD_RECHARGER"
	size = medium
	icon = "GFX_ship_part_aura_shield_recharger"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_large_aura_components"
	
	friendly_aura = {
		name = "aura_shield_recharger"
		radius = @stationLargeAuraRange
		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 = friendly_support_aura
			priority = 30
		}
		
		modifier = {
			ship_shield_regen_add_perc = 0.2
			ship_shield_hp_mult = 0.15
			ship_shield_regen_add = 15
			ship_shield_hp_add = 15000
		}  
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 100
	}
	prerequisites = { "tech_shield_recharge_aura_1" }
}

# #################
#  Hostile Auras
# #################

utility_component_template = {
	key = "SHIP_AURA_SHIELD_DAMPENER"
	size = medium
	icon = "GFX_ship_part_aura_shield_dampener"
	icon_frame = 1
	power = 0
	cost = 250
	
	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.1
			ship_armor_add = -35
			ship_weapon_damage = -0.3
			ship_accuracy_add = -20
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1000
	}
}

utility_component_template = {
	key = "STATION_SMALL_AURA_SHIELD_DAMPENER"
	size = medium
	icon = "GFX_ship_part_aura_shield_dampener"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_small_aura_components"
	
	hostile_aura = {
		name = "aura_shield_dampener"
		radius = @stationSmallAuraRange
		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.1
			ship_armor_add = -35
			ship_weapon_damage = -0.3
			ship_accuracy_add = -20
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1
		modifier = {
			weight = 99
			has_country_flag = aggressive
		}
	}
}

utility_component_template = {
	key = "STATION_MEDIUM_AURA_SHIELD_DAMPENER"
	size = medium
	icon = "GFX_ship_part_aura_shield_dampener"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_medium_aura_components"
	
	hostile_aura = {
		name = "aura_shield_dampener"
		radius = @stationMediumAuraRange
		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.35
			ship_shield_regen_add_perc = -0.1
			ship_armor_add = -35
			ship_weapon_damage = -0.3
			ship_accuracy_add = -20
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 10
		modifier = {
			weight = 99
			has_country_flag = aggressive
		}
	}
}

utility_component_template = {
	key = "STATION_LARGE_AURA_SHIELD_DAMPENER"
	size = medium
	icon = "GFX_ship_part_aura_shield_dampener"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_large_aura_components"
	
	hostile_aura = {
		name = "aura_shield_dampener"
		radius = @stationLargeAuraRange
		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.50
			ship_shield_regen_add_perc = -0.1
			ship_armor_add = -35
			ship_weapon_damage = -0.3
			ship_accuracy_add = -20
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 100
		modifier = {
			weight = 99
			has_country_flag = aggressive
		}
	}
}

utility_component_template = {
	key = "SHIP_AURA_QUANTUM_DESTABILIZER"
	size = medium
	icon = "GFX_ship_part_aura_quantum_destabilizer"
	icon_frame = 1
	power = 0
	cost = 250
	
	component_set = "ship_aura_components"
	
	hostile_aura = {
		name = "aura_quantum_destabilizer"
		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 = 10
		}
		
		modifier = {
			ship_fire_rate_mult = -0.35
			ship_weapon_range_mult = -0.25
			ship_armor_penetration_mult = -0.25
			ship_shield_penetration_mult = -0.25
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity" 
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1000
	}
	
	prerequisites = {"tech_aura_quantum_destabilizer"}
}

utility_component_template = {
	key = "STATION_SMALL_AURA_QUANTUM_DESTABILIZER"
	size = medium
	icon = "GFX_ship_part_aura_quantum_destabilizer"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_small_aura_components"
	
	hostile_aura = {
		name = "aura_quantum_destabilizer"
		radius = @stationSmallAuraRange
		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 = 10
		}
		
		modifier = {
			ship_fire_rate_mult = -0.35
			ship_weapon_range_mult = -0.25
			ship_armor_penetration_mult = -0.25
			ship_shield_penetration_mult = -0.25
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity" 
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1
	}
	
	prerequisites = {"tech_aura_quantum_destabilizer"}
}

utility_component_template = {
	key = "STATION_MEDIUM_AURA_QUANTUM_DESTABILIZER"
	size = medium
	icon = "GFX_ship_part_aura_quantum_destabilizer"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_medium_aura_components"
	
	hostile_aura = {
		name = "aura_quantum_destabilizer"
		radius = @stationMediumAuraRange
		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 = 10
		}
		
		modifier = {
			ship_fire_rate_mult = -0.35
			ship_weapon_range_mult = -0.25
			ship_armor_penetration_mult = -0.25
			ship_shield_penetration_mult = -0.25
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity" 
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 10
	}
	
	prerequisites = {"tech_aura_quantum_destabilizer"}
}

utility_component_template = {
	key = "STATION_LARGE_AURA_QUANTUM_DESTABILIZER"
	size = medium
	icon = "GFX_ship_part_aura_quantum_destabilizer"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_large_aura_components"
	
	hostile_aura = {
		name = "aura_quantum_destabilizer"
		radius = @stationLargeAuraRange
		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 = 10
		}
		
		modifier = {
			ship_fire_rate_mult = -0.35
			ship_weapon_range_mult = -0.25
			ship_armor_penetration_mult = -0.25
			ship_shield_penetration_mult = -0.25
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity" 
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 100
	}
	
	prerequisites = {"tech_aura_quantum_destabilizer"}
}

utility_component_template = {
	key = "SHIP_AURA_SUBSPACE_SNARE"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0
	cost = 250
	
	component_set = "ship_aura_components"
	
	hostile_aura = {
		name = "aura_ship_subspace_snare"
		radius = 150
		apply_on = fleets
		
		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_snare_aura
			priority = 11
		}
		
		modifier = {
			ship_windup_mult = 900
			ship_speed_mult = -0.5
			fleet_emergency_ftl_min_days_mult = 900
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity"   
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 1000
	}
}

utility_component_template = {
	key = "STATION_SMALL_AURA_SUBSPACE_SNARE"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_small_aura_components"
	class_restriction = { shipclass_military_station }
	
	ftl_magnet = yes
	
	hostile_aura = {
		name = "aura_station_subspace_snare"
		radius = @stationSmallAuraRange
		apply_on = fleets
		
		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_snare_aura
			priority = 11
		}
		
		modifier = {
			ship_windup_mult = 100
			ship_speed_mult = -0.1
			fleet_emergency_ftl_min_days_mult = 100
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity" 
				dynamic_scale = no
			}
		}
	}

	ai_weight = {
		weight = 110
	}	
}

utility_component_template = {
	key = "STATION_MEDIUM_AURA_SUBSPACE_SNARE"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_medium_aura_components"
	class_restriction = { shipclass_military_station }
	
	ftl_magnet = yes
	
	hostile_aura = {
		name = "aura_station_subspace_snare"
		radius = @stationMediumAuraRange
		apply_on = fleets
		
		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_snare_aura
			priority = 11
		}
		
		modifier = {
			ship_windup_mult = 500
			ship_speed_mult = -0.3
			fleet_emergency_ftl_min_days_mult = 500
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity" 
				dynamic_scale = no
			}
		}
	}

	ai_weight = {
		weight = 110
	}	
}

utility_component_template = {
	key = "STATION_LARGE_AURA_SUBSPACE_SNARE"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_large_aura_components"
	class_restriction = { shipclass_military_station }
	
	ftl_magnet = yes
	
	hostile_aura = {
		name = "aura_station_subspace_snare"
		radius = @stationLargeAuraRange
		apply_on = fleets
		
		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_snare_aura
			priority = 11
		}
		
		modifier = {
			ship_windup_mult = 900
			ship_speed_mult = -0.5
			fleet_emergency_ftl_min_days_mult = 900
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_negative_entity" 
				dynamic_scale = no
			}
		}
	}

	ai_weight = {
		weight = 700
	}	
}

utility_component_template = {
	key = "STATION_SMALL_AURA_MINEFIELD_1"
	size = medium
	icon = "GFX_ship_part_aura_minefield"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_small_aura_components"
	class_restriction = { shipclass_military_station }
	
	hostile_aura = {
		name = "aura_minefield"
		radius = 60
		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_minefield_aura
			priority = 6
		}
		
		damage_per_day = {
			accuracy = 0.6
			damage = { min = 20 max = 30 }
			shield_damage = 1.0
			shield_penetration = 0.0
			armor_penetration = 0.0
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			
			area_effect = {
				entity = "mine_field_small_entity"
				dynamic_scale = no
			}
			 ship_effect = {
				 entity = "ship_aura_minefield_entity"
				 dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 0
		modifier = {
			weight = 101
			has_country_flag = aggressive
		}
	}
}
utility_component_template = {
	key = "STATION_MEDIUM_AURA_MINEFIELD_1"
	size = medium
	icon = "GFX_ship_part_aura_minefield"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_medium_aura_components"
	class_restriction = { shipclass_military_station }
	
	hostile_aura = {
		name = "aura_minefield"
		radius = 60
		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_minefield_aura
			priority = 6
		}
		
		damage_per_day = {
			accuracy = 0.6
			damage = { min = 20 max = 30 }
			shield_damage = 1.0
			shield_penetration = 0.0
			armor_penetration = 0.0
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			
			area_effect = {
				entity = "mine_field_small_entity"
				dynamic_scale = no
			}
			 ship_effect = {
				 entity = "ship_aura_minefield_entity"
				 dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 0
		modifier = {
			weight = 101
			has_country_flag = aggressive
		}
	}
}
utility_component_template = {
	key = "STATION_LARGE_AURA_MINEFIELD_1"
	size = medium
	icon = "GFX_ship_part_aura_minefield"
	icon_frame = 1
	power = 0
	cost = 0
	
	component_set = "station_large_aura_components"
	class_restriction = { shipclass_military_station }
	
	hostile_aura = {
		name = "aura_minefield"
		radius = 60
		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_minefield_aura
			priority = 6
		}
		
		damage_per_day = {
			accuracy = 0.6
			damage = { min = 30 max = 40 }
			shield_damage = 1.0
			shield_penetration = 0.0
			armor_penetration = 0.0
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			
			area_effect = {
				entity = "mine_field_small_entity"
				dynamic_scale = no
			}
			 ship_effect = {
				 entity = "ship_aura_minefield_entity"
				 dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 0
		modifier = {
			weight = 101
			has_country_flag = aggressive
		}
	}
}