protected virtual void ApplyBullet(BaseEnemy enemy) { enemy.EnemyHit(damage, damage * 0.1f, direction); SoundManager.EmitterPosition = enemy.Position; SoundManager.PlaySFX("bullet_collision"); DestroyBulletCollision(enemy); }
protected override void DoEffect(BaseEnemy enemy) { base.DoEffect(enemy); float percent = OGE.GetDistance(enemy.Position, Position) / maxRadius; enemy.SlowFactor -= percent * freezePercentage; }
protected override void DoEffect(BaseEnemy enemy) { base.DoEffect(enemy); float damagePercent = OGE.GetDistance(enemy.Position, Position) / 150; enemy.EnemyHit(damagePercent * damage, 0, 0, true); }
protected override void ApplyBullet(BaseEnemy enemy) { }
protected override void DoEffect(BaseEnemy enemy) { base.DoEffect(enemy); float percent = (maxRadius - currentRadius) / maxRadius; enemy.EnemyHit(0, powerOfWave * percent, OGE.GetAngle(Position, enemy.Position)); }
protected override void ApplyBullet(BaseEnemy enemy) { DestroyBulletCollision(enemy); }
protected override void ApplyBullet(BaseEnemy enemy) { float percentage = distance/maxDistance; enemy.EnemyHit(percentage * damage, 0, direction); }
protected override void EnemyCollide(BaseEnemy e) { if (status == FileStatus.Infected) { return; } if (e is VirusEnemy || e is TroyEnemy) { GetInfected(e.GetType()); } }
protected override void ApplyBullet(BaseEnemy enemy) { float percentage = distance / maxDistance; enemy.SlowFactor -= percentage * damage; }
protected virtual void DoEffect(BaseEnemy enemy) { }