fix burst skills and missing mission thingy

This commit is contained in:
Mikhail Tyukin
2025-12-08 18:16:26 -05:00
parent c96ad5fa94
commit a45dd2305e

View File

@@ -15,20 +15,28 @@ namespace EpinelPS.LobbyServer.LobbyUser
ResGetContentsOpenData response = new(); ResGetContentsOpenData response = new();
List<int> stages = [];
foreach (var item in GameData.Instance.ContentsOpenTable) foreach (var item in GameData.Instance.ContentsOpenTable)
{ {
foreach (var condition in item.Value.OpenCondition) foreach (var condition in item.Value.OpenCondition)
{ {
if (condition.OpenConditionType == ContentsOpenCondition.StageClear) if (condition.OpenConditionType == ContentsOpenCondition.StageClear && !stages.Contains(condition.OpenConditionValue) && user.IsStageCompleted(condition.OpenConditionValue))
{ {
if (user.IsStageCompleted(condition.OpenConditionValue)) stages.Add(condition.OpenConditionValue);
{
response.ClearStageList.Add(condition.OpenConditionValue);
}
} }
} }
} }
// these stages are not present in contentsopentable but are required to show mission UI and burst sidebar UI in battle view
List<int> specialStages = [6000001, 6000003];
foreach (var item in specialStages)
{
if (!stages.Contains(item) && user.IsStageCompleted(item)) stages.Add(item);
}
response.ClearStageList.AddRange(stages);
response.MaxGachaCount = user.GachaTutorialPlayCount; response.MaxGachaCount = user.GachaTutorialPlayCount;
response.MaxGachaPremiumCount = user.GachaTutorialPlayCount; response.MaxGachaPremiumCount = user.GachaTutorialPlayCount;
// todo tutorial playcount of gacha // todo tutorial playcount of gacha