Subsystem: WraithQueenChamber
	Name: #WRAITHQUEENCHAMBER_NAME
	Description: #WRAITHQUEENCHAMBER_DESC
	BaseColor: #ffa4a0
	Picture: SubsystemButtonArt::8 * #ffa4a0
	Elevation: 4
	
	Tags: BaseCost, Category:Control, BadFiller
	Tags: Control, ControlCore, HasInternals, Important
	Hull: Flagship, Station
	
	//EvaluationOrder: -10
	
	Size := HexSize * Hexes
	//Command := Hexes * 10	//This breaks when used with Sinew.  Can't use it.
	SupportCapacity := Size * 300
	//Repair := 4 * HexSize * (Hexes-1)
	Repair := 4 * HexSize
	//PowerUse := 1 * Size

	//SupplyRate := 30 * HexSize * (Hexes-1)
	//SupplyRate := 30 * HexSize
	
	Hex.Resistance := 0.2
	Hex.HP := 18 * HexSize
	Hex.Mass := HexSize

	//Duration := 30
	//EfficiencyBoost := 20 * (Size / ShipSize)
	Hook: AddStatus(WraithQueenChamber)

	AddShipModifier: tag/Weapon::ReloadFactor(0.9)
	AddShipModifier: tag/Weapon::CooldownFactor(0.9)

	//Effect: ControlCore

	HasWraithQueenChamber := 1

	Assert: Sum.HasWraithQueenChamber <= 1
		Unique: True
		Message: #ERROR_ONLY_ONE

	Assert: TagCount.WraithSinew > 0
		Message:  Design must use Wraith Sinew.

	Assert: TagCount.Hiveship > 0
		Message: The Queen's Chamber may only be used on Hiveship Hulls.

	Assert: Hexes <= 1
		Message: The Queen's Chamber may only be 1 Hex.
	
	//Requires:
	//	Power = PowerUse
	
	//Provides:
	//	Command = Command

	Modifier: SupportCapacityFactor(factor)
		SupportCapacity := SupportCapacity * factor
	
	Module: Default
	
	Module: Core
		Sprite: ChairWraithQueen
		Hex.HP := 2 * Hex.HP
		Hex.Resistance := 0.35
		Hex.BuildCost := 10 * Hex.BuildCost
