Skip to content

Commit

Permalink
Tweak unpressurized cockpit PM to say is fully pressurized if rated a…
Browse files Browse the repository at this point in the history
…lt > 140km. See #1909
  • Loading branch information
NathanKell committed May 27, 2023
1 parent 8536eff commit b9d1c9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/ModuleUnpressurizedCockpit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class ModuleUnpressurizedCockpit : PartModule

public override string GetInfo()
{
if (crewDeathAltitude > 140000d)
return "Cockpit is now fully pressurized.";

return $"Cockpit is unpressurized and will lead to crew death above {crewDeathAltitude / 1000:0.#}km";
}

Expand Down

0 comments on commit b9d1c9b

Please sign in to comment.