コード例 #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);