Esempio n. 1
0
 public static void HitDamageOverTime(Level level, Shot shot)
 {
     if (CollisionTarget(level, shot) != null)
     {
         Ship ship = CollisionTarget(level, shot);
         ship.TakeDamage(shot.Damage, shot.ShieldPiercing, DamageType.laser, false);
         ship.SetDamageOverTime(shot.Damage / 12, 6, shot.ShieldPiercing);
         shot.Dead = true;
     }
 }
Esempio n. 2
0
 public static void HitDamageOverTime(Ship ship, Level level, Shot shot)
 {
     ship.TakeDamage(shot.Damage, shot.ShieldPiercing, DamageType.laser);
     ship.SetDamageOverTime(shot.Damage / 6, 6, shot.ShieldPiercing);
 }
Esempio n. 3
0
 public static void ShieldDamageOverTime(float damage, float goThroughShield, DamageType damageType, Ship ship, Shield shield)
 {
     ship.SetDamageOverTime(damage / 5, 5, goThroughShield);
 }