mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 15:04:36 +01:00
Compare commits
2 Commits
91cbedf46c
...
a45dd2305e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a45dd2305e | ||
|
|
c96ad5fa94 |
@@ -20,7 +20,7 @@ namespace EpinelPS.LobbyServer.Campaign
|
|||||||
response.FieldObjectItemsNum.Add(new NetCampaignFieldObjectItemsNum()
|
response.FieldObjectItemsNum.Add(new NetCampaignFieldObjectItemsNum()
|
||||||
{
|
{
|
||||||
MapId = map.Key,
|
MapId = map.Key,
|
||||||
Count = map.Value.CompletedObjects.Count
|
Count = map.Value.CompletedObjects.Where(x => x.Type == 1).Count()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user