예제 #1
0
		public ItemInfo Get(EInventoryRelicType relicItem)
		{
			var item = GetOrAdd(relicItems, relicItem, () => CreateNew(new ItemIdentifier(relicItem)));

			return progressiveItems.TryGetValue(item, out var progressiveItem)
				? progressiveItem
				: item;
		}
예제 #2
0
 public ItemIdentifier(EInventoryRelicType relicType)
 {
     LootType = LootType.Relic;
     ItemId   = (int)relicType;
 }
예제 #3
0
 internal static bool HasRelic(this GameSave gameSave, EInventoryRelicType relic) =>
 gameSave.Inventory.RelicInventory.Inventory.ContainsKey((int)relic);
예제 #4
0
 internal static void AddRelic(this GameSave gameSave, EInventoryRelicType relic) =>
 gameSave.Inventory.RelicInventory.AddItem((int)relic);