Subsystem: CloakGenerator
	Name: #CLOAKGENERATOR
	Description: #CLOAKGENERATOR_DESC
	BaseColor: #5188e6
	Picture: SubsystemButtonArt::8 * #ffa4a0
	Elevation: 4
	
	Tags: BaseCost, Category:Equipment, BadFiller, CloakGeneratorBase
	Tags: HasInternals
	Tags: Ability:CloakingGenerator
	Hull: Flagship, Station
	
	Size := HexSize * Hexes
	PowerUse := 10 * Size
	
	Hex.Resistance := 0.2
	Hex.HP := 18 * HexSize
	Hex.Mass := HexSize

	HasCloakGenerator := 1
	MassCapacity := Size * 100

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

	Assert: MassCapacity >= HexSum.Mass
		Message: Cloak Generator is not large enough for the mass of the design.
	
	Requires:
		Power = PowerUse
	
	Module: Default
	
	Module: Core
		Sprite: DOFModule5
		Hex.HP := 2 * Hex.HP
		Hex.Resistance := 0.35
		Hex.BuildCost := 5 * Hex.BuildCost
