Subsystem: HangarBay
	Name: #BAY_HANGAR
	Description: #BAY_HANGAR_DESC
	BaseColor: #899599	//#fca404
	TypeColor: #899599	//#fca404
	Elevation: 1

	Tags: DefaultUnlock
	Tags: Category:Control, BaseCost, HasInternals, ExteriorCore, HangarBay
	Hull: Flagship
	EvaluationOrder: 10

	Size := HexSize * Hexes

	SupportCapacity := Size * 2

	SupplyCapacity := Size * 400
	SupplyRate := Size * 6

	Repair := 1 * Size
	RepairSupplyCost := 1.0 * Repair
	out SupplyDrain := RepairSupplyCost

	LaborIncome := Size / 16.0

	//Hook: AllowConstruction(True, False, False)
	//Hook: AllowConstruction(False, False, False, False, True, False)
	Hook: DOF_hooks::HangarAllowConstruction(False, False, False, False, True, False)
	Hook: AddLaborIncome(LaborIncome)
	//Hook: AddPermanentStatus(HangarBay)
	Hook: AddStatus(HangarBay)

	//Hook: DOF_hooks::HangarForbidLaborExport()

	//HangarHPBuff := 1+Size/100*0.01
	//HangarDamageBuff := 1+Size/100*0.005
	HangarBuff := Size * 0.01
	//HangarBuff := Size * 0.005

	Hex.Resistance := 0.1
	Hex.HP := 15 * HexSize
	Hex.Mass := HexSize / 4

	Module: Core
		Sprite: TechIcons::17	// * #fca404
		Hex.HP := 2 * Hex.HP
		Hex.Resistance := 0.35

		//Hex.BuildCost := Hex.BuildCost + LaborIncome * 60
		Hex.BuildCost := Hex.BuildCost + LaborIncome * 10
		//Hex.LaborCost := Hex.BuildCost + LaborIncome * 3
		Hex.LaborCost := Hex.LaborCost + LaborIncome
		//Hex.MaintainCost := Hex.MaintainCost + LaborIncome * 25
		Hex.MaintainCost := Hex.MaintainCost + LaborIncome * 5

	Module: Default
		Sprite: TechIcons::55	// * #fca404