Skip to content

Commit

Permalink
Issue KSP-KOS#2319 Fixed things to be more in line with conventions.
Browse files Browse the repository at this point in the history
  • Loading branch information
evandisoft committed Nov 13, 2018
1 parent a721f2a commit 1cc6303
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions doc/source/structures/celestial_bodies/body.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ All of the main celestial bodies in the game are reserved variable names. The fo
:attr:`NAME` :ref:`string <string>`
:attr:`DESCRIPTION` :ref:`string <string>`
:attr:`MASS` :ref:`scalar <scalar>` (kg)
:attr:`OCEAN` :ref:`boolean <boolean>`
:attr:`HASOCEAN` :ref:`boolean <boolean>`
:attr:`HASSOLIDSURFACE` :ref:`boolean <boolean>`
:attr:`ORBITINGCHILDREN` :struct:`List`
:attr:`ALTITUDE` :ref:`scalar <scalar>` (m)
Expand Down Expand Up @@ -99,13 +99,13 @@ All of the main celestial bodies in the game are reserved variable names. The fo

The mass of the body in kilograms.

.. attribute:: Body:OCEAN
.. attribute:: Body:HASOCEAN

Does the body have oceans?
True if this body has an ocean.

.. attribute:: Body:HASSOLIDSURFACE

Does the body have an actual solid surface?
True if this body has a solid surface.

.. attribute:: Body:ORBITINGCHILDREN

Expand Down
2 changes: 1 addition & 1 deletion src/kOS/Suffixed/BodyTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void BodyInitializeSuffixes()
AddSuffix("NAME", new Suffix<StringValue>(() => Body.name));
AddSuffix("DESCRIPTION", new Suffix<StringValue>(() => Body.bodyDescription));
AddSuffix("MASS", new Suffix<ScalarValue>(() => Body.Mass));
AddSuffix("OCEAN", new Suffix<BooleanValue>(() => Body.ocean));
AddSuffix("HASOCEAN", new Suffix<BooleanValue>(() => Body.ocean));
AddSuffix("HASSOLIDSURFACE", new Suffix<BooleanValue>(() => Body.hasSolidSurface));
AddSuffix("ORBITINGCHILDREN", new Suffix<ListValue>(GetOrbitingChildren));
AddSuffix("ALTITUDE", new Suffix<ScalarValue>(() => Body.orbit.altitude));
Expand Down

0 comments on commit 1cc6303

Please sign in to comment.