Skip to content

Commit 867751f

Browse files
committed
Reward less du for ignition failures that happen due to dyn pressure penalties
1 parent f94dd55 commit 867751f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFlightFailure_IgnitionFail.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,13 @@ public override void DoFailure()
303303
ITestFlightCore core = TestFlightUtil.GetCore(this.part, Configuration);
304304
if (core != null)
305305
{
306+
float multiplier = GetDynPressureModifier();
306307
if (awardDuInPreLaunch || vessel.situation != Vessel.Situations.PRELAUNCH)
307308
{
308-
core.ModifyFlightData(duFail, true);
309+
core.ModifyFlightData(duFail * multiplier, true);
309310
}
310311

311312
string met = KSPUtil.PrintTimeCompact((int)Math.Floor(this.vessel.missionTime), false);
312-
float multiplier = GetDynPressureModifier();
313313

314314
if (multiplier < 0.99)
315315
{

0 commit comments

Comments
 (0)