Beispiel #1
0
        public void MergeAttributes(AttributeSet target)
        {
            if (this.Skill.Attributes != null)
            {
                target.Merge(this.Skill.Attributes);
            }

            if (this.Rune != null && this.Rune.Attributes != null)
            {
                target.Merge(this.Rune.Attributes);
            }
        }
        public static AttributeSet GetSkillAttributes(ISimulationData data, string skillName, string runeName = null)
        {
            data.SelectSkill(skillName, runeName);
            if (data.SelectedSkill == null)
            {
                return null;
            }

            var set = new AttributeSet(data.Class, initializeWithClass: false)
                          {
                              DamageType = data.SelectedSkill.GetDamageType()
                          };

            data.SelectedSkill.MergeAttributes(set);

            return set;
        }