mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 23:14:34 +01:00
correctly count field object count
This commit is contained in:
@@ -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()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user