Exemplo n.º 1
0
 protected virtual void ApplyBullet(BaseBoss enemy)
 {
     enemy.BossHit(damage, damage * 0.1f, direction);
     SoundManager.EmitterPosition = enemy.Position;
     SoundManager.PlaySFX("bullet_collision");
     DestroyBulletCollision(enemy);
 }
Exemplo n.º 2
0
        protected override void DoEffect(BaseBoss enemy)
        {
            base.DoEffect(enemy);

            float percent = OGE.GetDistance(enemy.Position, Position) / maxRadius;
            enemy.SlowFactor -= percent * freezePercentage;
        }
Exemplo n.º 3
0
        protected override void DoEffect(BaseBoss enemy)
        {
            base.DoEffect(enemy);

            float damagePercent = OGE.GetDistance(enemy.Position, Position) / 150;

            enemy.BossHit(damagePercent * damage, 0, 0, true);
        }
Exemplo n.º 4
0
        protected override void DoEffect(BaseBoss enemy)
        {
            base.DoEffect(enemy);

            float percent = (maxRadius - currentRadius) / maxRadius;
            enemy.BossHit(0, powerOfWave * percent, OGE.GetAngle(Position, enemy.Position));
        }
Exemplo n.º 5
0
 protected override void ApplyBullet(BaseBoss enemy)
 {
     float percentage = distance / maxDistance;
     enemy.SlowFactor -= percentage * damage;
 }
Exemplo n.º 6
0
 protected virtual void DoEffect(BaseBoss boss)
 {
 }