Skip to content

Commit

Permalink
Merge pull request #36 from DMagic1/dev
Browse files Browse the repository at this point in the history
Version 1.0.1
  • Loading branch information
DMagic1 committed Apr 6, 2015
2 parents 06ca88e + 820fbb5 commit 572336c
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"NAME":"DMagic Orbital Science",
"URL":"https://raw.githubusercontent.com/DMagic1/Orbital-Science/master/GameData/DMagic%20Orbital%20Science/DMagic%20Orbital%20Science.version",
"DOWNLOAD":"https://kerbalstuff.com/mod/5/DMagic%20Orbital%20Science/download/1.0",
"DOWNLOAD":"https://kerbalstuff.com/mod/5/DMagic%20Orbital%20Science/download/1.0.1",
"GITHUB":{
"USERNAME":"DMagic1",
"REPOSITORY":"Orbital-Science",
Expand All @@ -10,7 +10,7 @@
"VERSION":{
"MAJOR":1,
"MINOR":0,
"PATCH":0,
"PATCH":1,
"BUILD":0
},
"KSP_VERSION":{
Expand Down
4 changes: 2 additions & 2 deletions GameData/DMagicOrbitalScience/DMagicOrbitalScience.version
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"NAME":"DMagic Orbital Science",
"URL":"https://raw.githubusercontent.com/DMagic1/Orbital-Science/master/GameData/DMagicOrbitalScience/DMagicOrbitalScience.version",
"DOWNLOAD":"https://kerbalstuff.com/mod/5/DMagic%20Orbital%20Science/download/1.0",
"DOWNLOAD":"https://kerbalstuff.com/mod/5/DMagic%20Orbital%20Science/download/1.0.1",
"GITHUB":{
"USERNAME":"DMagic1",
"REPOSITORY":"Orbital-Science",
Expand All @@ -10,7 +10,7 @@
"VERSION":{
"MAJOR":1,
"MINOR":0,
"PATCH":0,
"PATCH":1,
"BUILD":0
},
"KSP_VERSION":{
Expand Down
41 changes: 26 additions & 15 deletions Source/Part Modules/DMAnomalyScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,38 @@ public override void OnStart(PartModule.StartState state)
protected override void Update()
{
base.Update();
if (IsDeployed)
{
DMScienceScenario.SciScenario.anomalyList.ScannerUpdating = true;

if (PartResourceLibrary.Instance.GetDefinition(resourceExperiment) != null)
if (HighLogic.LoadedSceneIsFlight)
{
if (IsDeployed)
{
float cost = resourceCost * Time.deltaTime;
part.RequestResource(resourceExperiment, cost);
if (PartResourceLibrary.Instance.GetDefinition(resourceExperiment) != null)
{
float cost = resourceCost * Time.deltaTime;
part.RequestResource(resourceExperiment, cost);
}
if (fullyDeployed)
{
inRange();
rotating = true;
dishRotate();
}
}
if (fullyDeployed)

if (DMScienceScenario.SciScenario != null)
{
inRange();
rotating = true;
dishRotate();
if (DMScienceScenario.SciScenario.anomalyList != null)
{
if (IsDeployed)
DMScienceScenario.SciScenario.anomalyList.ScannerUpdating = true;
else if (DMScienceScenario.SciScenario.anomalyList.ScannerUpdating)
DMScienceScenario.SciScenario.anomalyList.ScannerUpdating = false;
}
}
}
else if (DMScienceScenario.SciScenario.anomalyList.ScannerUpdating)
DMScienceScenario.SciScenario.anomalyList.ScannerUpdating = false;

if (!fullyDeployed && rotating)
spinDishDown();
if (!fullyDeployed && rotating)
spinDishDown();
}
}

new private void OnDestroy()
Expand Down
1 change: 1 addition & 0 deletions Source/Part Modules/DMAsteroidScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ private void runExperiment(float distance, ModuleAsteroid m)
Debug.LogError("[DM] Something Went Wrong Here; Null Asteroid Science Data Returned; Please Report This On The KSP Forum With Output.log Data");
else
{
GameEvents.OnExperimentDeployed.Fire(data);
scienceReports.Add(data);
Deployed = true;
ReviewData();
Expand Down
1 change: 1 addition & 0 deletions Source/Part Modules/DMModuleScienceAnimate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ protected void runExperiment(ExperimentSituations sit)
Debug.LogError("[DM] Something Went Wrong Here; Null Science Data Returned; Please Report This On The KSP Forum With Output.log Data");
else
{
GameEvents.OnExperimentDeployed.Fire(data);
if (experimentLimit <= 1)
{
dataIndex = 0;
Expand Down
8 changes: 4 additions & 4 deletions Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("5428988e-53a6-4d8e-8af4-014572513e22")]

[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyInformationalVersion("v1.0")]
[assembly: KSPAssembly("DMagic", 1, 0)]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyInformationalVersion("v1.0.1")]
[assembly: KSPAssembly("DMagic", 1, 01)]

0 comments on commit 572336c

Please sign in to comment.