Trait: AncientsSojourners
	Name: #TRAIT_ANCIENTS_SOJOURNERS
	Description: #TRAIT_ANCIENTS_SOJOURNERS_DESC
	Order: 0
	DLC: Heralds

	Icon: PlanetType::2
	Color: #59d098

	Category: Lifestyle
	Unique: Lifestyle

	//StarChildren Props
	AddStatusOwnedPlanets(StarChildren)
	ModAttribute(PopulationGrowthFactor, Multiply, 0)
	ModAttribute(PopulationDecayFactor, Multiply, 0)
	ModAttribute(TileDevelopmentFactor, Multiply, 0)
	ModAttribute(OverpopulationBenefitFactor, Multiply, 0)
	ModAttribute(ColonizeDevelopTiles, Multiply, 0)
	ModAttribute(ForbidColonization, Add, 1)
	ModAttribute(ImperialBldConstructionRate, Multiply, 0)
	ModAttribute(CivBldConstructionRate, Multiply, 0)

	IfHaveTrait(Hyperdrive, LoadDesigns(Ancients/mothership/hyperdrive))
	IfHaveTrait(Slipstream, LoadDesigns(Ancients/mothership/slipstream))
	IfHaveTrait(Jumpdrive, LoadDesigns(Ancients/mothership/jumpdrive))
	IfHaveTrait(Gate, LoadDesigns(Ancients/mothership/other))
	IfHaveTrait(Fling, LoadDesigns(Ancients/mothership/other))
	IfHaveTrait(Sublight, LoadDesigns(Ancients/mothership/other))

//	IfHaveTrait(Hyperdrive, LoadDesigns(hyperdrive/Ancients))
//	IfHaveTrait(Hyperdrive, LoadDesigns(default/Ancients))

	UnlockSubsystem(MothershipHull)

	TriggerHomeworld(SpawnShip(Atlantis Mothership Mk I, Override Disable Starting = True, Set Home = True))
	TriggerHomeworld(DestroySystemPlanet(0, Quiet = True))

	ReplaceTechnologyNodes(ImpFactoryLabor, ImpMothershipLabor)
	ReplaceTechnologyNodes(ImpFactoryLabor2, ImpMothershipLabor2)

	ReplaceTechnologyNodes(ImpTileDevelopment, ImpMothershipLabor)
	ReplaceTechnologyNodes(ImpTileDevelopment2, ImpMothershipLabor2)

	ReplaceTechnologyNodes(ImpCivConstructionRate, ImpHabitat)
	ReplaceTechnologyNodes(ImpCivConstructionRate2, ImpHabitat)

	ReplaceTechnologyNodes(ImpImpConstructionRate, ImpHabitat)
	ReplaceTechnologyNodes(ImpImpConstructionRate2, ImpHabitat)

	ReplaceTechnologyNodes(ImpPlanetDamage, ImpHabitat)
	ReplaceTechnologyNodes(ImpPlanetDamage2, ImpHabitat)

	ReplaceTechnologyNodes(BldMegacity, ImpHabitat)
	ReplaceTechnologyNodes(BldPlanetaryEngine, ImpHabitat)

	ReplaceTechnologyNodes(FactoryLabor, MothershipLabor)
	ReplaceTechnologyNodes(FactoryLabor2, MothershipLabor2)
	ReplaceTechnologyNodes(Construction, HabitatUpgrade)
	ReplaceTechnologyNodes(Megacity, HabitatUpgrade)
	ReplaceTechnologyNodes(PlanetaryEngine, HabitatUpgrade)
	ReplaceTechnologyNodes(Population, HabitatUpgrade)
	OnDLC(Heralds, ReplaceTechnologyNodeAt((-3,1), HabitatUpgrade))
	OnDLC(Heralds, ReplaceTechnologyNodeAt((-1,4), HabitatUpgrade))
	OnDLC(Heralds, ReplaceTechnologyNodeAt((-1,11), HabitatUpgrade))
	OnDLC(Heralds, ReplaceTechnologyNodeAt((-8,11), HabitatUpgrade))
	OnDLC(Heralds, ReplaceTechnologyNodeAt((5,-12), HabitatUpgrade))
	OnDLC(Heralds, ReplaceTechnologyNodeAt((7,1), HabitatUpgrade))

	//Mod Stuff
	ReplaceTechnologyNodes(SysAntimatterGen, SysZeroPointModule)
	OnDLC(Heralds, ReplaceTechnologyNodes(AntimatterGen, ZeroPointModule))
	ReplaceTechnologyNodes(SysShieldGen, DOFactionsShieldMastery1)
	OnDLC(Heralds, ReplaceTechnologyNodes(ShieldGen, DOFactionsShieldMasteryHeralds1))
//	ReplaceTechnologyNodes(SysShieldHardener, DOFactionsShieldMastery2)
	ReplaceTechnologyNodes(SysShieldHardener, SysShieldHardenerAncients)
	OnDLC(Heralds, ReplaceTechnologyNodes(ShieldHardener, ShieldHardenerAncients))
	OnDLC(Heralds, ReplaceTechnologyNodes(DroneLauncher, AncientDronePhasic))
	OnDLC(Heralds, ReplaceTechnologyNodes(DroneCount, AncientDroneCount))
	OnDLC(Heralds, ReplaceTechnologyNodes(FlakBattery, AncientDroneControl))
	//OnDLC(Heralds, ReplaceTechnologyNodes(FleetComputer, AtlanteanControlChair))
	//OnDLC(Heralds, ReplaceTechnologyNodes(ShieldHarmonizer, PlasmaThermite))
	//OnDLC(Heralds, ReplaceTechnologyNodes(DestroyerHull, PlasmaCooldown))
	//OnDLC(Heralds, ReplaceTechnologyNodes(CarrierHull, PlasmaRange))
	//OnDLC(Heralds, ReplaceTechnologyNodes(BoosterEngine, Supercapacitors))

	UnlockSubsystem(AncientsShieldGenerator)
//	UnlockSubsystem(AncientsShieldHardener)
	UnlockSubsystem(AncientsShieldGeneratorSupport)
//	UnlockSubsystem(AncientsShieldHardenerSupport)
	UnlockSubsystem(AncientDrone)
	UnlockSubsystem(AncientDroneSupport)
	UnlockSubsystem(AntimatterGen)
	UnlockSubsystem(AntimatterGenSupport)
	UnlockSubsystem(PlasmaBeam)
	UnlockSubsystem(PlasmaBeamSupport)

	//Weapon Restrictions
	//ForbidSubsystem(Laser)
	//ForbidSubsystem(SupportLaser)
	//ForbidSubsystem(PulseLaser)
	//ForbidSubsystem(PulseLaserSupport)
	//ForbidSubsystem(BeamCannon)
	//ForbidSubsystem(BeamCannonSupport)
	ForbidSubsystem(RailgunBattery)
	ForbidSubsystem(Railgun)
	ForbidSubsystem(MissileLauncher)
	ForbidSubsystem(SupportMissileLauncher)
	ForbidSubsystem(LancerMissileLauncher)
	ForbidSubsystem(LancerMissileLauncherSupport)
	ForbidSubsystem(RocketPod)
	ForbidSubsystem(TorpedoLauncher)
	ForbidSubsystem(TorpedoLauncherSupport)
	ForbidSubsystem(Autocannon)
	ForbidSubsystem(AutocannonSupport)
	ForbidSubsystem(PulseGun)
	ForbidSubsystem(PulseGunSupport)
	ForbidSubsystem(PlasmaCannon)
	ForbidSubsystem(PlasmaCannonSupport)
	//ForbidSubsystem(PlasmaBomb)
	ForbidSubsystem(PlasmaBombSupport)
	ForbidSubsystem(FlakCannon)
	ForbidSubsystem(FlakCannonSupport)