Skip to content

Commit

Permalink
Merge pull request #6 from laserdark/bugfix/cleared-7-2
Browse files Browse the repository at this point in the history
normalize the counting of map 7-2, which has ever cleared even
  • Loading branch information
veigr authored Jul 3, 2020
2 parents ef2783a + 9ed232d commit 6b40e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventMapHpViewer/Models/MapInfoProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private MapData[] CreateMapList(IEnumerable<member_mapinfo> 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,
Expand Down

0 comments on commit 6b40e17

Please sign in to comment.