Fix display of Docked status

This commit is contained in:
Andrew Cooper
2021-04-15 23:02:40 +10:00
parent 94c0d23983
commit 4a82dd2198

View File

@@ -71,11 +71,12 @@ namespace SuperStarTrek.Objects
}
private string GetCondition() =>
(_quadrant.HasKlingons, Energy / _maxEnergy) switch
IsDocked switch
{
(true, _) => "*Red*",
(_, < 0.1f) => "Yellow",
_ => "Green"
true => "Docked",
false when _quadrant.HasKlingons => "*Red*",
false when Energy / _maxEnergy < 0.1f => "Yellow",
false => "Green"
};
internal CommandResult Execute(Command command)