// Jumpgates are defined like any other space anomaly. There are some additional fields that are specific to jumpgates though.
// Jumpgates can be set to a specific network during creation, and paired with another jump gate.
// When creating a paired gate, be sure to NOT use spawnMode = everyLastPlanet. Ideally, use spawnMode = fixedOrbit instead.
// Paired gates are easy to make- just give both gates the same networkID and make it unique.
// Also, set isKnown = true.
SPACE_ANOMALY
{
	// Identifier for the space anomaly.
	name = wormholeFixedEnd

	// Name of the part to spawn
	partName = wbiWormhole

	// Like asteroids, space anomalies have a size class that ranges from Size A (12 meters) to Size I (100+ meters).
	// The default is A.
	sizeClass = I

	// How does an instance spawn. Default is randomOrbit.
	// randomOrbit: Spawns in a random solar or planetary orbit.
	// randomSolarOrbit: Spawns in a random solar orbit.
	// randomPlanetOrbit: Spawns in a random planetary orbit.
	// everyLastPlanet: Spawns in random orbit of every last planet in each star system. Ignores maxInstances.
	// fixedOrbit: Spawns in a fixed orbit. One anomaly per orbit. Ignores maxInstances and orbitType.
	spawnMode = fixedOrbit

	// The type of orbit to create. Default is elliptical.
	// elliptical: Garden variety elliptical orbit.
	// flyBy: Fly-by orbit.
	// random: Randomly pick either circular or flyBy.
	orbitType = elliptical

	// For flyBy orbits, the max number of days until the anomaly reaches the closest point in its orbit. Default is 30.
//	maxDaysToClosestApproach = 30

	// For orbitType = random, on a roll of 1 to 100, what is the chance that the orbit will be flyBy. Default is 50.
//	flyByOrbitChance = 50

	// For fixedOrbit, the celestial body to spawn around.
	fixedBody = Kerbin
	
	// For fixedOrbit, the Semi-Major axis of the orbit.
	fixedSMA = 2000000

	// For fixedOrbit, the eccentrcity of the orbit.
	fixedEccentricity = 0

	// For fixedOrbit, the inclination of the orbit. Default is -1, which enables random inclination.
	fixedInclination = 0

	// For undiscovered objects, the minimum number of seconds that the anomaly can exist. Default is 86400 (1 day).
	// Set to -1 to use maximum possible value. When set to -1, maxLifetime is ignored.
	minLifetime = -1

	// For undiscovered objects, the maximum number of seconds that the anomaly can exist. Default is 1728000 ( 20 days).
	maxLifetime = -1

	// Spawn chance in a roll between 1 and 1000
	spawnTargetNumber = 1

	// Maximum number of objects of this type that may exist at any given time. Default is 10.
	// Set to -1 for unlimited number.
	maxInstances = 1

	// Type of anomaly
	// generic: A generic anomaly (the default).
	// jumpGate: A special type of anomaly that is a jumpgate. Jumpgates can be enabled/disabled from the Game Difficulty menu.
	anomalyType = jumpGate

	// Determines whether or not the jumpgate is already known and should be added to the network. Default is false.
	// Applies to anomalyType = jumpGate.
	isKnown = false

	// Indicates that the jumpgate anomaly should be added to the network even if isKnown = false.
	// This allows anomalies like wormholes to work, where you only find one end of the wormhole.
	forceAddToNetwork = true

	// Assign the jumpgate to this network. Overrides networkID set in WBIJumpGate. Make this a unique value.
	// Applies to anomalyType = jumpGate.
	networkID = UnstableWormholeWithOneFixedEnd

	// Overrides the default rendezvous distance set in WBIJumpGate.
	rendezvousDistance = 1100
}

// The other half of the wormhole. This is the unstable end.
SPACE_ANOMALY
{
	name = wormholeUnstableEnd
	partName = wbiWormhole
	sizeClass = I
	spawnMode = randomOrbit

	// By rights you SHOULD be able to set spawnMode = randomOrbit BUT for reasons unknown
	// KSP keeps deleting the vessel definition. fixedOrbit does seem to work though.
//	spawnMode = fixedOrbit
//	fixedBody = any
//	fixedSMA = -1
//	fixedEccentricity = -1
//	fixedInclination = -1

	orbitType = elliptical
	minLifetime = 86400
	maxLifetime = 1728000
	spawnTargetNumber = 1
	maxInstances = 1
	anomalyType = jumpGate
	isKnown = false
	forceAddToNetwork = true
	networkID = UnstableWormholeWithOneFixedEnd
	rendezvousDistance = 1100
}