Beispiel #1
0
        /// <summary>
        /// Generates items in the given item collection based on loot table key.
        /// Any existing items will be destroyed.
        /// </summary>
        public static void GenerateDungeonItems(ItemCollection collection, int dungeonIndex)
        {
            DaggerfallUnityItem[] newitems = LootTables.GenerateDungeonLootItems(dungeonIndex);

            FormulaHelper.ModifyFoundLootItems(ref newitems);

            collection.Import(newitems);
        }