Esempio n. 1
0
        public void LoadCurrentGearEnchantsBuffs(CharacterCalculationsBase currentCalculations)
        {
            List <ComparisonCalculationBase> itemCalculations = new List <ComparisonCalculationBase>();

            if (Character != null)
            {
                foreach (CharacterSlot slot in Enum.GetValues(typeof(CharacterSlot)))
                {
                    if (Character[slot] != null)
                    {
                        itemCalculations.Add(Calculations.GetItemCalculations(Character[slot], Character, slot));
                    }
                }

                foreach (ComparisonCalculationBase calc in Calculations.GetEnchantCalculations(ItemSlot.None, Character, currentCalculations, true))
                {
                    itemCalculations.Add(calc);
                }

                foreach (ComparisonCalculationBase calc in Calculations.GetBuffCalculations(Character, currentCalculations, "Current"))
                {
                    itemCalculations.Add(calc);
                }
            }

            comparisonGraph1.RoundValues      = true;
            comparisonGraph1.CustomRendered   = false;
            comparisonGraph1.ItemCalculations = itemCalculations.ToArray();
            comparisonGraph1.EquipSlot        = CharacterSlot.None;
            _characterSlot = CharacterSlot.None;
        }
Esempio n. 2
0
 public void LoadBuffs(CharacterCalculationsBase currentCalculations, Buff.BuffType buffType, bool activeOnly)
 {
     if (Items != null && Character != null)
     {
         comparisonGraph1.RoundValues      = true;
         comparisonGraph1.CustomRendered   = false;
         comparisonGraph1.ItemCalculations = Calculations.GetBuffCalculations(Character, currentCalculations, buffType, activeOnly).ToArray();
         comparisonGraph1.EquipSlot        = Character.CharacterSlot.None;
     }
 }
Esempio n. 3
0
 public void LoadBuffs(CharacterCalculationsBase currentCalculations, string filter)
 {
     if (Character != null)
     {
         comparisonGraph1.RoundValues      = true;
         comparisonGraph1.CustomRendered   = false;
         comparisonGraph1.ItemCalculations = Calculations.GetBuffCalculations(Character, currentCalculations, filter).ToArray();
         comparisonGraph1.EquipSlot        = CharacterSlot.None;
         _characterSlot = CharacterSlot.None;
     }
 }