Subsystem: StationCivicSection
	Name: #SECTION_CIVIC
	Description: #SECTION_CIVIC_DESC
	BaseColor: #c5f946
	Picture: SubsystemButtonArt::8
	Elevation: 1
	
	Tags: Category:Equipment, BadFiller, CivicSection
	Tags: NoBulkhead, NoWall, NoCore, NonContiguous
	Hull: Station
	
	EvaluationOrder: -10
	
	Size := HexSize * Hexes
	
	Hex.Resistance := 0.2
	Hex.HP := 18 * HexSize
	Hex.Mass := HexSize

	Hex.BuildCost := HexSize * 3
	Hex.LaborCost := HexSize * 5

	OnboardPopulation := Size * 0.025
	//MoneyIncome := OnboardPopulation * 50
	//MoneyIncome := OnboardPopulation * 25
	MoneyIncome := 2 * Size / ShipSize^0.2
	Hook: AddStatus(OnboardMoney)

	//CivicSectionCount := max(Hexes / ((1/160) / HexSize), 1.0)
	CivicSectionCount := max(Hexes*160/(ShipSize/HexSize), 1.0)
	

	//Effect: ControlCore
	
	//Provides:
	//	Crew = Crew
	//	Command = Command

	Requires:
		Command = ceil(Hexes * (160/(ShipSize/HexSize)))
	
	Module: Default
		Sprite: CivicSection

	Assert: Sum.SupplyCapacity >= Size * 1000
		Message: Civic Section requires more Supply Capacity be present.

	Assert: Size/ShipSize <= 0.25
		Message: Civic Section cannot compose more than 25% of the design.

	Assert: Hexes/(ShipTotalHexes - Ship.ExternalHexes) <= 0.25
		Message: Civic Section cannot compose more than 25% of the hexes in use.

	Assert: Sum.CivicSectionCount <= 40
		Message: Civic Section too large.
