57 lines
1.7 KiB
C#
57 lines
1.7 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 Aorta : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Aorta");
|
|
Tooltip.SetDefault("Fires homing blood when enemies are near\n" +
|
|
"An exceptionally agile yoyo");
|
|
ItemID.Sets.Yoyo[item.type] = true;
|
|
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
|
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 30;
|
|
item.height = 26;
|
|
item.melee = true;
|
|
item.damage = 29;
|
|
item.knockBack = 4.25f;
|
|
item.useTime = 22;
|
|
item.useAnimation = 22;
|
|
item.autoReuse = true;
|
|
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.UseSound = SoundID.Item1;
|
|
item.channel = true;
|
|
item.noUseGraphic = true;
|
|
item.noMelee = true;
|
|
|
|
item.shoot = ModContent.ProjectileType<AortaYoyo>();
|
|
item.shootSpeed = 8f;
|
|
|
|
item.rare = ItemRarityID.Orange;
|
|
item.value = Item.buyPrice(gold: 4);
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<BloodSample>(), 6);
|
|
recipe.AddIngredient(ItemID.Vertebrae, 3);
|
|
recipe.AddIngredient(ItemID.CrimtaneBar, 3);
|
|
recipe.AddTile(TileID.DemonAltar);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|