Narrow legacy catalog to item hydration

This commit is contained in:
Meta Vens 2026-06-13 14:07:21 +01:00
commit 9655d5ad7b
7 changed files with 21 additions and 29 deletions

View file

@ -53,7 +53,7 @@ public class ItemManager
_logger = logger;
}
public T GetCatalogEntry<T>(Guid id) where T : DatabaseEntry
public T GetCatalogEntry<T>(Guid id) where T : ItemData
{
return _itemData.Get<T>(id);
}
@ -63,15 +63,6 @@ public class ItemManager
_logger(s);
}
// public int ItemTier(CraftedItemData itemData)
// {
// if (Tier.ContainsKey(itemData)) return Tier[itemData];
//
// Tier[itemData] = itemData.Ingredients.Keys.Max(ci => _cache.Get<ItemData>(ci) is CraftedItemData craftableIngredient ? ItemTier(craftableIngredient) : 0);
//
// return Tier[itemData];
// }
public SimpleCommodityData GetData(SimpleCommodity item)
{
return item.Data.Value as SimpleCommodityData;