Skip to content

Commit

Permalink
10/16 Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
BobPalmer committed Oct 16, 2016
1 parent 330f501 commit e7ec1b7
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 10 deletions.
4 changes: 4 additions & 0 deletions FOR_RELEASE/GameData/000_USITools/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.8.2 - 2016.10.16
------------------
Made the nuclear pulse engine atmospheric nerf optional

0.8.1 - 2016.10.15
------------------
Fixed an issue that was causing swappable converters to shut down
Expand Down
Binary file modified FOR_RELEASE/GameData/000_USITools/USITools.dll
Binary file not shown.
Binary file modified FOR_RELEASE/GameData/000_USITools/USITools.dll.mdb
Binary file not shown.
Binary file modified FOR_RELEASE/GameData/000_USITools/USITools.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion FOR_RELEASE/GameData/000_USITools/USITools.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"VERSION":{
"MAJOR":0,
"MINOR":8,
"PATCH":1,
"PATCH":2,
"BUILD":0
},
"KSP_VERSION":{
Expand Down
6 changes: 0 additions & 6 deletions FOR_RELEASE/GameData/CommunityCategoryKit/CCK.dll.config

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.5.3 - 2016.10.16
------------------
Fixed visual issue in VAB where crew was multiplying...

0.5.2 - 2016.10.15
------------------
Bundled correct CCK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"VERSION":{
"MAJOR":0,
"MINOR":5,
"PATCH":2,
"PATCH":3,
"BUILD":0
},
"KSP_VERSION":{
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Source/USILifeSupport/.vs/USILifeSupport/v14/.suo
Binary file not shown.
23 changes: 21 additions & 2 deletions Source/USILifeSupport/LifeSupportMonitor_Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,26 @@ private void OnWindow(int windowId)
GenerateWindow();
}

private void ResetValues()
{
curCrew = 0;
maxCrew = 0;
supplies = 0d;
extraHabTime = 0d;
habMult = 1d;
batteryAmount = 0d;
habs = new List<ModuleHabitation>();
hab_curCrew = "";
hab_maxCrew = "";
supply_curCrew = "";
supply_maxCrew = "";
totalHabSpace = 0d;
totalHabMult = 0d;
totalBatteryTime = 0d;
totalSupplyTime = 0d;
recyclers = new List<ModuleLifeSupportRecycler>();
}

private int curCrew = 0;
private int maxCrew = 0;
private double supplies = 0d;
Expand All @@ -97,7 +117,7 @@ private void OnWindow(int windowId)

private void UpdateGUIInfo(ShipConstruct ship)
{
habs = new List<ModuleHabitation>();
ResetValues();
if (EditorLogic.fetch != null)
{

Expand Down Expand Up @@ -166,7 +186,6 @@ private void UpdateGUIInfo(ShipConstruct ship)

if (EditorLogic.fetch.ship.parts.Count > 0)
{
recyclers = new List<ModuleLifeSupportRecycler>();
foreach (var p in EditorLogic.fetch.ship.parts)
{
var mod = p.FindModuleImplementing<ModuleLifeSupportRecycler>();
Expand Down

0 comments on commit e7ec1b7

Please sign in to comment.