Building: PlanetaryMachineworks
	Name: #BLD_PLANETARYMACHINEWORKS
	Description: #BLD_PLANETARYMACHINEWORKS_DESC
	Sprite: PlanetaryMachineworks

	Category: Production
	//Build Affinity: Crystallic
	//Maintenance Affinity: Crystallic

	Size: 12x9
	Base Cost: 8000
	Tile Cost: 200
	Base Maintenance: 750
	Tile Maintenance: 125

	RequireNotTrait(Ancient)
	DOF_requirement_effects::RequirePlanetLevel(7)
	RequireNotStatus(PlanetaryMachineworks))

	TriggerStartConstruction(AddStatus(PlanetaryMachineworks))
	TriggerCancelConstruction(RemoveStatus(PlanetaryMachineworks))
	TriggerConstructed(RemoveStatus(PlanetaryMachineworks))

	AddStatus(PlanetaryMachineworks)

	AddResource(Labor, 50)
	AddResourceEmpireAttribute(Labor, FactoryLaborMod)
	ModConstructionHPBonusAttribute(FactoryHPMod) #version>=147
	EnableModifier(MaintCostFactor(0.90))

	AddEnergyIncome(-10.0)

	ShowAttributeValue(#RESOURCE_LABOR, FactoryLaborMod, Base Amount = 50, Icon = ResourceIcon::6, Suffix = #PER_MINUTE)
	ShowAttributeValue(#CONS_HP_BONUS, FactoryHPMod, Icon = AttributeIcons::6, Multiplier = 100, Suffix = %, Hide Zero = True)
