From 1c1e0b94d0f8d458e610c348e78089e46d64d736 Mon Sep 17 00:00:00 2001 From: Starwaster Date: Sun, 27 Jan 2019 05:56:33 -0500 Subject: [PATCH] Update DeadlyReentry.cs * Removed depletedConductivity and changed code to use prefab heatConductivity when ablator runs out. --- Source/DeadlyReentry.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/DeadlyReentry.cs b/Source/DeadlyReentry.cs index 6a594d34..e7ef6f7c 100644 --- a/Source/DeadlyReentry.cs +++ b/Source/DeadlyReentry.cs @@ -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) @@ -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);