Skip to content

Commit

Permalink
Update DeadlyReentry.cs
Browse files Browse the repository at this point in the history
* Removed depletedConductivity and changed code to use prefab heatConductivity when ablator runs out.
  • Loading branch information
Starwaster committed Jan 27, 2019
1 parent bebb44f commit 1c1e0b9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/DeadlyReentry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,6 @@ class ModuleHeatShield : ModuleAblator
[KSPField()]
protected double depletedMaxTemp = 1200.0;

[KSPField]
protected double depletedConductivity = 250.0;

public new void Start()
{
if (!HighLogic.LoadedSceneIsFlight)
Expand Down Expand Up @@ -1029,7 +1026,7 @@ class ModuleHeatShield : ModuleAblator
if (_ablative.amount * _ablative.info.density <= 0.000001)
{
part.skinMaxTemp = Math.Min(part.skinMaxTemp, depletedMaxTemp);
part.heatConductivity = Math.Min(part.heatConductivity, depletedConductivity);
part.heatConductivity = part.partInfo.partPrefab.heatConductivity;
// TODO Think about removing the next two lines; skin-skin and skin-internal depend on heatConductivity so this could be overkill
//part.skinSkinConductionMult = Math.Min(part.skinSkinConductionMult, depletedConductivity);
//part.skinInternalConductionMult = Math.Min(part.skinInternalConductionMult, depletedConductivity);
Expand Down

0 comments on commit 1c1e0b9

Please sign in to comment.