Esempio n. 1
0
 public List <PropertyModifier> GetFixedPropertyModifiers()
 {
     return(this.fixedItemModifiers
            .SelectMany(m => m.GetPropertyModifiers(BaseLevel, 0, CraftUtils.GetQualityMultiplier(this)))
            .Concat(BasePropertyModifiers)
            .ToList());
 }
Esempio n. 2
0
 public List <AttributeModifier> GetFixedAttributeModifiers()
 {
     return(this.fixedItemModifiers
            .SelectMany(m => m.GetAttributeModifiers(BaseLevel, CraftUtils.GetQualityMultiplier(this)))
            .Concat(BaseAttributeModifiers)
            .ToList());
 }
Esempio n. 3
0
        public List <AttributeModifier> GetAttributeModifiers(bool includeFixed = true)
        {
            var modifiers = new List <AttributeModifier>()
                            .Concat(Suffix?.GetAttributeModifiers(Level, CraftUtils.GetQualityMultiplier(this)) ?? new List <AttributeModifier>())
                            .Concat(this.itemModifiers.SelectMany(m => m.GetAttributeModifiers(Level, CraftUtils.GetQualityMultiplier(this))))
                            .ToList();

            if (includeFixed)
            {
                modifiers = modifiers.Concat(GetFixedAttributeModifiers()).ToList();
            }

            return(modifiers.ToList());
        }
Esempio n. 4
0
        public List <PropertyModifier> GetPropertyModifiers(bool includeFixed = true)
        {
            var modifiers = new List <PropertyModifier>()
                            .Concat(Suffix?.GetPropertyModifiers(BaseLevel, ForgeLevel, CraftUtils.GetQualityMultiplier(this)) ?? new List <PropertyModifier>())
                            .Concat(this.itemModifiers.SelectMany(m => m.GetPropertyModifiers(BaseLevel, ForgeLevel, CraftUtils.GetQualityMultiplier(this))))
                            .ToList();

            if (includeFixed)
            {
                modifiers = modifiers.Concat(GetFixedPropertyModifiers()).ToList();
            }

            return(modifiers);
        }