Demote loadout item projection bridge

This commit is contained in:
Meta Vens 2026-06-13 19:41:09 +01:00
commit 9d8636f419
2 changed files with 12 additions and 5 deletions

View file

@ -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)