Files
CalamityModPublic/Items/Weapons/Melee/MantisClaws.cs
T
Andrew Marheine 8461fddd95 1 - Nerfed Crimson Crusher Blade damage reduction from 10 to 5.
2 - Reduced Mantis Claws melee speed.
3 - DoG laser wall positions changed.
4 - Ravager aims phase 2 stomps more ahead of the player.
5 - Signus Mine telegraphs.
6 - Deus phase 2 multiplayer fix.
7 - Destroyer sped up during flight phase.
8 - Yharon flare circles spread out less prior to homing in.
9 - Necromancer shadowbeams have shorter range.
10 - Ragged Caster souls no longer go through tiles.
11 - Nebula Floater lasers are slower.
12 - Projectile vanilla crit bug fix.
2020-06-21 21:10:24 -05:00

55 lines
1.9 KiB
C#

using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class MantisClaws : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Mantis Claws");
Tooltip.SetDefault("Explodes on enemy hits");
}
public override void SetDefaults()
{
item.width = 26;
item.damage = 120;
item.melee = true;
item.useAnimation = 8;
item.useStyle = ItemUseStyleID.SwingThrow;
item.useTime = 8;
item.useTurn = true;
item.knockBack = 7f;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.height = 20;
item.value = Item.buyPrice(0, 60, 0, 0);
item.rare = 7;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(4))
{
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 33);
}
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
//does no damage. Explosion is visual
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), 0, 0f, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
}
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
//does no damage. Explosion is visual
int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), 0, 0f, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
}
}
}