Fix squadron unlock condition

This commit is contained in:
Liza 2023-10-17 09:49:29 +02:00
parent 80764855d2
commit d8cce75e66
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -167,13 +167,7 @@ internal sealed class LocalStatsCalculator : IDisposable
ContentId = localContentId, ContentId = localContentId,
GrandCompany = playerState->GrandCompany, GrandCompany = playerState->GrandCompany,
GcRank = playerState->GetGrandCompanyRank(), GcRank = playerState->GetGrandCompanyRank(),
SquadronUnlocked = (GrandCompany)playerState->GrandCompany switch SquadronUnlocked = playerState->GetGrandCompanyRank() >= 9 && (QuestManager.IsQuestComplete(67925) || QuestManager.IsQuestComplete(67926) || QuestManager.IsQuestComplete(67927)),
{
GrandCompany.Maelstrom => QuestManager.IsQuestComplete(67926),
GrandCompany.TwinAdder => QuestManager.IsQuestComplete(67925),
GrandCompany.ImmortalFlames => QuestManager.IsQuestComplete(67927),
_ => false
},
MaxLevel = playerState->MaxLevel, MaxLevel = playerState->MaxLevel,
ClassJobLevels = ExtractClassJobLevels(playerState), ClassJobLevels = ExtractClassJobLevels(playerState),
StartingTown = playerState->StartTown, StartingTown = playerState->StartTown,