Skip to content

Commit

Permalink
Fix Accuracy/Health difficulty not being imported into the database p…
Browse files Browse the repository at this point in the history
…roperly
  • Loading branch information
flustix committed Sep 8, 2024
1 parent 0d1bc80 commit 587d1dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fluXis.Game/Import/FluXisImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ private RealmMapSet getRealmMaps(string path, Guid? id = null)
ColorHex = string.IsNullOrEmpty(mapInfo.Colors.AccentHex) ? "" : mapInfo.Colors.AccentHex,
},
Difficulty = mapInfo.Metadata.Difficulty ?? "",
AccuracyDifficulty = mapInfo.AccuracyDifficulty,
HealthDifficulty = mapInfo.HealthDifficulty,
MapSet = mapSet,
Hash = hash,
KeyCount = keys,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ private void recalculateFilters()
continue;

var data = map.GetMapInfo();

if (data is null)
continue;

existing.AccuracyDifficulty = map.AccuracyDifficulty = data.AccuracyDifficulty;
existing.HealthDifficulty = map.HealthDifficulty = data.HealthDifficulty;

var events = data.GetMapEvents();

var filters = MapUtils.GetMapFilters(data, events);
Expand Down

0 comments on commit 587d1dd

Please sign in to comment.