forked from liza/Questionable
Update sorting order for duties; exclude unsupported duties
This commit is contained in:
parent
8d3f37e6d4
commit
cd6ef3c5f1
@ -71,8 +71,7 @@
|
|||||||
{
|
{
|
||||||
"TerritoryId": 155,
|
"TerritoryId": 155,
|
||||||
"InteractionType": "Duty",
|
"InteractionType": "Duty",
|
||||||
"ContentFinderConditionId": 5,
|
"ContentFinderConditionId": 5
|
||||||
"AutoDutyEnabled": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -71,8 +71,7 @@
|
|||||||
{
|
{
|
||||||
"TerritoryId": 155,
|
"TerritoryId": 155,
|
||||||
"InteractionType": "Duty",
|
"InteractionType": "Duty",
|
||||||
"ContentFinderConditionId": 5,
|
"ContentFinderConditionId": 5
|
||||||
"AutoDutyEnabled": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -71,8 +71,7 @@
|
|||||||
{
|
{
|
||||||
"TerritoryId": 155,
|
"TerritoryId": 155,
|
||||||
"InteractionType": "Duty",
|
"InteractionType": "Duty",
|
||||||
"ContentFinderConditionId": 5,
|
"ContentFinderConditionId": 5
|
||||||
"AutoDutyEnabled": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -38,8 +38,7 @@
|
|||||||
{
|
{
|
||||||
"TerritoryId": 397,
|
"TerritoryId": 397,
|
||||||
"InteractionType": "Duty",
|
"InteractionType": "Duty",
|
||||||
"ContentFinderConditionId": 36,
|
"ContentFinderConditionId": 36
|
||||||
"AutoDutyEnabled": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user