Moon

A moon can exist on any planet in the universe. They are created by chance if a large enough battle occurs at a planet. Moons can also be destroyed by Deathstars. A moon is extremely important, foremost in allowing a safe fleetsave.

In addition, moons are the only locations where certain facilities can be built. These include the Sensor Phalanx and Jump Gate. Due to the importance of having a moon, many players engage in moonshots in order to try to create one artificially.

Once created a moon functions sort of like an auxiliary planet. It can send and receive fleets, hold resources, be attacked, and so forth. The travel distance between a moon and planet it orbits is naturally very short.

Facilities


The following buildings can be constructed on a moon:


 * Robotic Factory
 * Shipyard
 * Metal Storage (useless )
 * Crystal Storage (useless )
 * Deuterium Tank (useless )
 * Lunar Base
 * Sensor Phalanx
 * Jump Gate

A moon starts with only 1 field. The Lunar Base is used to add more fields to a moon. Each level adds three field but of course consumes one.

You cannot build resource mines, Research Labs, Nanite Factories, Terraformers, or Missile Silos on a moon.

Defense
As long as the required Shipyard level is constructed, any Defenses can be built on a moon. Just like on a Planet, constructed defenses do not use up fields. IPMs can be used to destroy defenses on a moon. While it is not possible to build ABMs on the moon the ones from the planet will defend the moon if attacked by IPMs.

Obtaining
Having a moon is so desirable for success in OGame that many players team up to organize a series of moonshots until they get one. Because the largest default chance any single attack can have at forming a moon is 20%, it can often take many moonshots in order for a moon to form on the desired planet.

Destroying
A moon can be destroyed by a fleet of Deathstars. If there is any fleet or defense, the attacker must win the battle first before the moon destruction chance begins. A draw or loss by the attacker will send any surviving Deathstars back with no moon destruction. Regardless of if the moon is destroyed or not, there is a chance that the moon will destroy the Deathstars. The formulae are provided below. It is important to note that when a Moon, the Deathstars, or both are destroyed there is no debris field created in the moon destruction mission.

Moon Destruction Results
There are 4 possible outcomes for a moon destruction mission:


 * 1) Moon survives, Fleet survives
 * 2) Moon survives, Fleet is destroyed
 * 3) Moon is destroyed, Fleet is destroyed
 * 4) Moon is destroyed, Fleet survives

Fleets returning to the destroyed moon will be rerouted to the planet. This will mean the fleet would be visible to a phalanx.

Formulae
Chance to destroy moon (in percentage): $$ ( 100-\sqrt{S} )\times\sqrt{D} ) $$

Chance the deathstar is destroyed (in percentage) : $$ \frac{\sqrt{S}}{2}$$