Esempio n. 1
0
 public PoEBuild(string name, string poeClass, string pointsUsed, string url, string note)
 {
     Name         = name;
     Class        = poeClass;
     PointsUsed   = pointsUsed;
     Url          = url;
     Note         = note;
     CustomGroups = new List <string[]>();
     Bandits      = new BanditSettings();
 }
Esempio n. 2
0
        public static Dictionary<string, List<float>> GetAttributesWithoutImplicit(IEnumerable<SkillNode> skilledNodes, int chartype, BanditSettings banditSettings)
        {
            var temp = new Dictionary<string, List<float>>();
            
            foreach (var attr in CharBaseAttributes[chartype].Union(BaseAttributes).Union(banditSettings.Rewards))
            {
                if (!temp.ContainsKey(attr.Key))
                    temp[attr.Key] = new List<float> { attr.Value };
                else if (temp[attr.Key].Any())
                    temp[attr.Key][0] += attr.Value;
            }
            
            foreach (var node in skilledNodes)
            {
                foreach (var attr in ExpandHybridAttributes(node.Attributes))
                {
                    if (!temp.ContainsKey(attr.Key))
                        temp[attr.Key] = new List<float>();
                    for (int i = 0; i < attr.Value.Count; i++)
                    {
                        if (temp.ContainsKey(attr.Key) && temp[attr.Key].Count > i)
                            temp[attr.Key][i] += attr.Value[i];
                        else
                        {
                            temp[attr.Key].Add(attr.Value[i]);
                        }
                    }
                }
            }

            return temp;
        }
Esempio n. 3
0
        public static Dictionary<string, List<float>> GetAttributes(IEnumerable<SkillNode> skilledNodes, int chartype, int level, BanditSettings banditSettings)
        {
            var temp = GetAttributesWithoutImplicit(skilledNodes, chartype, banditSettings);

            foreach (var a in ImplicitAttributes(temp, level))
            {
                var key = RenameImplicitAttributes.ContainsKey(a.Key) ? RenameImplicitAttributes[a.Key] : a.Key;

                if (!temp.ContainsKey(key))
                    temp[key] = new List<float>();
                for (var i = 0; i < a.Value.Count; i++)
                {
                    if (temp.ContainsKey(key) && temp[key].Count > i)
                        temp[key][i] += a.Value[i];
                    else
                    {
                        temp[key].Add(a.Value[i]);
                    }
                }
            }
            return temp;
        }
Esempio n. 4
0
 public PoEBuild()
 {
     Visible      = true;
     CustomGroups = new List <string[]>();
     Bandits      = new BanditSettings();
 }