Ejemplo n.º 1
0
        public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
        {
            Vector2 direction = Vector2.Zero;
            Dust    dust;

            if (player.ownedProjectileCounts[mod.ProjectileType("StarfireLampYellow")] < 2)
            {
                int p = Projectile.NewProjectile(player.Center.X - Main.rand.Next(-50, 50), player.Center.Y - Main.rand.Next(40, 80), 0f, 0f, mod.ProjectileType("StarfireLampYellow"), damage, knockBack, player.whoAmI);
                Main.projectile[p].ai[0] = player.whoAmI;
            }
            if (player.ownedProjectileCounts[mod.ProjectileType("StarfireLampPurple")] < 2)
            {
                int p = Projectile.NewProjectile(player.Center.X - Main.rand.Next(-50, 50), player.Center.Y - Main.rand.Next(40, 80), 0f, 0f, mod.ProjectileType("StarfireLampPurple"), damage, knockBack, player.whoAmI);
                Main.projectile[p].ai[0] = player.whoAmI;
            }
            DustHelper.DrawStar2(player.Center - new Vector2(0, 60), 66, 5, 2f, 2f, 1f, 1, 0.5f, true, 0, -1, SpiritMod.StarjinxColor(Main.GlobalTime * 3));
            return(false);
        }