示例#1
0
        private void RandomizeSwords()
        {
            var swords = new List <InventoryItemType>
            {
                InventoryItemType.L2Sword,
                InventoryItemType.L3Sword,
                InventoryItemType.L4Sword,
            };

            swords = random.RandomizeList(swords);

            romLocations.SpecialLocation("Sword - Pedestal").Item = new InventoryItem(swords[0] == InventoryItemType.L2Sword ? InventoryItemType.L2SwordPedestal : swords[0]);
            romLocations.SpecialLocation("Sword - Smithy").Item   = new InventoryItem(swords[1]);
            romLocations.SpecialLocation("Sword - Fairy").Item    = new InventoryItem(swords[2]);
        }