Skip to content

Commit

Permalink
Deactivate debug output activate check boring #32
Browse files Browse the repository at this point in the history
  • Loading branch information
N3h3miah committed Jan 1, 2015
1 parent 03c088f commit 226534a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 25 deletions.
12 changes: 0 additions & 12 deletions Plugin/NE Science/KEESExperiment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ public class KEESExperiment : OMSExperiment

private const string debloyAnimation = "Deploy";

public static bool checkBoring(Vessel vessel, bool msg = false)
{

//TODO eneable
//if ((vessel.orbit.referenceBody.name == "Kerbin") && (vessel.situation == Vessel.Situations.LANDED || vessel.situation == Vessel.Situations.PRELAUNCH || vessel.situation == Vessel.Situations.SPLASHED || vessel.altitude <= vessel.orbit.referenceBody.maxAtmosphereAltitude))
//{
// if (msg) ScreenMessages.PostScreenMessage("Too boring here. Go to space!", 6, ScreenMessageStyle.UPPER_CENTER);
// return true;
//}
return false;
}

public PartResource getResource(string name)
{
return ResourceHelper.getResource(part, name);
Expand Down
2 changes: 1 addition & 1 deletion Plugin/NE Science/NE_Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class NE_Helper
public const int MEP_RUNNING = 2;
public const int MEP_ERROR_ON_START = 3;
public const int MEP_ERROR_ON_STOP = 4;
private static bool debug = true;
private static bool debug = false;

public static void log( string msg)
{
Expand Down
11 changes: 11 additions & 0 deletions Plugin/NE Science/OMSExperiment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,16 @@ public class OMSExperiment : ModuleScienceExperiment
[KSPField(isPersistant = true)]
public float completed = 0;

public static bool checkBoring(Vessel vessel, bool msg = false)
{
//TODO eneable
if ((vessel.orbit.referenceBody.name == "Kerbin") && (vessel.situation == Vessel.Situations.LANDED || vessel.situation == Vessel.Situations.PRELAUNCH || vessel.situation == Vessel.Situations.SPLASHED || vessel.altitude <= vessel.orbit.referenceBody.maxAtmosphereAltitude))
{
if (msg) ScreenMessages.PostScreenMessage("Too boring here. Go to space!", 6, ScreenMessageStyle.UPPER_CENTER);
return true;
}
return false;
}

}
}
12 changes: 0 additions & 12 deletions Plugin/NE Science/PhaseExperimentCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,6 @@ private ExperimentPhase getActivePhase()
return phases.ElementAt(activePhase);
}

public static bool checkBoring(Vessel vessel, bool msg = false)
{
return false;
//TODO eneable
//if ((vessel.orbit.referenceBody.name == "Kerbin") && (vessel.situation == Vessel.Situations.LANDED || vessel.situation == Vessel.Situations.PRELAUNCH || vessel.situation == Vessel.Situations.SPLASHED || vessel.altitude <= vessel.orbit.referenceBody.maxAtmosphereAltitude))
//{
// if (msg) ScreenMessages.PostScreenMessage("Too boring here. Go to space!", 6, ScreenMessageStyle.UPPER_CENTER);
// return true;
//}
return false;
}

public PartResource getResource(string name)
{
return ResourceHelper.getResource(part, name);
Expand Down

0 comments on commit 226534a

Please sign in to comment.