Skip to content

Commit

Permalink
DR 7.7.3 update
Browse files Browse the repository at this point in the history
* Fixed versioning
* Forced ModuleAeroReentry to Awake when added at runtime.
* Added DR reentry heat override in DR menu (up to 200% by default. Can be patched to support any arbitrary integer. 1 = 100%, 2 = 200%, 3 = 300% etc etc)
  • Loading branch information
Starwaster committed Sep 11, 2019
1 parent bd58d64 commit 5c81a0f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DeadlyReentry/DeadlyReentry.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1116,4 +1116,4 @@ RESOURCE_DEFINITION:NEEDS[!RealFuels]
name = ModuleAeroReentry
leaveTemp = true
}
}
}
8 changes: 4 additions & 4 deletions DeadlyReentry/DeadlyReentry.version
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
{
"MAJOR" : 7,
"MINOR" : 7,
"PATCH" : 2,
"PATCH" : 3,
},

"KSP_VERSION":
{
"MAJOR": 1,
"MINOR": 7,
"MINOR": 6,
"PATCH": 0
},

"KSP_VERSION_MIN":
{
"MAJOR": 1,
"MINOR": 7,
"MINOR": 6,
"PATCH": 0
},

"KSP_VERSION_MAX":
{
"MAJOR": 1,
"MINOR": 7,
"MINOR": 6,
"PATCH": 99
}
}
2 changes: 1 addition & 1 deletion Source/Checkers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static bool IsCompatible()
// Even if you don't lock down functionality, you should return true if your users
// can expect a future update to be available.
//
return Versioning.version_major == 1 && Versioning.version_minor == 7 && Versioning.Revision >= 0;
return Versioning.version_major == 1 && Versioning.version_minor == 6 && Versioning.Revision >= 0;

/*-----------------------------------------------*\
| IMPLEMENTERS SHOULD NOT EDIT BEYOND THIS POINT! |
Expand Down
2 changes: 1 addition & 1 deletion Source/DRToolBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private void OnWindow(int windowID)

GUILayout.BeginHorizontal();
GUILayout.Height(0);
DeadlyReentryScenario.DREReentryHeatScale = GUILayout.HorizontalSlider(DeadlyReentryScenario.DREReentryHeatScale, 0, 10);
DeadlyReentryScenario.DREReentryHeatScale = GUILayout.HorizontalSlider(DeadlyReentryScenario.DREReentryHeatScale, 0, ReentryPhysics.maxHeatScale);
GUILayout.EndHorizontal();

GUILayout.Width(0);
Expand Down
5 changes: 4 additions & 1 deletion Source/DeadlyReentry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ public void Start()
if (add)
{
print("Adding ModuleAeroReentry to part " + part.name);
part.partPrefab.AddModule("ModuleAeroReentry");
part.partPrefab.AddModule("ModuleAeroReentry", true);
}
}
else
Expand Down Expand Up @@ -1191,6 +1191,7 @@ public static AerodynamicsFX afx {
public static float crewGWarn = 300000;
public static float crewGLimit = 600000;
public static float crewGKillChance = 0.75f;
public static int maxHeatScale = 2;


public static bool debugging = false;
Expand Down Expand Up @@ -1226,6 +1227,8 @@ public static void LoadSettings()
float.TryParse(node.GetValue("crewGLimit"), out crewGLimit);
if (node.HasValue("crewGKillChance"))
float.TryParse(node.GetValue("crewGKillChance"), out crewGKillChance);
if (node.HasValue("maxHeatScale"))
int.TryParse(node.GetValue("maxHeatScale"), out maxHeatScale);

break;
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.7.1")]
[assembly: AssemblyVersion("7.7.3")]
//[assembly: AssemblyFileVersion("7.0.*.*")]
[assembly: KSPAssembly("DeadlyReentry", 7, 7, 1)]
[assembly: KSPAssembly("DeadlyReentry", 7, 7, 3)]
//[assembly: KSPAssemblyDependency("ModularFlightIntegrator", 1, 0)]

0 comments on commit 5c81a0f

Please sign in to comment.