44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Melee.Yoyos;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Melee
|
|
{
|
|
public class Chaotrix : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Chaotrix");
|
|
Tooltip.SetDefault("Explodes on enemy hits");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.CloneDefaults(ItemID.Yelets);
|
|
item.damage = 110;
|
|
item.useTime = 22;
|
|
item.useAnimation = 22;
|
|
item.useStyle = 5;
|
|
item.channel = true;
|
|
item.melee = true;
|
|
item.knockBack = 4f;
|
|
item.value = Item.buyPrice(0, 80, 0, 0);
|
|
item.rare = 8;
|
|
item.autoReuse = true;
|
|
item.shoot = ModContent.ProjectileType<ChaotrixProjectile>();
|
|
ItemID.Sets.Yoyo[item.type] = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 6);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|