Skip to content

Commit

Permalink
Fix the Crew Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
severedsolo committed Jan 30, 2020
1 parent 2989008 commit 3d53a00
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 43 deletions.
108 changes: 73 additions & 35 deletions .idea/.idea.Bureaucracy/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Bureaucracy/Crew/AstronautComplexOverride.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private string GenerateAstronautString(string kerbalName)
if (c.CrewReference().inactive) return "In Training | " + "Wage: " + c.Wage;
float morale = (1-(float)c.UnhappinessEvents.Count / c.MaxStrikes)*100;
if (float.IsNaN(morale)) morale = 100;
if (float.IsNegativeInfinity(morale)) morale = 0;
return "Morale: " + Math.Round(morale, 0)+"% | Wage: "+c.Wage;
}
}
Expand Down
Loading

0 comments on commit 3d53a00

Please sign in to comment.