예제 #1
0
 public override void HoldItem(Player player)
 {
     if (ModSabres.HoldItemManager(player, item, mod.ProjectileType <BorealWoodSabreSlash>(),
                                   default(Color), 0.9f, player.itemTime == 0 ? 0f : 1f))
     {
         Buffs.SabreDance.ApplySabreDance(mod, player, 1);
     }
 }
예제 #2
0
        public override void HoldItem(Player player)
        {
            bool specialCharge = hasHayauchiSpecialCharge(player);

            ModSabres.HoldItemManager(player, item, mod.ProjectileType <HayauchiSlash>(),
                                      Color.Red, 0.9f, specialCharge ? 0f : 1f, customCharge, 12);

            // Blade sheen once fully charged
            if (specialCharge)
            {
                Vector2 dustPos = getBladeDustPos(player, Main.rand.NextFloat());
                Dust    d       = Dust.NewDustDirect(dustPos, 0, 0, 90);
                d.velocity  = Vector2.Zero;
                d.noGravity = true;
                d.scale     = 0.2f;
                d.fadeIn    = 0.8f;
            }
        }
예제 #3
0
        public override void HoldItem(Player player)
        {
            ModSabres.HoldItemManager(player, item, mod.ProjectileType <RaidenSlash>(),
                                      default(Color), 1f, player.itemTime == 0 ? 0f : 1f, customCharge, 8);

            if (player.itemTime == 0)
            {
                float radius = RaidenUtils.GetFocusRadius(player);

                RaidenUtils.DrawDustRadius(player, radius, RaidenUtils.DustAmount(player));

                if (Main.myPlayer == player.whoAmI)
                {
                    Vector2    mouse   = new Vector2(Main.screenPosition.X + Main.mouseX, Main.screenPosition.Y + Main.mouseY);
                    List <NPC> targets = RaidenUtils.GetTargettableNPCs(player.Center, mouse, radius, RaidenUtils.focusTargets);
                    RaidenUtils.DrawOrderedTargets(player, targets);
                }
            }
        }
예제 #4
0
 public override void HoldItem(Player player)
 {
     ModSabres.HoldItemManager(player, item, mod.ProjectileType <OnsokuSlash>(),
                               Color.HotPink, 0.9f, player.itemTime == 0 ? 0f : 1f);
 }
예제 #5
0
 public override void HoldItem(Player player)
 {
     ModSabres.HoldItemManager(player, item, SabreSlashType(),
                               SabreColour(), 0.75f, player.itemTime == 0 ? 0f : 1f);
 }
예제 #6
0
 public override void HoldItem(Player player)
 {
     ModSabres.HoldItemManager(player, item, mod.ProjectileType <WoodenSabreSlash>(),
                               default(Color), 0.9f, player.itemTime == 0 ? 0f : 1f);
 }
예제 #7
0
 public override void HoldItem(Player player)
 {
     ModSabres.HoldItemManager(player, item, mod.ProjectileType <EnchantedSabreSlash>(),
                               Color.Yellow, 0.9f, player.itemTime == 0 ? 0f : 1f);
 }