
### Variables

@shipAuraRange = 120

utility_component_template = {
	key = "SHISHEN_TAITAN_DUIDI"
	size = medium
	icon = "GFX_ship_part_shishen_taitan_didui"
	icon_frame = 1
	power = 0
	
	size_restriction = { titan }
	component_set = "ship_aura_components"
	prerequisites = { "tech_black_tech" }
	
	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_shield_dampener
			priority = 1
		}
		
		modifier = {
			ship_fire_rate_mult = -0.10
			ship_shield_mult = -0.20
	        ship_disengage_chance_mult = -0.20
		    ship_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
		}
		should_ai_use = no

}

utility_component_template = {
	key = "SHISHEN_TAITAN_JIAQIANG"
	size = medium
	icon = "GFX_ship_part_shishen_taitan_jiaqiang"
	icon_frame = 1
	power = 0
	
	size_restriction = { titan }
	component_set = "ship_aura_components"
	prerequisites = { "tech_black_tech" }
	
	friendly_aura = {
		name = "aura_inspiring_presence"
		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_inspiring_presence
			priority = 20
		}
		
		modifier = {
			ship_tracking_add = 15
			ship_fire_rate_mult = 0.10
			ship_hull_regen_add_static = 5
			ship_armor_regen_add_static = 5
			ship_shield_regen_add_perc = 10
		}
		
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	
	ai_weight = {
		weight = 0
	}
	should_ai_use = no
	
}