2 Commits

Author SHA1 Message Date
Mikhail Tyukin
a45dd2305e fix burst skills and missing mission thingy 2025-12-08 18:16:26 -05:00
Mikhail Tyukin
c96ad5fa94 correctly count field object count 2025-12-08 15:17:18 -05:00
2 changed files with 15 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ namespace EpinelPS.LobbyServer.Campaign
response.FieldObjectItemsNum.Add(new NetCampaignFieldObjectItemsNum()
{
MapId = map.Key,
Count = map.Value.CompletedObjects.Count
Count = map.Value.CompletedObjects.Where(x => x.Type == 1).Count()
});
}

View File

@@ -15,20 +15,28 @@ namespace EpinelPS.LobbyServer.LobbyUser
ResGetContentsOpenData response = new();
List<int> stages = [];
foreach (var item in GameData.Instance.ContentsOpenTable)
{
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))
{
response.ClearStageList.Add(condition.OpenConditionValue);
stages.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.MaxGachaPremiumCount = user.GachaTutorialPlayCount;
// todo tutorial playcount of gacha