diff options
| -rw-r--r-- | code/phase/AssignPhase.cs | 1 | ||||
| -rw-r--r-- | code/ui/character/LookingAtInfo.razor | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/code/phase/AssignPhase.cs b/code/phase/AssignPhase.cs index 04ebdb0..4738ce8 100644 --- a/code/phase/AssignPhase.cs +++ b/code/phase/AssignPhase.cs @@ -49,7 +49,6 @@ public class AssignPhase : BasePhase "#39CCCC", // teal
"#B10DC9", // purple
"#F012BE", // fuchsia
- "#85144B", // maroon
"#FF4136", // red
"#FF851B", // orange
"#FFDC00", // yellow
diff --git a/code/ui/character/LookingAtInfo.razor b/code/ui/character/LookingAtInfo.razor index 4a54b81..098feb4 100644 --- a/code/ui/character/LookingAtInfo.razor +++ b/code/ui/character/LookingAtInfo.razor @@ -41,13 +41,13 @@ lookingatinfo { public string GetLookingAtName()
{
if (Game.LocalPawn is not Player player) return "";
- return player.LookingAt is not { } lookingAt ? "" : lookingAt.CharacterName;
+ return player.LookingAt is not { } lookingAt ? "" : (lookingAt.CharacterName ?? lookingAt.Client.Name);
}
public string GetLookingAtColour()
{
if (Game.LocalPawn is not Player player) return "white";
- return player.LookingAt is not { } lookingAt ? "white" : lookingAt.HexColor;
+ return player.LookingAt is not { } lookingAt ? "white" : (string.IsNullOrWhiteSpace(lookingAt.HexColor) ? "white" : lookingAt.HexColor);
}
protected override int BuildHash()
|
