#############
### 星基光环
#############

# 指挥中心强化 +30%
utility_component_template = {
	key = "STARBASE_AURA_COMMAND_CENTER_1"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0

	friendly_aura = {
		name = "aura_starbase_command_center_1"
		system_wide = yes

		stack_info = {
			id = friendly_command_center_aura_1
			priority = 10
		}

		modifier = {
			ship_fire_rate_mult = 0.3
		}

		graphics = {
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
}

#护盾强化 -50%盾
utility_component_template = {
	key = "STARBASE_AURA_DISRUPTION_FIELD_1"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0

	hostile_aura = {
		name = "aura_starbase_distruption_field_1"
		system_wide = yes

		#一个建筑只能被一个id的光环影响，若有多个光环默认选择最高级priority
		stack_info = {
			id = hostile_disruption_field_aura_1
			priority = 20
		}

		modifier = {
			ship_shield_mult = -0.50
		}
	}
}

# 引力边界 战斗撤离几率-90
utility_component_template = {
	key = "STARBASE_GRAVITY_EDGE"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0

	hostile_aura = {
		name = "aura_starbase_gravity_edge"
		system_wide = yes

		#一个建筑只能被一个id的光环影响，若有多个光环默认选择最高级priority
		stack_info = {
			id = hostile_gravity_edge
			priority = 10
		}

		modifier = {
			ship_disengage_chance_mult = -0.90
		}
	}
}

#星云波动仪 亚光速-40 闪避70 追踪-10
utility_component_template = {
	key = "STARBASE_NEBULA_FLUCTUATOR"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0

	hostile_aura = {
		name = "aura_starbase_nebula_fluctuator"
		system_wide = yes

		#一个建筑只能被一个id的光环影响，若有多个光环默认选择最高级priority
		stack_info = {
			id = hostile_nebula_fluctuator
			priority = 10
		}

		modifier = {
			ship_speed_mult = -0.4
			ship_evasion_mult = -0.7
			ship_tracking_add = -10
		}
	}
}

#引力灯塔 闪避+30 战斗撤离几率+50
utility_component_template = {
	key = "STARBASE_GRAVITY_BEACON"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0

	friendly_aura = {
		name = "aura_starbase_gravity_beacon"
		system_wide = yes

		#一个建筑只能被一个id的光环影响，若有多个光环默认选择最高级priority
		stack_info = {
			id = hostile_gravity_beacon
			priority = 10
		}

		modifier = {
			ship_evasion_mult = 0.3
			ship_disengage_chance_mult = 0.5
		}
	}
}

#亚空间供能 护盾+50%
utility_component_template = {
	key = "STARBASE_SUBSPACE_ENERGY"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0

	friendly_aura = {
		name = "aura_starbase_subspace_energy"
		system_wide = yes

		#一个建筑只能被一个id的光环影响，若有多个光环默认选择最高级priority
		stack_info = {
			id = hostile_subspace_energy
			priority = 10
		}

		modifier = {
			ship_shield_mult = 0.5
		}
	}
}


#粒子紊乱 护盾-100%
utility_component_template = {
	key = "STARBASE_PARTICLE_CHAOS"
	size = medium
	icon = "GFX_ship_part_aura_snare"
	icon_frame = 1
	power = 0

	friendly_aura = {
		name = "aura_starbase_particle_chaos"
		system_wide = yes

		#一个建筑只能被一个id的光环影响，若有多个光环默认选择最高级priority
		stack_info = {
			id = hostile_particle_chaos_1
			priority = 10
		}

		modifier = {
			ship_shield_reduction = 1
		}
	}

	hostile_aura = {
		name = "aura_starbase_particle_chaos"
		system_wide = yes

		#一个建筑只能被一个id的光环影响，若有多个光环默认选择最高级priority
		stack_info = {
			id = hostile_particle_chaos_2
			priority = 10
		}

		modifier = {
			ship_shield_reduction = 1
		}
	}
}




#############
### 星基组件
#############

#暗物质核心
utility_component_template = {
	key = "STARBASE_DARK_MATTER_REACTOR_1"
	size = large
	icon = "GFX_ship_part_dark_matter_power_core"
	icon_frame = 1
	power = 99999

	component_set = "power_core"
	
	size_restriction = {
		starbase_1
		starbase_2
		starbase_3
	}

	ai_weight = {
		weight = 6
	}
}

#作战电脑
utility_component_template = {
	key = "STARBASE_COMBAT_COMPUTER_A"
	size = small
	icon = "GFX_ship_part_computer_default"
	icon_frame = 1
	power = 0
	
	size_restriction = {
		starbase_1
		starbase_2
	}
	component_set = "combat_computers"
	ship_behavior = "platform"

	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_tracking_add = 40
	}

	ai_weight = {
		weight = 1
	}
}

utility_component_template = {
	key = "STARBASE_COMBAT_COMPUTER_B"
	size = small
	icon = "GFX_ship_part_computer_default"
	icon_frame = 1
	power = 0
	
	size_restriction = {
		starbase_3
	}
	component_set = "combat_computers"
	ship_behavior = "platform"

	ship_modifier = {
		ship_fire_rate_mult = 0.3
		ship_tracking_add = 40
	}

	ai_weight = {
		weight = 1
	}
}

