Building: ImperialCapital
	Name: #BLD_IMPERIALCAPTIAL
	Description: #BLD_IMPERIALCAPTIAL_DESC
	Sprite: ImperialCapital

	Category: Infrastructure
	//Build Affinity: Crystallic
	//Maintenance Affinity: Crystallic

	Size: 4x4
	Base Cost: 4000
	Tile Cost: 400
	Base Maintenance: 800
	Tile Maintenance: 120

	RequireNotTrait(Ancient)
	DOF_requirement_effects::RequirePlanetLevel(8)
	ConstructibleIfAttribute(ImperialCapitalBuilt, 0)

	TriggerStartConstruction(ModAttribute(ImperialCapitalBuilt, Add, 1))
	TriggerCancelConstruction(ModAttribute(ImperialCapitalBuilt, Add, -1))
	TriggerConstructed(ModAttribute(ImperialCapitalBuilt, Add, -1))

	ModEmpireAttribute(ImperialCapitalBuilt, Add, 1)

	AddResource(Influence, 10)
	ModGlobalLoyalty(+3)
	ModEmpireAttribute(VoteStartSupport, Add, 2)
	OnEmpires(ModEmpireAttribute(VoteStartSupport, Add, -2), On Owner = False, On Allied = False)