Subsystem: AsgardValhallaStation
	Name: HULL_ASGARD_VALHALLA_STATION
	Description: HULL_ASGARD_VALHALLA_STATION_DESC

	Tags: Applied:Hull, Category:Hulls, NoCore, AsgardValhallaStation
	//Tags: Ability:AsgardValhallaStationColonize
	Hull: Station
	EvaluationOrder: -200
	BaseColor: #666688
	TypeColor: #666688

	//Not able to get this working right yet
	//Hook: DOF_hooks::LimitStationFlagPerSystem(ValhallaFlag)

	//Range:= 500000
	Hook: AddPermanentStatus(AsgardValhallaStation)
	Hook: AddCargoStorage(100000)
	//Hangar Bay workaround
	//AllowConstruction(Ships = True, Orbitals = True, Asteroids = True, Terraforming = True)
	Hook: DOF_hooks::HangarAllowConstruction(True, True, True, True)

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

	AddShipModifier: StationHull::HexLimitFactor(5.0)
	AddShipModifier: StationHull::GridWidthFactor(sqrt(5.0))
	AddShipModifier: StationHull::GridHeightFactor(sqrt(5.0))

	//AddShipModifier: tag/Weapon::DamageFactor(0.5)
	AddShipModifier: HpFactor(0.75)
	//AddShipModifier: ArmorResistFactor(0.5)
	//AddShipModifier: DamageResistFactor(0.25)
	//AddShipModifier: SupportCapacityFactor(0.5)
	//AddShipModifier: RepairFactor(0.5)

	AddShipModifier: BuildCostFactor(1.0 - 0.5 * min(ShipSize/20000, 1.0))
	//AddShipModifier: LaborCostFactor(0.2)
	//AddShipModifier: MaintCostFactor(0.2)

	AddShipModifier: ResearchIncomeFactor(1.2)
	AddShipModifier: InfluenceIncomeFactor(1.2)
	//AddShipModifier: OnboardPopulationFactor(0.2)
	//AddShipModifier: MoneyIncomeFactor(1.5)
	AddShipModifier: MoneyIncomeFactor(3.0)
	
	//Hex.OreCost := 0
	//AddPostModifier: AddOreCost(HexSum.BuildCost)
	//AddPostModifier: AddOreCost(HexSum.LaborCost)
	//AddPostModifier: AddOreCost(HexSum.MaintainCost * 0.5)


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

	Assert: ShipSize <= 20000
		Message: Valhalla Station size cannot exceed 20000

	Assert: Sum.OnboardPopulation >= (80 * 0.025 * HexSize)
		Message: Valhalla Station must have more Civic Sections

	Assert: Sum.ResearchIncome >= (40 * 0.01 * HexSize)
		Message: Valhalla Station must have more Research Sections

	Assert: Sum.InfluenceIncome >= (40 * 0.005 * HexSize)
		Message: Valhalla Station must have more Culture Sections

	Assert: Sum.SupportCapHexes == 0
		Message: Cannot have Support Command modules

	Assert: TagCount.Gate <= 0
		Message: Valhalla Stations may not include Gates.

	Assert: TagCount.Slipstream <= 0
		Message: Valhalla Stations may not include Slipstream generators.


	Module: Default
		Sprite: DesignationIcons::16
		DrawMode: 3
