Misc Fixes
This commit is contained in:
@@ -499,7 +499,7 @@ namespace Game.DataStorage
|
||||
|
||||
public string GetBroadcastTextValue(BroadcastTextRecord broadcastText, LocaleConstant locale = LocaleConstant.enUS, Gender gender = Gender.Male, bool forceGender = false)
|
||||
{
|
||||
if (gender == Gender.Female && (forceGender || broadcastText.FemaleText.HasString(SharedConst.DefaultLocale)))
|
||||
if ((gender == Gender.Female || gender == Gender.None) && (forceGender || broadcastText.FemaleText.HasString(SharedConst.DefaultLocale)))
|
||||
{
|
||||
if (broadcastText.FemaleText.HasString(locale))
|
||||
return broadcastText.FemaleText[locale];
|
||||
|
||||
@@ -98,5 +98,6 @@ namespace Game.DataStorage
|
||||
return EnemyMask == 0 && FriendMask == 0;
|
||||
}
|
||||
public bool IsContestedGuardFaction() { return Flags.HasAnyFlag((ushort)FactionTemplateFlags.ContestedGuard); }
|
||||
public bool ShouldSparAttack() { return Flags.HasAnyFlag((ushort)FactionTemplateFlags.EnemySpar); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user