From 4f4546db9585dd2d234d44c1b6110e840c025534 Mon Sep 17 00:00:00 2001 From: Sebastien Lebreton Date: Thu, 25 Jul 2024 12:03:01 +0200 Subject: [PATCH] Fix bear/usec/boss color issues --- Extensions/PlayerExtensions.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Extensions/PlayerExtensions.cs b/Extensions/PlayerExtensions.cs index 9c368394..c9289eb9 100644 --- a/Extensions/PlayerExtensions.cs +++ b/Extensions/PlayerExtensions.cs @@ -1,4 +1,5 @@ -using System.Diagnostics.CodeAnalysis; +using System; +using System.Diagnostics.CodeAnalysis; using System.Linq; using EFT.InventoryLogic; @@ -51,7 +52,9 @@ public static HostileType GetHostileType(this Player player) var settings = info.Settings; if (settings != null) { - switch (settings.Role) + var role = settings.Role; + + switch (role) { case WildSpawnType.pmcBot: return HostileType.ScavRaider; @@ -65,6 +68,10 @@ public static HostileType GetHostileType(this Player player) return HostileType.Marksman; case WildSpawnType.exUsec: return HostileType.RogueUsec; + case WildSpawnType.pmcBEAR: + return HostileType.Bear; + case WildSpawnType.pmcUSEC: + return HostileType.Usec; } if (settings.IsBoss())