Demote loadout item projection bridge
This commit is contained in:
parent
b368f674f5
commit
9d8636f419
2 changed files with 12 additions and 5 deletions
|
|
@ -139,7 +139,7 @@ public class LoadoutGenerator
|
|||
manufacturer != Guid.Empty &&
|
||||
(Galaxy.IsPrelude || Galaxy.ContainsFaction(manufacturer) &&
|
||||
(Faction == null || Faction.Allegiance.ContainsKey(manufacturer))))
|
||||
.Select(HydrateLegacyItem<T>)
|
||||
.Select(ProjectRuntimeItem<T>)
|
||||
.Where(item => item != null)
|
||||
.Where(item =>
|
||||
item.Price > 0 &&
|
||||
|
|
@ -178,7 +178,7 @@ public class LoadoutGenerator
|
|||
return string.Equals(item.Category, requestedType.Name, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
private T HydrateLegacyItem<T>(AetheriaRuntimeCatalogItem item) where T : EquippableItemData
|
||||
private T ProjectRuntimeItem<T>(AetheriaRuntimeCatalogItem item) where T : EquippableItemData
|
||||
{
|
||||
return Guid.TryParse(item.LegacyId, out var legacyId)
|
||||
? ItemManager.GetCatalogEntry<T>(legacyId)
|
||||
|
|
|
|||
Loading…
Reference in a new issue