示例#1
0
        public SortedDictionary <string, int> GetTotalGemDistribution()
        {
            var gems  = Get <Gem>();
            var gears = items.OfType <Gear>()
                        .Where(x => x.SocketedItems.Count > 0);

            var socketedGems = gears.SelectMany(x => x.SocketedItems)
                               .OfType <Gem>().ToArray();

            gems.AddRange(socketedGems);

            return(GemHandler.GetGemDistribution(gems));
        }
示例#2
0
 public SortedDictionary <string, int> GetTotalGemDistribution()
 {
     return(GemHandler.GetGemDistribution(Get <Gem>()));
 }