Skip to content

Commit

Permalink
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified GameData/RP-0/Plugins/RP0.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions Source/Crew/CrewHandler.cs
Original file line number Diff line number Diff line change
@@ -656,6 +656,7 @@ protected void FixTooltip(KSP.UI.CrewListItem cli)
HashSet<string> expiredProfs = new HashSet<string>();
bool found = false;
string trainingStr = "\n\nTraining:";
int lastFlight = pcm.flightLog.Last() == null ? 0 : pcm.flightLog.Last().flight;
foreach (FlightLog.Entry ent in pcm.flightLog.Entries)
{
string pretty = GetPrettyCourseName(ent.type);
@@ -667,6 +668,9 @@ protected void FixTooltip(KSP.UI.CrewListItem cli)
expiredProfs.Add(ent.target);
else
{
if (ent.type == "TRAINING_mission" && ent.flight != lastFlight)
continue;

trainingStr += "\n " + pretty + ent.target;
double exp = GetExpiration(pcm.name, ent);
if (exp > 0d)

0 comments on commit fa55cbc

Please sign in to comment.