Beispiel #1
0
        public BaseDamageMod(BaseDamage baseDamage, Creature wielder, WorldObject weapon)
        {
            BaseDamage = baseDamage;

            if (weapon == null)
            {
                return;
            }

            DamageBonus += weapon.EnchantmentManager.GetDamageBonus();
            VarianceMod *= weapon.EnchantmentManager.GetVarianceMod();

            DamageMod = (float)(weapon.GetProperty(PropertyFloat.DamageMod) ?? 1.0f) + weapon.EnchantmentManager.GetDamageMod();

            if (weapon.IsEnchantable)
            {
                // factor in wielder auras for enchantable weapons
                DamageBonus += wielder.EnchantmentManager.GetDamageBonus();
                VarianceMod *= wielder.EnchantmentManager.GetVarianceMod();

                DamageMod += wielder.EnchantmentManager.GetDamageMod();
            }
        }
Beispiel #2
0
 public BaseDamageMod(BaseDamage baseDamage)
 {
     BaseDamage = baseDamage;
 }