From 3a03e74688e59419d74b4b514bb905778033d6ed Mon Sep 17 00:00:00 2001 From: siimav Date: Sat, 6 Jan 2024 17:01:30 +0200 Subject: [PATCH] Change ignition dynamic pressure modifiers to no longer account for shielded state --- TestFlightFailure_IgnitionFail.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TestFlightFailure_IgnitionFail.cs b/TestFlightFailure_IgnitionFail.cs index d134ede..01e8a1f 100644 --- a/TestFlightFailure_IgnitionFail.cs +++ b/TestFlightFailure_IgnitionFail.cs @@ -297,7 +297,7 @@ public override void DoFailure() if (multiplier < 0.99) { string sPenaltyPercent = $"{(1f - multiplier) * 100f:0.#}%"; - FlightLogger.eventLog.Add($"[{met}] {core.Title} failed: Ignition Failure. {(float)(part.dynamicPressurekPa * 1000d)}Pa dynamic pressure caused a {sPenaltyPercent} reduction in normal ignition reliability."); + FlightLogger.eventLog.Add($"[{met}] {core.Title} failed: Ignition Failure. {(float)(vessel.dynamicPressurekPa * 1000d)}Pa dynamic pressure caused a {sPenaltyPercent} reduction in normal ignition reliability."); if (!dynPressureReminderShown && multiplier < 0.95) { @@ -566,7 +566,7 @@ private float GetDynPressureModifier() float pressureModifier = 1f; if (dynPressurePenalties) { - pressureModifier = Mathf.Clamp(pressureCurve.Evaluate((float)(part.dynamicPressurekPa * 1000d)), 0, 1); + pressureModifier = Mathf.Clamp(pressureCurve.Evaluate((float)(vessel.dynamicPressurekPa * 1000d)), 0, 1); if (pressureModifier <= 0f) pressureModifier = 1f; }