Skip to content

Commit

Permalink
Make LCs still have maintenance cost while doing modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Sep 11, 2024
1 parent d63a891 commit 3aca97b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/RP0/Maintenance/MaintenanceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ public double LCUpkeep(LaunchComplex lc)
foreach (var lcc in lc.KSC.LCConstructions)
{
if (lcc.lcID == lc.ID)
return lcc.progress / lcc.BP * LCUpkeep(lcc.lcData, lc.LaunchPadCount);
{
double factor = lcc.isModify ? 1 : lcc.progress / lcc.BP;
return factor * LCUpkeep(lcc.lcData, lc.LaunchPadCount);
}
}
return 0d;
}
Expand Down

0 comments on commit 3aca97b

Please sign in to comment.