apply nameplate colors to cross-world players without FC tags

This commit is contained in:
choco
2025-10-04 21:55:42 +02:00
parent 87e6c0b3f6
commit 0e274f04f1

View File

@@ -70,11 +70,17 @@ public class NameplateService : DisposableMediatorSubscriberBase
{ {
handler.NameParts.TextWrap = CreateTextWrap(colors); handler.NameParts.TextWrap = CreateTextWrap(colors);
if (_configService.Current.overrideFcTagColor && if (_configService.Current.overrideFcTagColor)
playerCharacter.CompanyTag.TextValue.Length > 0)
{ {
handler.FreeCompanyTagParts.OuterWrap = CreateTextWrap(colors); bool hasActualFcTag = playerCharacter.CompanyTag.TextValue.Length > 0;
handler.FreeCompanyTagParts.TextWrap = CreateTextWrap(colors); 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);
}
} }
} }
} }