Exemple #1
0
        public static float CalculateDamagePerShot(Turret t)
        {
            Projectile p             = LevelManager.LookupProjectile(t.Projectile);
            float      damagePerShot = 0.0F;

            for (int i = 0; i < p.Effects.Count; i++)
            {
                if (p.Effects[i].EffectType == ProjectileEffectType.Damage)
                {
                    damagePerShot += p.Effects[i].EffectImpact;
                }
            }
            return(damagePerShot);
        }