Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Fix SRB max thrust limit
Browse files Browse the repository at this point in the history
The max limit should scale with the diameter and go past 720 kN.
  • Loading branch information
Tidal-Stream committed Mar 7, 2018
1 parent d990b22 commit 7605681
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions GameData/ProceduralParts/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
============= Changelog for ProceduralParts =========

=== 1.2.15 ===
Fix SRB max thrust limit.
The max limit should scale with the diameter and go past 720 kN.

=== 1.2.14 ===
Change the included assemblies during compilation to KSP 1.3.1

Expand Down
2 changes: 1 addition & 1 deletion GameData/ProceduralParts/ProceduralParts.version
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"MAJOR" : 1,
"MINOR" : 2,
"PATCH" : 14,
"PATCH" : 15,
"BUILD" : 0
},
"DOWNLOAD" : "https://github.com/TidalStream/ProceduralParts/releases",
Expand Down
11 changes: 10 additions & 1 deletion Source/ProceduralSRB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ public void OnPartResourceInitialAmountChanged(BaseEventDetails data)

//[PartMessageListener(typeof(PartAttachNodeSizeChanged), scenes: GameSceneFilter.AnyEditor)]
//public void ChangeAttachNodeSize(AttachNode node, float minDia, float area)
public void ChangeAttachNodeSize(AttachNode node, float minDia, float area)
{
var data = new BaseEventDetails (BaseEventDetails.Sender.USER);
data.Set<AttachNode> ("node", node);
data.Set<float> ("minDia", minDia);
data.Set<float> ("area", area);
part.SendEvent ("OnPartAttachNodeSizeChanged", data, 0);
}

[KSPEvent(guiActive = false, active = true)]
public void OnPartAttachNodeSizeChanged(BaseEventDetails data)
{
Expand Down Expand Up @@ -575,7 +584,7 @@ private bool UsingME
public float thrust1m = 1;

private float maxThrust = float.PositiveInfinity;
private float attachedEndSize = 1.25f;
private float attachedEndSize = float.PositiveInfinity;

// Real fuels integration
//[PartMessageListener(typeof(PartEngineConfigChanged))]
Expand Down
2 changes: 1 addition & 1 deletion Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.2.14.0")]
[assembly: AssemblyVersion("1.2.15.0")]

0 comments on commit 7605681

Please sign in to comment.