Exemple #1
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            ShieldStyle();
            switch (ai)
            {
            case Start:
                if (player.CheckMana(10, true))
                {
                    for (float r = 0; r < Math.PI * 2f; r += (float)Math.PI / (max / 2f))
                    {
                        if (index < max)
                        {
                            shield[index] = new Shield(player, r);
                            index++;
                        }
                    }
                    index = 0;
                    goto case Orbit;
                }
                break;

            case Reset:
                break;

            case Orbit:
                ai   = Orbit;
                type = Orbit;
                if (ArchaeaPlayer.KeyPress(Keys.E))
                {
                    move = Main.MouseWorld;
                    goto case Throw;
                }
                break;

            case Throw:
                ai   = Throw;
                type = Throw;
                break;
            }
        }