public override void UpdateAccessory(Player player, bool hideVisual)
 {
     HeliosphereEmblem.SetBonus(player, 4);
     player.maxMinions += 1;
     if (hideVisual) return;
     HeliosphereEmblem.DustVisuals(player, 135, 2f);
 }
Exemple #2
0
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     HeliosphereEmblem.SetBonus(player, 1);
     player.ammoCost80 = true;
     if (hideVisual)
     {
         return;
     }
     HeliosphereEmblem.DustVisuals(player, DustID.Vortex);
     player.GetModPlayer <PlayerFX>(mod).lunarRangeVisual = true;
 }
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     HeliosphereEmblem.SetBonus(player, 2);
     player.thrownVelocity += 0.3f;
     if (hideVisual)
     {
         return;
     }
     HeliosphereEmblem.DustVisuals(player, 75, 1.5f);
     player.GetModPlayer <PlayerFX>(mod).lunarThrowVisual = true;
 }
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     HeliosphereEmblem.SetBonus(player, 0);
     player.meleeSpeed += 0.12f;
     player.magmaStone  = true;
     if (hideVisual)
     {
         return;
     }
     HeliosphereEmblem.DustVisuals(player, DustID.Fire, 1.5f);
 }
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     HeliosphereEmblem.SetBonus(player, 3);
     player.statManaMax2 += 20;
     if (hideVisual)
     {
         return;
     }
     HeliosphereEmblem.DustVisuals(player, DustID.PinkFlame, 2f);
     player.GetModPlayer <PlayerFX>(mod).lunarMagicVisual = true;
 }
Exemple #6
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            HeliosphereEmblem.SetBonus(player, -1);
            player.meleeSpeed     += 0.12f;
            player.magmaStone      = true;
            player.ammoCost80      = true;
            player.statManaMax2   += 20;
            player.thrownVelocity += 0.3f;
            player.maxMinions     += 1;
            if (hideVisual)
            {
                return;
            }
            player.GetModPlayer <PlayerFX>(mod).lunarRangeVisual = true;
            player.GetModPlayer <PlayerFX>(mod).lunarMagicVisual = true;
            player.GetModPlayer <PlayerFX>(mod).lunarThrowVisual = true;

            Vector2 hand = Main.OffsetsPlayerOnhand[player.bodyFrame.Y / 56] * 2f;

            if (player.direction != 1)
            {
                hand.X = (float)player.bodyFrame.Width - hand.X;
            }
            if (player.gravDir != 1f)
            {
                hand.Y = (float)player.bodyFrame.Height - hand.Y;
            }
            hand -= new Vector2((float)(player.bodyFrame.Width - player.width), (float)(player.bodyFrame.Height - 42)) / 2f;
            Vector2 dustPos = player.RotatedRelativePoint(player.position + hand, true) - player.velocity;

            for (int i = 0; i < 3; i++)
            {
                Dust d = Dust.NewDustDirect
                             (player.Center, 0, 0, DustID.RainbowMk2, (float)(player.direction * 2), 0f,
                             100, Main.DiscoColor, 0.9f);
                d.position  = dustPos + player.velocity;
                d.velocity  = Utils.RandomVector2(Main.rand, -0.5f, 0.5f) + player.velocity * 0.5f;
                d.noGravity = true;
            }
        }