Example #1
0
        public DamageRealized WeaponHit()
        {
            DamageRealized result = new DamageRealized();

            foreach (var weaponDamage in WeaponDamages)
            {
                result.Damages.Add(weaponDamage);
            }
            result.ResolveDamage();
            return(result);
        }
Example #2
0
        public DamageRealized  WeaponHit(ref Ammunition ammo)
        {
            ammo.Quantity -= 1;
            DamageRealized result = new DamageRealized();

            foreach (var weaponDamage in WeaponDamages)
            {
                result.Damages.Add(weaponDamage);
            }
            foreach (var ammoDamage in ammo.Damages)
            {
                result.Damages.Add(ammoDamage);
            }
            result.ResolveDamage();
            return(result);
        }