Skip to content

Commit

Permalink
Change ignition dynamic pressure modifiers to no longer account for s…
Browse files Browse the repository at this point in the history
…hielded state
  • Loading branch information
siimav committed Jan 6, 2024
1 parent b71745f commit 3a03e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TestFlightFailure_IgnitionFail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 3a03e74

Please sign in to comment.