public ItemInfo Get(EInventoryRelicType relicItem) { var item = GetOrAdd(relicItems, relicItem, () => CreateNew(new ItemIdentifier(relicItem))); return progressiveItems.TryGetValue(item, out var progressiveItem) ? progressiveItem : item; }
public ItemIdentifier(EInventoryRelicType relicType) { LootType = LootType.Relic; ItemId = (int)relicType; }
internal static bool HasRelic(this GameSave gameSave, EInventoryRelicType relic) => gameSave.Inventory.RelicInventory.Inventory.ContainsKey((int)relic);
internal static void AddRelic(this GameSave gameSave, EInventoryRelicType relic) => gameSave.Inventory.RelicInventory.AddItem((int)relic);