Skip to content

Commit

Permalink
recompile for ksp 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pellinor0 committed Dec 17, 2016
1 parent bbe6d02 commit 63c3f02
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Checker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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 == 2 && Versioning.Revision == 1;
return Versioning.version_major == 1 && Versioning.version_minor == 2 && Versioning.Revision == 2;

/*-----------------------------------------------*\
| IMPLEMENTERS SHOULD NOT EDIT BEYOND THIS POINT! |
Expand Down
6 changes: 3 additions & 3 deletions GameData/TweakScale/TweakScale.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"VERSION":{
"MAJOR":2,
"MINOR":3,
"PATCH":2,
"BUILD":1
"PATCH":3,
"BUILD":0
},
"KSP_VERSION":{
"MAJOR":1,
"MINOR":2,
"PATCH":1
"PATCH":2
}
}

Binary file modified GameData/TweakScale/plugins/Scale.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// 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( "2.3.2.1")]
[assembly: AssemblyFileVersion("2.3.2.1")]
[assembly: AssemblyVersion( "2.3.3.0")]
[assembly: AssemblyFileVersion("2.3.3.0")]
11 changes: 9 additions & 2 deletions Scale.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected virtual void Setup()
DryCost = (float)(part.partInfo.cost - _prefabPart.Resources.Cast<PartResource>().Aggregate(0.0, (a, b) => a + b.maxAmount * b.info.unitCost));
if (part.Modules.Contains("FSfuelSwitch"))
ignoreResourcesForCost = true;

if (DryCost < 0)
{
Debug.LogError("TweakScale: part=" + part.name + ", DryCost=" + DryCost.ToString());
Expand Down Expand Up @@ -873,7 +873,14 @@ void OnPartScaleChanged(BaseEventData data)
/*[KSPEvent(guiActive = true, guiActiveEditor = true, guiName = "Debug")]
public void debugOutput()
{
Debug.Log("ap: cost=" + part.partInfo.cost + ", dryCost=" + DryCost);
var ap = part.partInfo;
Debug.Log("prefabCost=" + ap.cost + ", dryCost=" + DryCost);
Debug.Log("ResourceCost=" + (part.Resources.Cast<PartResource>().Aggregate(0.0, (a, b) => a + b.maxAmount * b.info.unitCost) ));
foreach (var m in part.Modules)
{
if (m is IPartCostModifier)
Debug.Log(m.GetType().ToString() + ".cost=" + (m as IPartCostModifier).GetModuleCost(ap.cost, ModifierStagingSituation.CURRENT));
}
}*/

}
Expand Down

0 comments on commit 63c3f02

Please sign in to comment.