Exemple #1
0
        public override void Kill(int timeLeft)
        {
            FargoSoulsUtil.HeartDust(Projectile.Center, Projectile.rotation + MathHelper.PiOver2);

            /*for (int i = 0; i < 10; i++)
             * {
             *  int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 86, 0f, 0f, 0, default(Color), 2f);
             *  Main.dust[d].noGravity = true;
             *  Main.dust[d].velocity *= 8f;
             * }*/

            if (Projectile.owner == Main.myPlayer)
            {
                FargoSoulsUtil.NewSummonProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.UnitX.RotatedBy(Projectile.rotation),
                                                   ModContent.ProjectileType <SparklingLoveDeathray2>(), Projectile.originalDamage, Projectile.knockBack, Projectile.owner);
                FargoSoulsUtil.NewSummonProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.UnitX.RotatedBy(Projectile.rotation + (float)Math.PI),
                                                   ModContent.ProjectileType <SparklingLoveDeathray2>(), Projectile.originalDamage, Projectile.knockBack, Projectile.owner);

                FargoSoulsUtil.NewSummonProjectile(Projectile.GetSource_FromThis(), new Vector2(Projectile.localAI[0], Projectile.localAI[1]), Vector2.UnitX.RotatedBy(Projectile.rotation - (float)Math.PI / 2),
                                                   ModContent.ProjectileType <SparklingLoveDeathray2>(), Projectile.originalDamage, Projectile.knockBack, Projectile.owner);
            }
        }
        public override void Kill(int timeLeft)
        {
            FargoSoulsUtil.HeartDust(projectile.Center, projectile.rotation + MathHelper.PiOver2);

            /*for (int i = 0; i < 10; i++)
             * {
             *  int d = Dust.NewDust(projectile.position, projectile.width, projectile.height, 86, 0f, 0f, 0, default(Color), 2f);
             *  Main.dust[d].noGravity = true;
             *  Main.dust[d].velocity *= 8f;
             * }*/

            if (FargoSoulsUtil.BossIsAlive(ref EModeGlobalNPC.deviBoss, mod.NPCType("DeviBoss")))
            {
                if (Main.netMode != NetmodeID.MultiplayerClient)
                {
                    for (int i = 0; i < 4; i++)
                    {
                        Projectile.NewProjectile(projectile.Center, Vector2.UnitX.RotatedBy(projectile.rotation + (float)Math.PI / 2 * i),
                                                 mod.ProjectileType("DeviDeathray"), projectile.damage, projectile.knockBack, projectile.owner);
                    }
                }
            }
        }
        private void HeartBurst(Vector2 spawnPos)
        {
            if (projectile.owner != Main.myPlayer)
            {
                return;
            }

            Main.PlaySound(SoundID.Item21, spawnPos);
            for (int i = 0; i < 8; i++)
            {
                Vector2 vel = 14f * Vector2.Normalize(projectile.velocity).RotatedBy(Math.PI / 4 * (i + 0.5));
                Projectile.NewProjectile(spawnPos, vel, ModContent.ProjectileType <SparklingLoveHeart>(), projectile.damage, projectile.knockBack, projectile.owner, -1, 45);
                FargoSoulsUtil.HeartDust(spawnPos, vel.ToRotation(), vel);
            }

            /*for (int index1 = 0; index1 < 20; ++index1)
             * {
             *  int index2 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 272, 0f, 0f, 100, new Color(), 2f);
             *  Main.dust[index2].noGravity = true;
             *  Main.dust[index2].velocity *= 7f * projectile.scale;
             *  Main.dust[index2].noLight = true;
             *  int index3 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 272, 0f, 0f, 100, new Color(), 1f);
             *  Main.dust[index3].velocity *= 4f * projectile.scale;
             *  Main.dust[index3].noGravity = true;
             *  Main.dust[index3].noLight = true;
             * }
             *
             * for (int i = 0; i < 60; i++) //warning dust ring
             * {
             *  Vector2 vector6 = Vector2.UnitY * 5f * projectile.scale;
             *  vector6 = vector6.RotatedBy((i - (60 / 2 - 1)) * 6.28318548f / 60) + spawnPos;
             *  Vector2 vector7 = vector6 - spawnPos;
             *  int d = Dust.NewDust(vector6 + vector7, 0, 0, 86, 0f, 0f, 0, default(Color), 2.5f);
             *  Main.dust[d].noGravity = true;
             *  Main.dust[d].velocity = vector7;
             * }*/
        }
Exemple #4
0
 public override void Kill(int timeleft)
 {
     FargoSoulsUtil.HeartDust(Projectile.Center);
 }