Update sorting order for duties; exclude unsupported duties

This commit is contained in:
Liza 2024-12-30 15:57:55 +01:00
parent 8d3f37e6d4
commit cd6ef3c5f1
Signed by: liza
GPG Key ID: 2C41B84815CF6445
5 changed files with 7 additions and 12 deletions

View File

@ -71,8 +71,7 @@
{ {
"TerritoryId": 155, "TerritoryId": 155,
"InteractionType": "Duty", "InteractionType": "Duty",
"ContentFinderConditionId": 5, "ContentFinderConditionId": 5
"AutoDutyEnabled": true
} }
] ]
}, },

View File

@ -71,8 +71,7 @@
{ {
"TerritoryId": 155, "TerritoryId": 155,
"InteractionType": "Duty", "InteractionType": "Duty",
"ContentFinderConditionId": 5, "ContentFinderConditionId": 5
"AutoDutyEnabled": true
} }
] ]
}, },

View File

@ -71,8 +71,7 @@
{ {
"TerritoryId": 155, "TerritoryId": 155,
"InteractionType": "Duty", "InteractionType": "Duty",
"ContentFinderConditionId": 5, "ContentFinderConditionId": 5
"AutoDutyEnabled": true
} }
] ]
}, },

View File

@ -38,8 +38,7 @@
{ {
"TerritoryId": 397, "TerritoryId": 397,
"InteractionType": "Duty", "InteractionType": "Duty",
"ContentFinderConditionId": 36, "ContentFinderConditionId": 36
"AutoDutyEnabled": true
} }
] ]
}, },

View File

@ -90,7 +90,8 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
_mountNames = DefaultMounts.Select(x => x.Name).Concat(mounts.Select(x => x.Name)).ToArray(); _mountNames = DefaultMounts.Select(x => x.Name).Concat(mounts.Select(x => x.Name)).ToArray();
_contentFinderConditionNames = dataManager.GetExcelSheet<DawnContent>() _contentFinderConditionNames = dataManager.GetExcelSheet<DawnContent>()
.Where(x => x.RowId > 0) .Where(x => x is { RowId: > 0, Unknown16: false })
.OrderBy(x => x.Unknown15) // SortKey for the support UI
.Select(x => x.Content.ValueNullable) .Select(x => x.Content.ValueNullable)
.Where(x => x != null) .Where(x => x != null)
.Select(x => x!.Value) .Select(x => x!.Value)
@ -106,9 +107,7 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
}) })
.GroupBy(x => x.Expansion) .GroupBy(x => x.Expansion)
.ToDictionary(x => x.Key, .ToDictionary(x => x.Key,
x => x.OrderBy(y => y.Level) x => x
.ThenBy(y => y.ContentType)
.ThenBy(y => y.SortKey)
.Select(y => new DutyInfo(y.CfcId, y.TerritoryId, $"{SeIconChar.LevelEn.ToIconChar()}{FormatLevel(y.Level)} {y.Name}")) .Select(y => new DutyInfo(y.CfcId, y.TerritoryId, $"{SeIconChar.LevelEn.ToIconChar()}{FormatLevel(y.Level)} {y.Name}"))
.ToList()); .ToList());
} }