Exemple #1
0
 public Weapon(WeaponTemplate template, string name, IEnumerable <Affix> affixes, WeaponEnhancement enhancer)
     : base(template, name, affixes)
 {
     minDamage      = enhancer.EnhanceMinDamage(template.MinDamage);
     maxDamage      = enhancer.EnhanceMaxDamage(template.MaxDamage);
     critMultiplier = enhancer.EnhanceCrit(template.CritMultiplier);
 }
 protected override bool IsApplicableToItem(AttributeAffix affix)
 {
     return(WeaponEnhancement.IsWeaponAttribute(affix.Attribute));
 }