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); } }
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; } }
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); } } }
public override void HoldItem(Player player) { ModSabres.HoldItemManager(player, item, mod.ProjectileType <OnsokuSlash>(), Color.HotPink, 0.9f, player.itemTime == 0 ? 0f : 1f); }
public override void HoldItem(Player player) { ModSabres.HoldItemManager(player, item, SabreSlashType(), SabreColour(), 0.75f, player.itemTime == 0 ? 0f : 1f); }
public override void HoldItem(Player player) { ModSabres.HoldItemManager(player, item, mod.ProjectileType <WoodenSabreSlash>(), default(Color), 0.9f, player.itemTime == 0 ? 0f : 1f); }
public override void HoldItem(Player player) { ModSabres.HoldItemManager(player, item, mod.ProjectileType <EnchantedSabreSlash>(), Color.Yellow, 0.9f, player.itemTime == 0 ? 0f : 1f); }