From 0e274f04f183cbd0672472b12d870d87587b0c8a Mon Sep 17 00:00:00 2001 From: choco Date: Sat, 4 Oct 2025 21:55:42 +0200 Subject: [PATCH] apply nameplate colors to cross-world players without FC tags --- LightlessSync/Services/NameplateService.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/LightlessSync/Services/NameplateService.cs b/LightlessSync/Services/NameplateService.cs index a30c21d..f441a60 100644 --- a/LightlessSync/Services/NameplateService.cs +++ b/LightlessSync/Services/NameplateService.cs @@ -70,11 +70,17 @@ public class NameplateService : DisposableMediatorSubscriberBase { handler.NameParts.TextWrap = CreateTextWrap(colors); - if (_configService.Current.overrideFcTagColor && - playerCharacter.CompanyTag.TextValue.Length > 0) + if (_configService.Current.overrideFcTagColor) { - handler.FreeCompanyTagParts.OuterWrap = CreateTextWrap(colors); - handler.FreeCompanyTagParts.TextWrap = CreateTextWrap(colors); + bool hasActualFcTag = playerCharacter.CompanyTag.TextValue.Length > 0; + bool isFromDifferentRealm = playerCharacter.HomeWorld.RowId != playerCharacter.CurrentWorld.RowId; + bool shouldColorFcArea = hasActualFcTag || (!hasActualFcTag && isFromDifferentRealm); + + if (shouldColorFcArea) + { + handler.FreeCompanyTagParts.OuterWrap = CreateTextWrap(colors); + handler.FreeCompanyTagParts.TextWrap = CreateTextWrap(colors); + } } } }