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>(); }
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}"); } }