Subsystem: SuperStarDestroyerHull
	Name: #HULL_EMPIRE_SUPERSTARDESTROYER
	Description: #HULL_EMPIRE_SUPERSTARDESTROYER_DESC

	Tags: Applied:Hull, Category:Hulls, NoCore, SuperStarDestroyerHull, SpinalMountHull
	Hull: Flagship
	EvaluationOrder: -200
	BaseColor: #6666cc

	AddShipModifier: FlagshipHull::HexLimitFactor(4.0)
	AddShipModifier: FlagshipHull::GridWidthFactor(sqrt(5.0))
	AddShipModifier: FlagshipHull::GridHeightFactor(sqrt(5.0))

	AddShipModifier: tag/PrimaryArmor::HpFactor(3.0)
	AddShipModifier: tag/SecondaryArmor::HpFactor(1.5)
	AddShipModifier: tag/Weapon::CoreHealthFactor(3.0)
	AddShipModifier: ShieldCapacityFactor(1.5)
	AddShipModifier: ShieldRegenFactor(1.5)
	AddShipModifier: MassFactor(1.25)
	AddShipModifier: BuildCostFactor(1.0 - 0.2 * min(sqrt((ShipSize - 500) / 20000), 1.0))
	AddShipModifier: MaintCostFactor(1.0 - 0.2 * min(sqrt((ShipSize - 500) / 20000), 1.0))
	SSDBuildCostMod := 0
	SSDLaborCostMod := 0
	AddShipModifier:  BuildCostFactor(1.0 - SSDBuildCostMod)
	AddShipModifier:  LaborCostFactor(1.0 - SSDLaborCostMod)

	Requires:
		Command = 10
		Power = ShipSize * 0.25

	Assert: ShipSize >= 900
		Message: #ERROR_MIN_SIZE:$1:900

	Assert: TagCount.Weapon >= 20
		Message: Super Star Destroyers must have at least 20 different weapon systems.

	Assert: Sum.SpinalMount <= 1
		Message:  May only have a single weapon designated as spinal mount by modifier placement.

	Module: Default
		Sprite: DesignationIcons::16
		DrawMode: 3
