From 9ed232dd09b8fb1789229c57c9ac4e191a753095 Mon Sep 17 00:00:00 2001 From: lasedark Date: Tue, 26 May 2020 00:02:42 +0800 Subject: [PATCH] normalize the counting of map 7-2, which has ever cleared even --- EventMapHpViewer/Models/MapInfoProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventMapHpViewer/Models/MapInfoProxy.cs b/EventMapHpViewer/Models/MapInfoProxy.cs index 7d5af2c..28c6938 100644 --- a/EventMapHpViewer/Models/MapInfoProxy.cs +++ b/EventMapHpViewer/Models/MapInfoProxy.cs @@ -97,7 +97,7 @@ private MapData[] CreateMapList(IEnumerable maps) return maps .Select(x => new MapData { - IsCleared = x.api_cleared, + IsCleared = x.api_defeat_count.HasValue ? 0 : x.api_cleared, DefeatCount = x.api_defeat_count ?? 0, RequiredDefeatCount = x.api_required_defeat_count ?? 0, Id = x.api_id,