Subsystem: WraithHiveshipHull
	Name: #S_WRAITHHIVESHIP_HULL
	Description: #S_WRAITHHIVESHIP_HULL_DESC

	Tags: Applied:Hull, Category:Hulls, NoCore, Mothership, Hiveship
	Tags: Ability:WraithHiveshipColonize, CannotDonate
	Hull: Flagship
	EvaluationOrder: -200
	BaseColor: #3a6acc	//#cc6a3a

	AddShipModifier: FlagshipHull::HexLimitFactor(5)
	AddShipModifier: FlagshipHull::GridWidthFactor(sqrt(8))
	AddShipModifier: FlagshipHull::GridHeightFactor(sqrt(8))
	//AddShipModifier: HPFactor(0.6)
	AddShipModifier: HPFactor(0.5)
	//AddShipModifier: DamageResistFactor(0.25)
	AddShipModifier: DamageResistFactor(0.5)
	//AddShipModifier: SupplyCapacityFactor(0.01)
	//AddShipModifier: SupplyCostFactor(0)
	//AddShipModifier: RepairSupplyCostFactor(-1)
	//AddShipModifier: SlipstreamDistCostFactor(0.5)
	//AddShipModifier: SlipstreamOverheadFactor(0.16)
	//AddShipModifier: ThrustFactor(2.0)
	//AddShipModifier: TurnThrustFactor(2.0)
	AddShipModifier: DamageFactor(0.25)
	//AddShipModifier: SupportCapacityFactor(0.25)
	AddShipModifier: tag/SupportCap::SupportCapacityFactor(0.25)
	AddShipModifier: SupplyCapacityFactor(0.75)
	AddShipModifier: MassFactor(0.75)
	AddShipModifier: BuildCostFactor(0.4)
	//AddShipModifier: LaborCostFactor(0.4)
	AddShipModifier: LaborCostFactor(0.25)
	AddShipModifier: MaintCostFactor(0.4)

	AddShipModifier: ArmorResistFactor(0.75)
	AddShipModifier: RepairFactor(0.5)
	

	//Hex.BuildCost := Hex.BuildCost * 0.75
	//Hex.LaborCost := Hex.LaborCost * 0.75
	//Hex.MaintainCost := Hex.MaintainCost * 0.6

	//SupportCapacity := 128
	//Hex.MaintainCost := 0

	//Hook: AddPermanentStatus(Mothership)
	Hook: AddPermanentStatus(WraithHiveship)
	Hook: AddCargoStorage(100000)
	//Hook: ModSupplyConsumeFactor(-1.0)
	//Ugly fix for Hangar bay conflict
	//Hook: AllowConstruction(True, True, True, True)
	Hook: DOF_hooks::HangarAllowConstruction(True, True, True, True)

	//AddPostModifier: AddMaintainCost(max(300-HexSum.MaintainCost, 0))

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

	//Assert: ShipTotalHexes - Ship.ExternalHexes >= floor(Sum.HexLimit * 0.9)
	//	Message: #ERROR_MUST_BE_FILLED

	Module: Default
		Sprite: ResourceIcon::8
		DrawMode: 3
