Esempio n. 1
0
        public override void PostProcessProjectile(Projectile projectile)
        {
            base.PostProcessProjectile(projectile);
            SlowdownProjectile slow = projectile.gameObject.AddComponent <SlowdownProjectile>();

            slow.m_speed = projectile.baseData.speed / 30;
            projectile.gameObject.AddComponent <ExplodeNearEnemiesProjectile>();
        }
Esempio n. 2
0
 public override void PostProcessProjectile(Projectile projectile)
 {
     try
     {
         base.PostProcessProjectile(projectile);
         SlowdownProjectile slow = projectile.gameObject.AddComponent <SlowdownProjectile>();
         slow.DieAfterStop         = true;
         slow.m_speed              = projectile.baseData.speed / 15;
         projectile.OnDestruction += this.GiantWithAnAppetite;
     }
     catch (Exception error)
     {
         ETGModConsole.Log($"{error}");
     }
 }