Skip to content

Commit

Permalink
Fix bear/usec/boss color issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sailro committed Jul 25, 2024
1 parent e95e594 commit 4f4546d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Extensions/PlayerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using EFT.InventoryLogic;

Expand Down Expand Up @@ -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;
Expand All @@ -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())
Expand Down

0 comments on commit 4f4546d

Please sign in to comment.